algorithms
Class UpdateLoadsAtStartAndEndOfRouteWhenJobHasBeenInserted
java.lang.Object
algorithms.UpdateLoadsAtStartAndEndOfRouteWhenJobHasBeenInserted
- All Implemented Interfaces:
- InsertionListener, JobInsertedListener, SearchStrategyModuleListener, VehicleRoutingAlgorithmListener
public class UpdateLoadsAtStartAndEndOfRouteWhenJobHasBeenInserted
- extends java.lang.Object
- implements JobInsertedListener
Updates loads at start and end of a route if a job has been inserted in that route.
These states can be retrieved by
stateManager.getRouteState(route, StateTypes.LOAD_AT_DEPOT) for LOAD_AT_DEPOT and
stateManager.getRouteState(route, StateTypes.LOAD) for LOAD (i.e. load at end)
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateLoadsAtStartAndEndOfRouteWhenJobHasBeenInserted
public UpdateLoadsAtStartAndEndOfRouteWhenJobHasBeenInserted(StateManagerImpl stateManager)
- Updates loads at start and end of a route if a job has been inserted in that route.
These states can be retrieved by
stateManager.getRouteState(route, StateTypes.LOAD_AT_DEPOT) for LOAD_AT_DEPOT and
stateManager.getRouteState(route, StateTypes.LOAD) for LOAD (i.e. load at end)
- Parameters:
stateManager -
informJobInserted
public void informJobInserted(Job job2insert,
VehicleRoute inRoute,
double additionalCosts,
double additionalTime)
- Specified by:
informJobInserted in interface JobInsertedListener