algorithms
Class InitializeLoadsAtStartAndEndOfRouteWhenInsertionStarts

java.lang.Object
  extended by algorithms.InitializeLoadsAtStartAndEndOfRouteWhenInsertionStarts
All Implemented Interfaces:
InsertionListener, InsertionStartsListener, SearchStrategyModuleListener, VehicleRoutingAlgorithmListener

public class InitializeLoadsAtStartAndEndOfRouteWhenInsertionStarts
extends java.lang.Object
implements InsertionStartsListener

Initializes the load of each route/vehicle at start- and end-location before insertion starts.

StateTypes.LOAD_AT_DEPOT and StateTypes.LOAD are modified for each 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)


Constructor Summary
InitializeLoadsAtStartAndEndOfRouteWhenInsertionStarts(StateManagerImpl stateManager)
          Initializes the load of each route/vehicle at start- and end-location before insertion starts.
 
Method Summary
 void informInsertionStarts(java.util.Collection<VehicleRoute> vehicleRoutes, java.util.Collection<Job> unassignedJobs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitializeLoadsAtStartAndEndOfRouteWhenInsertionStarts

public InitializeLoadsAtStartAndEndOfRouteWhenInsertionStarts(StateManagerImpl stateManager)
Initializes the load of each route/vehicle at start- and end-location before insertion starts.

StateTypes.LOAD_AT_DEPOT and StateTypes.LOAD are modified for each 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 -
Method Detail

informInsertionStarts

public void informInsertionStarts(java.util.Collection<VehicleRoute> vehicleRoutes,
                                  java.util.Collection<Job> unassignedJobs)
Specified by:
informInsertionStarts in interface InsertionStartsListener