Class HardSkillConstraint
java.lang.Object
com.graphhopper.jsprit.core.problem.constraint.HardSkillConstraint
- All Implemented Interfaces:
Constraint,HardConstraint,HardRouteConstraint
SkillConstraint that ensures that only vehicles with according skills can serve route and job to be inserted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfulfilled(JobInsertionContext insertionContext) Returns whether a job can be inserted in route.
-
Constructor Details
-
HardSkillConstraint
-
-
Method Details
-
fulfilled
Description copied from interface:HardRouteConstraintReturns whether a job can be inserted in route.- Specified by:
fulfilledin interfaceHardRouteConstraint- Parameters:
insertionContext- provides context information about inserting a new job, i.e. the new job (insertionContext.getJob()), the route where the new job should be inserted (insertionContext.getRoute()), the new vehicle that should operate the route plus the new job (insertionContext.getNewVehicle()) and the new departure time at this vehicle's start location (insertionContext.getNewDepartureTime()).- Returns:
- true if constraint is met, false otherwise
-