Class VehicleImpl.NoVehicle
java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractVehicle
com.graphhopper.jsprit.core.problem.vehicle.VehicleImpl.NoVehicle
- Enclosing class:
VehicleImpl
Extension of
VehicleImpl representing an unspecified vehicle with the id 'noVehicle'
(to avoid null).- Author:
- schroeder
-
Nested Class Summary
Nested classes/interfaces inherited from class com.graphhopper.jsprit.core.problem.AbstractVehicle
AbstractVehicle.AbstractTypeKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBreak()doubleReturns the earliest departure of vehicle which should be the lower bound of this vehicle's departure times.getId()Returns the id of this vehicle.doubleReturns the latest arrival time at this vehicle's end-location which should be the upper bound of this vehicle's arrival times at end-location.getType()Returns theVehicleTypeof this vehicle.booleanReturns true if vehicle returns to depot, false otherwise.Methods inherited from class com.graphhopper.jsprit.core.problem.AbstractVehicle
getIndex, getUserData, getVehicleTypeIdentifier, setIndex, setUserData, setVehicleIdentifier
-
Constructor Details
-
NoVehicle
public NoVehicle()
-
-
Method Details
-
getEarliestDeparture
public double getEarliestDeparture()Description copied from interface:VehicleReturns the earliest departure of vehicle which should be the lower bound of this vehicle's departure times.- Returns:
- earliest departure time
-
getLatestArrival
public double getLatestArrival()Description copied from interface:VehicleReturns the latest arrival time at this vehicle's end-location which should be the upper bound of this vehicle's arrival times at end-location.- Returns:
- latest arrival time of this vehicle
-
getType
Description copied from interface:VehicleReturns theVehicleTypeof this vehicle.- Returns:
VehicleTypeof this vehicle
-
getId
Description copied from interface:VehicleReturns the id of this vehicle.- Returns:
- id
-
isReturnToDepot
public boolean isReturnToDepot()Description copied from interface:VehicleReturns true if vehicle returns to depot, false otherwise.- Returns:
- true if isReturnToDepot
-
getStartLocation
-
getEndLocation
-
getSkills
-
getBreak
-