Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
reorganize package structure in preparation for own contrib in matsim…
Browse files Browse the repository at this point in the history
…-libs. Everything should be under org.matsim.freight.logistics.*
  • Loading branch information
kt86 committed Oct 13, 2023
1 parent 557cf7c commit 95c4adc
Show file tree
Hide file tree
Showing 204 changed files with 1,750 additions and 1,742 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* * ***********************************************************************
*/

package lsp;
package org.matsim.freight.logistics;

import lsp.shipment.LSPShipment;
import org.matsim.freight.logistics.shipment.LSPShipment;
import org.matsim.api.core.v01.Id;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lsp;
package org.matsim.freight.logistics;

@SuppressWarnings("InterfaceMayBeAnnotatedFunctional")
public interface HasBackpointer<T> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lsp;
package org.matsim.freight.logistics;

import java.util.Collection;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lsp;
package org.matsim.freight.logistics;

interface KnowsLSP {
void setLSP(LSP lsp);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* * ***********************************************************************
*/

package lsp;
package org.matsim.freight.logistics;

import lsp.shipment.LSPShipment;
import org.matsim.freight.logistics.shipment.LSPShipment;
import org.matsim.api.core.v01.population.HasPlansAndId;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* * ***********************************************************************
*/

package lsp;
package org.matsim.freight.logistics;

import org.matsim.freight.carriers.Carrier;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lsp;
package org.matsim.freight.logistics;

public abstract class LSPConstants {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
* * ***********************************************************************
*/

package lsp;
package org.matsim.freight.logistics;


import jakarta.inject.Inject;
import lsp.io.LSPPlanXmlWriter;
import lsp.shipment.LSPShipment;
import org.matsim.freight.logistics.io.LSPPlanXmlWriter;
import org.matsim.freight.logistics.shipment.LSPShipment;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.matsim.api.core.v01.Scenario;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lsp;
package org.matsim.freight.logistics;

import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Identifiable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* * ***********************************************************************
*/

package lsp;
package org.matsim.freight.logistics;

import lsp.shipment.LSPShipment;
import org.matsim.freight.logistics.shipment.LSPShipment;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* * ***********************************************************************
*/

package lsp;
package org.matsim.freight.logistics;

import com.google.inject.Provides;
import jakarta.inject.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
/*
* *********************************************************************** *
* * project: org.matsim.*
* * *********************************************************************** *
* * *
* * copyright : (C) 2022 by the members listed in the COPYING, *
* * LICENSE and WARRANTY file. *
* * email : info at matsim dot org *
* * *
* * *********************************************************************** *
* * *
* * This program is free software; you can redistribute it and/or modify *
* * it under the terms of the GNU General Public License as published by *
* * the Free Software Foundation; either version 2 of the License, or *
* * (at your option) any later version. *
* * See also COPYING, LICENSE and WARRANTY file *
* * *
* * ***********************************************************************
*/

package lsp;

import lsp.shipment.LSPShipment;
import lsp.shipment.ShipmentPlan;
import org.matsim.api.core.v01.population.BasicPlan;

import java.util.Collection;

/**
* This interface has the following properties:<ul>
* <li> As a {@link BasicPlan} it has a score, so it can be used for evolutionary learning. kai, may'22 </li>
* <li> An {@link LSPShipment} is added via lspPlan#getAssigner().assignToSolution(shipment). The {@link ShipmentAssigner} assigns it deterministically to a {@link LogisticChain}. </li>
* </ul>
*/
public interface LSPPlan extends BasicPlan, KnowsLSP {

LSPPlan addLogisticChain(LogisticChain solution);

Collection<LogisticChain> getLogisticChains();

/**
* yy My intuition would be to replace lspPlan#getAssigner().assignToSolution( shipment ) by lspPlan.addShipment( shipment ). kai, may'22
*/
ShipmentAssigner getAssigner();

LSPPlan setAssigner(ShipmentAssigner assigner);

Collection<ShipmentPlan> getShipmentPlans();
LSPPlan addShipmentPlan(ShipmentPlan shipmentPlan);

String getType();

void setType(final String type);

}
/*
* *********************************************************************** *
* * project: org.matsim.*
* * *********************************************************************** *
* * *
* * copyright : (C) 2022 by the members listed in the COPYING, *
* * LICENSE and WARRANTY file. *
* * email : info at matsim dot org *
* * *
* * *********************************************************************** *
* * *
* * This program is free software; you can redistribute it and/or modify *
* * it under the terms of the GNU General Public License as published by *
* * the Free Software Foundation; either version 2 of the License, or *
* * (at your option) any later version. *
* * See also COPYING, LICENSE and WARRANTY file *
* * *
* * ***********************************************************************
*/

package org.matsim.freight.logistics;

import org.matsim.freight.logistics.shipment.LSPShipment;
import org.matsim.freight.logistics.shipment.ShipmentPlan;
import org.matsim.api.core.v01.population.BasicPlan;

import java.util.Collection;

/**
* This interface has the following properties:<ul>
* <li> As a {@link BasicPlan} it has a score, so it can be used for evolutionary learning. kai, may'22 </li>
* <li> An {@link LSPShipment} is added via lspPlan#getAssigner().assignToSolution(shipment). The {@link ShipmentAssigner} assigns it deterministically to a {@link LogisticChain}. </li>
* </ul>
*/
public interface LSPPlan extends BasicPlan, KnowsLSP {

LSPPlan addLogisticChain(LogisticChain solution);

Collection<LogisticChain> getLogisticChains();

/**
* yy My intuition would be to replace lspPlan#getAssigner().assignToSolution( shipment ) by lspPlan.addShipment( shipment ). kai, may'22
*/
ShipmentAssigner getAssigner();

LSPPlan setAssigner(ShipmentAssigner assigner);

Collection<ShipmentPlan> getShipmentPlans();
LSPPlan addShipmentPlan(ShipmentPlan shipmentPlan);

String getType();

void setType(final String type);

}
Loading

0 comments on commit 95c4adc

Please sign in to comment.