Skip to content

Commit

Permalink
Merge branch 'master' into SquareGridZoneSystemFaster
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenaxer authored Nov 26, 2024
2 parents 98e24e8 + 5cb44ba commit 37ba3ee
Show file tree
Hide file tree
Showing 62 changed files with 105 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

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 @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

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 @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.network.Link;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

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 @@ -15,7 +15,7 @@
* See also COPYING, LICENSE and WARRANTY file *
* *
* *********************************************************************** */
package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

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 @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import com.google.inject.Inject;
import org.apache.logging.log4j.LogManager;
Expand All @@ -29,8 +29,8 @@
import org.matsim.freight.carriers.CarriersUtils;
import org.matsim.freight.carriers.ScheduledTour;
import org.matsim.freight.carriers.Tour;
import org.matsim.contrib.freightreceiver.collaboration.CollaborationUtils;
import org.matsim.contrib.freightreceiver.replanning.ReceiverStrategyManager;
import org.matsim.freight.receiver.collaboration.CollaborationUtils;
import org.matsim.freight.receiver.replanning.ReceiverStrategyManager;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.events.*;
import org.matsim.core.controler.listener.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ***********************************************************************
*/

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.freight.carriers.Carrier;

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

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import com.google.inject.Inject;
import org.matsim.api.core.v01.Id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* *
* ***********************************************************************
*/
package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.LogManager;
import org.matsim.freight.carriers.Carrier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ***********************************************************************
*/

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

/**
* The supported ways in which the carrier's cost is spread among the receivers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.matsim.freight.carriers.Carrier;
import org.matsim.contrib.freightreceiver.replanning.*;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.AbstractModule;
import org.matsim.freight.receiver.replanning.ReceiverReplanningUtils;
import org.matsim.freight.receiver.replanning.ReceiverStrategyManager;

public final class ReceiverModule extends AbstractModule {
final private static Logger LOG = LogManager.getLogger(ReceiverModule.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand All @@ -25,7 +25,7 @@
import org.matsim.api.core.v01.population.Person;
import org.matsim.freight.carriers.Carrier;
import org.matsim.freight.carriers.TimeWindow;
import org.matsim.contrib.freightreceiver.collaboration.CollaborationUtils;
import org.matsim.freight.receiver.collaboration.CollaborationUtils;
import org.matsim.utils.objectattributes.attributable.Attributable;
import org.matsim.utils.objectattributes.attributable.Attributes;
import org.matsim.utils.objectattributes.attributable.AttributesImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

/**
* Returns a new instance of a receiver product with associated information,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See also COPYING, LICENSE and WARRANTY file *
* *
* *********************************************************************** */
package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

public enum ReceiverReplanningType {
serviceTime, timeWindow, orderFrequency, afterHoursTimeWindow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import com.google.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.matsim.api.core.v01.Scenario;
import org.matsim.freight.carriers.CarriersUtils;
import org.matsim.contrib.freightreceiver.collaboration.CollaborationUtils;
import org.matsim.freight.receiver.collaboration.CollaborationUtils;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.events.IterationEndsEvent;
import org.matsim.core.controler.events.ShutdownEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.core.scoring.ScoringFunction;

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

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.LogManager;
import org.matsim.core.scoring.ScoringFunction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See also COPYING, LICENSE and WARRANTY file *
* *
* *********************************************************************** */
package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import com.graphhopper.jsprit.core.algorithm.VehicleRoutingAlgorithm;
import com.graphhopper.jsprit.core.problem.VehicleRoutingProblem;
Expand All @@ -29,7 +29,7 @@
import org.matsim.freight.carriers.jsprit.MatsimJspritFactory;
import org.matsim.freight.carriers.jsprit.NetworkBasedTransportCosts;
import org.matsim.freight.carriers.jsprit.NetworkRouter;
import org.matsim.contrib.freightreceiver.collaboration.CollaborationUtils;
import org.matsim.freight.receiver.collaboration.CollaborationUtils;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.events.IterationStartsEvent;
import org.matsim.core.controler.listener.IterationStartsListener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

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 @@ -16,7 +16,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

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 org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.core.utils.io.MatsimXmlParser;
import org.xml.sax.Attributes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.network.Link;
import org.matsim.freight.carriers.Carrier;
import org.matsim.freight.carriers.TimeWindow;
import org.matsim.contrib.freightreceiver.collaboration.CollaborationUtils;
import org.matsim.freight.receiver.collaboration.CollaborationUtils;
import org.matsim.core.api.internal.MatsimReader;
import org.matsim.core.utils.io.MatsimXmlParser;
import org.matsim.core.utils.misc.Counter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.freight.carriers.TimeWindow;
import java.io.BufferedWriter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.freight.carriers.TimeWindow;
import org.matsim.core.utils.misc.Time;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.freight.carriers.TimeWindow;
import org.matsim.core.utils.misc.Time;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.utils.objectattributes.attributable.Attributable;

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

package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.matsim.utils.objectattributes.attributable.Attributes;
import org.matsim.utils.objectattributes.attributable.AttributesImpl;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.matsim.contrib.freightreceiver;
package org.matsim.freight.receiver;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.matsim.contrib.freightreceiver.collaboration;
package org.matsim.freight.receiver.collaboration;

import org.matsim.freight.carriers.Carrier;
import org.matsim.contrib.freightreceiver.Receiver;
import org.matsim.freight.receiver.Receiver;
import org.matsim.utils.objectattributes.attributable.Attributable;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.matsim.contrib.freightreceiver.collaboration;
package org.matsim.freight.receiver.collaboration;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand All @@ -7,7 +7,7 @@
import org.matsim.freight.carriers.Carrier;
import org.matsim.freight.carriers.CarriersUtils;
import org.matsim.freight.carriers.Carriers;
import org.matsim.contrib.freightreceiver.*;
import org.matsim.freight.receiver.*;

public class CollaborationUtils{
private CollaborationUtils(){} // do not instantiate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.matsim.contrib.freightreceiver.collaboration;
package org.matsim.freight.receiver.collaboration;

import org.matsim.freight.carriers.Carriers;
import org.matsim.contrib.freightreceiver.*;
import org.matsim.freight.receiver.Receivers;

/**
* Class with utilities to handle the collaboration between {@link Carriers}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

package org.matsim.contrib.freightreceiver.collaboration;
package org.matsim.freight.receiver.collaboration;

import org.matsim.freight.carriers.Carrier;
import org.matsim.contrib.freightreceiver.Receiver;
import org.matsim.freight.receiver.Receiver;
import org.matsim.utils.objectattributes.attributable.Attributes;
import org.matsim.utils.objectattributes.attributable.AttributesImpl;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
* *
* *********************************************************************** */

package org.matsim.contrib.freightreceiver.collaboration;
package org.matsim.freight.receiver.collaboration;

import org.matsim.contrib.freightreceiver.Order;
import org.matsim.contrib.freightreceiver.ReceiverOrder;
import org.matsim.contrib.freightreceiver.ReceiverPlan;
import org.matsim.freight.receiver.Order;
import org.matsim.freight.receiver.ReceiverOrder;
import org.matsim.freight.receiver.ReceiverPlan;
import org.matsim.core.gbl.MatsimRandom;
import org.matsim.core.replanning.ReplanningContext;
import org.matsim.core.replanning.modules.GenericPlanStrategyModule;
Expand Down
Loading

0 comments on commit 37ba3ee

Please sign in to comment.