Class ReRoute
- java.lang.Object
-
- org.matsim.core.replanning.modules.AbstractMultithreadedModule
-
- org.matsim.core.replanning.modules.ReRoute
-
- All Implemented Interfaces:
PlanStrategyModule
,GenericPlanStrategyModule<Plan>
public class ReRoute extends AbstractMultithreadedModule
Uses the routing algorithm provided by the Controler for calculating the routes of plans during Replanning.- Author:
- mrieser
-
-
Constructor Summary
Constructors Constructor Description ReRoute(Scenario scenario, javax.inject.Provider<TripRouter> tripRouterProvider)
ReRoute(ActivityFacilities facilities, javax.inject.Provider<TripRouter> tripRouterProvider, GlobalConfigGroup globalConfigGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanAlgorithm
getPlanAlgoInstance()
Design comments: The way I understand this, the instances that this method returns need to be thread-safe (i.e.-
Methods inherited from class org.matsim.core.replanning.modules.AbstractMultithreadedModule
afterFinishReplanningHook, afterPrepareReplanningHook, beforeFinishReplanningHook, beforePrepareReplanningHook, finishReplanning, getReplanningContext, handlePlan, prepareReplanning
-
-
-
-
Constructor Detail
-
ReRoute
public ReRoute(ActivityFacilities facilities, javax.inject.Provider<TripRouter> tripRouterProvider, GlobalConfigGroup globalConfigGroup)
-
ReRoute
public ReRoute(Scenario scenario, javax.inject.Provider<TripRouter> tripRouterProvider)
-
-
Method Detail
-
getPlanAlgoInstance
public final PlanAlgorithm getPlanAlgoInstance()
Description copied from class:AbstractMultithreadedModule
Design comments:- The way I understand this, the instances that this method returns need to be thread-safe (i.e. independent from each other). They can, for example, not rely on the same instance of the router. kai, dec'12
- Specified by:
getPlanAlgoInstance
in classAbstractMultithreadedModule
-
-