Class EnRoutePickup
java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractJob
com.graphhopper.jsprit.core.problem.job.Service
com.graphhopper.jsprit.core.problem.job.EnRoutePickup
Pickup extends Service and is intended to model a Service where smth is LOADED (i.e. picked up) to a transport unit.
- Author:
- schroeder
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether this job is delivered to the vehicle's end location.booleanIndicates whether this job is picked up at the vehicle's start location.Methods inherited from class com.graphhopper.jsprit.core.problem.job.Service
equals, getActivities, getId, getLocation, getMaxTimeInVehicle, getName, getPriority, getRequiredSkills, getServiceDuration, getSize, getTimeWindow, getTimeWindows, getType, hashCode, toStringMethods inherited from class com.graphhopper.jsprit.core.problem.AbstractJob
getIndex, getUserData, setIndex, setUserData
-
Method Details
-
getJobType
- Specified by:
getJobTypein interfaceJob- Overrides:
getJobTypein classService
-
isPickedUpAtVehicleStart
public boolean isPickedUpAtVehicleStart()Description copied from interface:JobIndicates whether this job is picked up at the vehicle's start location. By default, only Delivery jobs are picked up at the vehicle's start location.- Returns:
- true if job is picked up at vehicle start, false otherwise
-
isDeliveredToVehicleEnd
public boolean isDeliveredToVehicleEnd()Description copied from interface:JobIndicates whether this job is delivered to the vehicle's end location. By default, only Pickup and Service jobs are delivered to the vehicle's end location.- Returns:
- true if job is delivered to vehicle end, false otherwise
-