Skip to content

Commit

Permalink
move stuff from package "carrier" on level up.
Browse files Browse the repository at this point in the history
  • Loading branch information
kt86 committed Oct 11, 2023
1 parent e214b11 commit cefd2b8
Show file tree
Hide file tree
Showing 145 changed files with 286 additions and 283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import java.util.*;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

public class CarrierConstants {

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import java.util.Collection;
import org.matsim.api.core.v01.population.BasicPlan;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import com.google.inject.Inject;
import org.matsim.utils.objectattributes.AttributeConverter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import java.util.ArrayList;
import java.util.Collection;
Expand All @@ -33,8 +33,8 @@
import org.apache.logging.log4j.Logger;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.network.Link;
import org.matsim.contrib.freight.carriers.carrier.CarrierCapabilities.Builder;
import org.matsim.contrib.freight.carriers.carrier.CarrierCapabilities.FleetSize;
import org.matsim.contrib.freight.carriers.CarrierCapabilities.Builder;
import org.matsim.contrib.freight.carriers.CarrierCapabilities.FleetSize;
import org.matsim.core.gbl.Gbl;
import org.matsim.core.network.NetworkUtils;
import org.matsim.core.population.routes.NetworkRoute;
Expand All @@ -45,7 +45,7 @@
import org.matsim.utils.objectattributes.attributable.AttributesXmlReaderDelegate;
import org.matsim.vehicles.*;
import org.xml.sax.Attributes;
import static org.matsim.contrib.freight.carriers.carrier.CarrierConstants.*;
import static org.matsim.contrib.freight.carriers.CarrierConstants.*;

class CarrierPlanXmlParserV2 extends MatsimXmlParser {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import com.google.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.network.Link;
import org.matsim.contrib.freight.carriers.carrier.CarrierCapabilities.Builder;
import org.matsim.contrib.freight.carriers.carrier.CarrierCapabilities.FleetSize;
import org.matsim.contrib.freight.carriers.CarrierCapabilities.Builder;
import org.matsim.contrib.freight.carriers.CarrierCapabilities.FleetSize;
import org.matsim.core.gbl.Gbl;
import org.matsim.core.network.NetworkUtils;
import org.matsim.core.population.routes.NetworkRoute;
Expand All @@ -42,7 +42,7 @@

import java.util.*;

import static org.matsim.contrib.freight.carriers.carrier.CarrierConstants.*;
import static org.matsim.contrib.freight.carriers.CarrierConstants.*;

class CarrierPlanXmlParserV2_1 extends MatsimXmlParser {

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import java.io.BufferedWriter;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import java.io.BufferedWriter;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import com.google.inject.Inject;
import org.apache.logging.log4j.LogManager;
Expand All @@ -39,7 +39,7 @@
import java.io.IOException;
import java.util.*;

import static org.matsim.contrib.freight.carriers.carrier.CarrierConstants.*;
import static org.matsim.contrib.freight.carriers.CarrierConstants.*;

/**
* A writer that writes carriers and their plans in a xml-file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

import com.graphhopper.jsprit.analysis.toolbox.StopWatch;
import com.graphhopper.jsprit.core.algorithm.VehicleRoutingAlgorithm;
Expand All @@ -34,7 +34,6 @@
import org.matsim.api.core.v01.TransportMode;
import org.matsim.api.core.v01.network.Link;
import org.matsim.api.core.v01.population.Plan;
import org.matsim.contrib.freight.carriers.FreightConfigGroup;
import org.matsim.contrib.freight.carriers.jsprit.MatsimJspritFactory;
import org.matsim.contrib.freight.carriers.jsprit.NetworkBasedTransportCosts;
import org.matsim.contrib.freight.carriers.jsprit.NetworkRouter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;


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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;


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

package org.matsim.contrib.freight.carriers.carrier;
package org.matsim.contrib.freight.carriers;

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 @@ -38,9 +38,9 @@
import org.matsim.api.core.v01.population.Person;
import org.matsim.api.core.v01.population.Plan;
import org.matsim.api.core.v01.population.Route;
import org.matsim.contrib.freight.carriers.carrier.*;
import org.matsim.contrib.freight.carriers.carrier.Tour.TourActivity;
import org.matsim.contrib.freight.carriers.carrier.Tour.TourElement;
import org.matsim.contrib.freight.carriers.*;
import org.matsim.contrib.freight.carriers.Tour.TourActivity;
import org.matsim.contrib.freight.carriers.Tour.TourElement;
import org.matsim.contrib.freight.carriers.events.CarrierEventCreator;
import org.matsim.core.api.experimental.events.EventsManager;
import org.matsim.core.gbl.Gbl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.events.*;
import org.matsim.api.core.v01.population.Person;
import org.matsim.contrib.freight.carriers.carrier.Carrier;
import org.matsim.contrib.freight.carriers.carrier.Carriers;
import org.matsim.contrib.freight.carriers.Carrier;
import org.matsim.contrib.freight.carriers.Carriers;
import org.matsim.contrib.freight.carriers.events.CarrierEventCreator;
import org.matsim.contrib.freight.carriers.events.CarrierEventCreatorUtils;
import org.matsim.core.api.experimental.events.EventsManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.matsim.api.core.v01.Scenario;
import org.matsim.contrib.freight.carriers.carrier.CarrierUtils;
import org.matsim.contrib.freight.carriers.CarrierUtils;
import org.matsim.core.controler.events.ReplanningEvent;
import org.matsim.core.controler.events.ScoringEvent;
import org.matsim.core.controler.listener.ReplanningListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.matsim.api.core.v01.population.Leg;
import org.matsim.api.core.v01.population.Person;
import org.matsim.api.core.v01.population.Route;
import org.matsim.contrib.freight.carriers.carrier.*;
import org.matsim.contrib.freight.carriers.*;
import org.matsim.contrib.freight.carriers.events.CarrierEventCreator;
import org.matsim.core.api.experimental.events.EventsManager;
import org.matsim.core.population.PopulationUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import org.matsim.api.core.v01.events.Event;
import org.matsim.api.core.v01.population.Activity;
import org.matsim.api.core.v01.population.Leg;
import org.matsim.contrib.freight.carriers.FreightConfigGroup;
import org.matsim.contrib.freight.carriers.carrier.*;
import org.matsim.contrib.freight.carriers.*;
import org.matsim.core.config.Config;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.AbstractModule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.matsim.api.core.v01.network.Network;
import org.matsim.contrib.freight.carriers.carrier.CarrierPlan;
import org.matsim.contrib.freight.carriers.carrier.ScheduledTour;
import org.matsim.contrib.freight.carriers.CarrierPlan;
import org.matsim.contrib.freight.carriers.ScheduledTour;
import org.matsim.core.gbl.MatsimRandom;
import org.matsim.core.replanning.ReplanningContext;
import org.matsim.core.replanning.modules.GenericPlanStrategyModule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

package org.matsim.contrib.freight.carriers.controler;

import org.matsim.contrib.freight.carriers.carrier.Carrier;
import org.matsim.contrib.freight.carriers.Carrier;
import org.matsim.core.scoring.ScoringFunction;

public interface CarrierScoringFunctionFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
package org.matsim.contrib.freight.carriers.controler;

import com.google.inject.Provider;
import org.matsim.contrib.freight.carriers.carrier.Carrier;
import org.matsim.contrib.freight.carriers.carrier.CarrierPlan;
import org.matsim.contrib.freight.carriers.Carrier;
import org.matsim.contrib.freight.carriers.CarrierPlan;
import org.matsim.core.replanning.GenericStrategyManager;

/**
Expand Down
Loading

0 comments on commit cefd2b8

Please sign in to comment.