mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
fix defaultState
This commit is contained in:
parent
c528b6d430
commit
71a3cbe9a8
2 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ import basics.algo.InsertionEndsListener;
|
|||
import basics.route.VehicleFleetManager;
|
||||
import basics.route.VehicleRoute;
|
||||
|
||||
class RemoveEmptyVehicles implements InsertionEndsListener{
|
||||
public class RemoveEmptyVehicles implements InsertionEndsListener{
|
||||
|
||||
private static Logger log = Logger.getLogger(RemoveEmptyVehicles.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -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.FUTURE_PICKS)) return new StateImpl(0);
|
||||
if(stateId.equals(StateFactory.PAST_DELIVERIES)) return new StateImpl(0);
|
||||
if(defaultActivityStates.containsKey(stateId)) return defaultActivityStates.get(stateId);
|
||||
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.COSTS)) return new StateImpl(0);
|
||||
if(stateId.equals(StateFactory.DURATION)) return new StateImpl(0);
|
||||
if(defaultRouteStates.containsKey(stateId)) return defaultRouteStates.get(stateId);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue