Class Break.Builder
java.lang.Object
com.graphhopper.jsprit.core.problem.job.Service.Builder<Break>
com.graphhopper.jsprit.core.problem.job.Break.Builder
- Enclosing class:
Break
-
Field Summary
Fields inherited from class com.graphhopper.jsprit.core.problem.job.Service.Builder
activity, capacity, capacityBuilder, coord, location, locationId, maxTimeInVehicle, serviceTime, skillBuilder, skills, timeWindows, userData -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds Break.static Break.BuildernewInstance(String id) Returns a new instance of builder that builds a break.Methods inherited from class com.graphhopper.jsprit.core.problem.job.Service.Builder
addAllRequiredSkills, addAllRequiredSkills, addAllSizeDimensions, addAllTimeWindows, addRequiredSkill, addSizeDimension, addTimeWindow, addTimeWindow, setLocation, setMaxTimeInVehicle, setName, setPriority, setServiceTime, setTimeWindow, setType, setUserData
-
Method Details
-
newInstance
Returns a new instance of builder that builds a break.- Parameters:
id- the id of the pickup- Returns:
- the builder
-
build
Builds Break.Pickup type is "break"
- Overrides:
buildin classService.Builder<Break>- Returns:
- pickup
- Throws:
IllegalStateException- if neither locationId nor coordinate has been set
-