public class ServiceLoadRouteLevelConstraint extends Object implements HardRouteConstraint
If job is neither Pickup, Delivery nor Service, it returns true.
| Constructor and Description |
|---|
ServiceLoadRouteLevelConstraint(RouteAndActivityStateGetter stateManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fulfilled(JobInsertionContext insertionContext)
Returns whether a job can be inserted in route.
|
public ServiceLoadRouteLevelConstraint(RouteAndActivityStateGetter stateManager)
public boolean fulfilled(JobInsertionContext insertionContext)
HardRouteConstraintfulfilled in interface HardRouteConstraintinsertionContext - 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()).Copyright © 2013–2024. All rights reserved.