|
MATSIM
|

Public Member Functions | |
| void | prepareReplanning (ReplanningContext replanningContext) |
| void | handlePlan (T plan) |
| void | finishReplanning () |
Definition at line 27 of file GenericPlanStrategyModule.java.
| void org.matsim.core.replanning.modules.GenericPlanStrategyModule< T extends BasicPlan >.prepareReplanning | ( | ReplanningContext | replanningContext | ) |
Initializes this module before handling plans. Modules using an external routine could e.g. open a file here to write the plans out and pass them to the external routines. Multi-threaded modules could initialize and start their threads in this method.
| replanningContext | TODO |
Implemented in org.matsim.api.core.v01.replanning.PlanStrategyModule, and org.matsim.core.replanning.modules.ModeAndRouteConsistencyChecker.
Referenced by org.matsim.core.replanning.GenericPlanStrategyImpl< Plan, Person >.init().
| void org.matsim.core.replanning.modules.GenericPlanStrategyModule< T extends BasicPlan >.handlePlan | ( | T | plan | ) |
Tells this module to handle the specified plan. It is not required that the plan must immediately be handled, e.g. modules calling external routines could just collect the plans here and start the external routine in finishReplanning(), or multi-threaded modules could just add the plan to a synchronized queue for the threads.
| plan |
Referenced by org.matsim.core.replanning.GenericPlanStrategyImpl< Plan, Person >.run().
| void org.matsim.core.replanning.modules.GenericPlanStrategyModule< T extends BasicPlan >.finishReplanning | ( | ) |
Indicates that no additional plans will be handed to this module and waits until this module has finished handling all plans. Modules calling external routines can call those here, or multi-threaded modules can wait here until all threads are finished with their work.
Implemented in org.matsim.api.core.v01.replanning.PlanStrategyModule, and org.matsim.core.replanning.modules.ModeAndRouteConsistencyChecker.
Referenced by org.matsim.core.replanning.GenericPlanStrategyImpl< Plan, Person >.finish().
1.8.13