Interface Vehicle
- All Known Implementing Classes:
AbstractVehicle,VehicleImpl,VehicleImpl.NoVehicle
Basic interface for vehicle-data.
- Author:
- schroeder
-
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.
-
Method Details
-
getEarliestDeparture
double getEarliestDeparture()Returns the earliest departure of vehicle which should be the lower bound of this vehicle's departure times.- Returns:
- earliest departure time
-
getLatestArrival
double getLatestArrival()Returns 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
VehicleType getType()Returns theVehicleTypeof this vehicle.- Returns:
VehicleTypeof this vehicle
-
getId
String getId()Returns the id of this vehicle. -
isReturnToDepot
boolean isReturnToDepot()Returns true if vehicle returns to depot, false otherwise.- Returns:
- true if isReturnToDepot
-
getStartLocation
Location getStartLocation() -
getEndLocation
Location getEndLocation() -
getVehicleTypeIdentifier
VehicleTypeKey getVehicleTypeIdentifier() -
getSkills
Skills getSkills() -
getUserData
Object getUserData()- Returns:
- User-specific domain data associated with the vehicle
-
getBreak
Break getBreak()
-