public class SwitchNotFeasible extends Object implements HardRouteConstraint
| Constructor and Description |
|---|
SwitchNotFeasible(StateManager stateManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fulfilled(JobInsertionContext insertionContext)
Returns whether a job can be inserted in route.
|
public SwitchNotFeasible(StateManager 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–2020. All rights reserved.