Class AbstractVehicle
java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractVehicle
- Direct Known Subclasses:
VehicleImpl,VehicleImpl.NoVehicle
AbstractVehicle to handle indeces of vehicles.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Deprecated.protected voidsetIndex(int index) Deprecated.Vehicle indices are now managed by VehicleRoutingProblem.protected voidsetUserData(Object userData) protected voidsetVehicleIdentifier(VehicleTypeKey vehicleTypeIdentifier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.graphhopper.jsprit.core.problem.vehicle.Vehicle
getBreak, getEarliestDeparture, getEndLocation, getId, getLatestArrival, getSkills, getStartLocation, getType, isReturnToDepot
-
Constructor Details
-
AbstractVehicle
public AbstractVehicle()
-
-
Method Details
-
getUserData
- Specified by:
getUserDatain interfaceVehicle- Returns:
- User-specific domain data associated with the vehicle
-
setUserData
-
getIndex
Deprecated.UseVehicleRoutingProblem.getVehicleIndex(Vehicle)instead. Vehicle indices are VRP-specific and should not be accessed directly from the vehicle. A vehicle can have different indices in different VRP instances. -
setIndex
Deprecated.Vehicle indices are now managed by VehicleRoutingProblem. This method is no longer called by the framework. -
getVehicleTypeIdentifier
- Specified by:
getVehicleTypeIdentifierin interfaceVehicle
-
setVehicleIdentifier
-
VehicleRoutingProblem.getVehicleIndex(Vehicle)instead.