1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

fix defaultState

This commit is contained in:
oblonski 2013-11-13 06:13:52 +01:00
parent c528b6d430
commit 71a3cbe9a8
2 changed files with 3 additions and 1 deletions

View file

@ -26,7 +26,7 @@ import basics.algo.InsertionEndsListener;
import basics.route.VehicleFleetManager; import basics.route.VehicleFleetManager;
import basics.route.VehicleRoute; import basics.route.VehicleRoute;
class RemoveEmptyVehicles implements InsertionEndsListener{ public class RemoveEmptyVehicles implements InsertionEndsListener{
private static Logger log = Logger.getLogger(RemoveEmptyVehicles.class); private static Logger log = Logger.getLogger(RemoveEmptyVehicles.class);

View file

@ -232,6 +232,7 @@ public class StateManager implements StateGetter, IterationStartsListener, RuinL
if(stateId.equals(StateFactory.LATEST_OPERATION_START_TIME)) return new StateImpl(act.getTheoreticalLatestOperationStartTime()); if(stateId.equals(StateFactory.LATEST_OPERATION_START_TIME)) return new StateImpl(act.getTheoreticalLatestOperationStartTime());
if(stateId.equals(StateFactory.FUTURE_PICKS)) return new StateImpl(0); if(stateId.equals(StateFactory.FUTURE_PICKS)) return new StateImpl(0);
if(stateId.equals(StateFactory.PAST_DELIVERIES)) return new StateImpl(0); if(stateId.equals(StateFactory.PAST_DELIVERIES)) return new StateImpl(0);
if(defaultActivityStates.containsKey(stateId)) return defaultActivityStates.get(stateId);
return null; return null;
} }
@ -242,6 +243,7 @@ public class StateManager implements StateGetter, IterationStartsListener, RuinL
if(stateId.equals(StateFactory.LOAD_AT_BEGINNING)) return new StateImpl(0); if(stateId.equals(StateFactory.LOAD_AT_BEGINNING)) return new StateImpl(0);
if(stateId.equals(StateFactory.COSTS)) return new StateImpl(0); if(stateId.equals(StateFactory.COSTS)) return new StateImpl(0);
if(stateId.equals(StateFactory.DURATION)) return new StateImpl(0); if(stateId.equals(StateFactory.DURATION)) return new StateImpl(0);
if(defaultRouteStates.containsKey(stateId)) return defaultRouteStates.get(stateId);
return null; return null;
} }