Class FiniteFleetManagerFactory
java.lang.Object
com.graphhopper.jsprit.core.problem.vehicle.FiniteFleetManagerFactory
- All Implemented Interfaces:
VehicleFleetManagerFactory
Factory that creates a finite fleetmanager.
- Author:
- schroeder
-
Constructor Summary
ConstructorsConstructorDescriptionFiniteFleetManagerFactory(Collection<Vehicle> vehicles) Constucts the factory. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates the finite fleetmanager with access to the VRP for index lookups.
-
Constructor Details
-
FiniteFleetManagerFactory
Constucts the factory.- Parameters:
vehicles- vehicles to be added to the fleetManager
-
-
Method Details
-
createFleetManager
Deprecated.UsecreateFleetManager(VehicleRoutingProblem)instead.Creates the finite fleetmanager.- Specified by:
createFleetManagerin interfaceVehicleFleetManagerFactory- Returns:
- VehicleFleetManager
- Throws:
IllegalStateException- if vehicles == null or vehicles.isEmpty()
-
createFleetManager
Creates the finite fleetmanager with access to the VRP for index lookups.- Specified by:
createFleetManagerin interfaceVehicleFleetManagerFactory- Parameters:
vrp- the VehicleRoutingProblem- Returns:
- VehicleFleetManager
- Throws:
IllegalStateException- if vehicles == null or vehicles.isEmpty()
-
createFleetManager(VehicleRoutingProblem)instead.