algorithms
Class UpdateLoadAtRouteLevel

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

public class UpdateLoadAtRouteLevel
extends java.lang.Object
implements JobInsertedListener, InsertionStartsListener

Updates load at route level, i.e. modifies StateTypes.LOAD for each route.

Author:
stefan

Constructor Summary
UpdateLoadAtRouteLevel(StateManagerImpl states)
          Updates load at route level, i.e.
 
Method Summary
 void informInsertionStarts(java.util.Collection<VehicleRoute> vehicleRoutes, java.util.Collection<Job> unassignedJobs)
           
 void informJobInserted(Job job2insert, VehicleRoute inRoute, double additionalCosts, double additionalTime)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateLoadAtRouteLevel

public UpdateLoadAtRouteLevel(StateManagerImpl states)
Updates load at route level, i.e. modifies StateTypes.LOAD for each route.

Method Detail

informJobInserted

public void informJobInserted(Job job2insert,
                              VehicleRoute inRoute,
                              double additionalCosts,
                              double additionalTime)
Specified by:
informJobInserted in interface JobInsertedListener

informInsertionStarts

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