|
MATSIM
|

Classes | |
| enum | Behavior |
Public Member Functions | |
| SubtourModeChoice (GlobalConfigGroup globalConfigGroup, SubtourModeChoiceConfigGroup subtourModeChoiceConfigGroup, PermissibleModesCalculator permissibleModesCalculator) | |
| final void | setBehavior (Behavior behavior) |
| PlanAlgorithm | getPlanAlgoInstance () |
| void | prepareReplanning (ReplanningContext replanningContext) |
| void | handlePlan (Plan plan) |
| void | handlePlan (T plan) |
| void | finishReplanning () |
Protected Member Functions | |
| String [] | getModes () |
Private Attributes | |
| final double | probaForChangeSingleTripMode |
| final double | coordDist |
| Behavior | behavior = Behavior.fromSpecifiedModesToSpecifiedModes |
| final PermissibleModesCalculator | permissibleModesCalculator |
| final String [] | chainBasedModes |
| final String [] | modes |
Changes the transportation mode of all legs of one randomly chosen subtour in a plan to a randomly chosen different mode given a list of possible modes.
A subtour is a consecutive subset of a plan which starts and ends at the same link.
Certain modes are considered only if the choice would not require some resource to appear out of thin air. For example, you can only drive your car back from work if you have previously parked it there. These are called chain-based modes.
The assumption is that each chain-based mode requires one resource (car, bike, ...) and that this resource is initially positioned at home. Home is the location of the first activity in the plan.
If the plan initially violates this constraint, this module may (!) repair it.
Definition at line 49 of file SubtourModeChoice.java.
| org.matsim.core.replanning.modules.SubtourModeChoice.SubtourModeChoice | ( | GlobalConfigGroup | globalConfigGroup, |
| SubtourModeChoiceConfigGroup | subtourModeChoiceConfigGroup, | ||
| PermissibleModesCalculator | permissibleModesCalculator | ||
| ) |
Definition at line 83 of file SubtourModeChoice.java.
References org.matsim.core.replanning.modules.SubtourModeChoice.coordDist, org.matsim.core.config.groups.SubtourModeChoiceConfigGroup.getBehavior(), org.matsim.core.config.groups.SubtourModeChoiceConfigGroup.getChainBasedModes(), org.matsim.core.config.groups.SubtourModeChoiceConfigGroup.getCoordDistance(), org.matsim.core.config.groups.SubtourModeChoiceConfigGroup.getModes(), org.matsim.core.config.groups.GlobalConfigGroup.getNumberOfThreads(), org.matsim.core.config.groups.SubtourModeChoiceConfigGroup.getProbaForRandomSingleTripMode(), org.matsim.core.replanning.modules.SubtourModeChoice.permissibleModesCalculator, org.matsim.core.replanning.modules.SubtourModeChoice.probaForChangeSingleTripMode, and org.matsim.core.replanning.modules.SubtourModeChoice.setBehavior().

| final void org.matsim.core.replanning.modules.SubtourModeChoice.setBehavior | ( | Behavior | behavior | ) |
Definition at line 110 of file SubtourModeChoice.java.
References org.matsim.core.replanning.modules.SubtourModeChoice.behavior.
Referenced by org.matsim.core.replanning.modules.SubtourModeChoice.SubtourModeChoice().
|
protected |
Definition at line 114 of file SubtourModeChoice.java.
| PlanAlgorithm org.matsim.core.replanning.modules.SubtourModeChoice.getPlanAlgoInstance | ( | ) |
Definition at line 119 of file SubtourModeChoice.java.
References org.matsim.core.replanning.modules.SubtourModeChoice.behavior, org.matsim.core.replanning.modules.SubtourModeChoice.chainBasedModes, org.matsim.core.replanning.modules.SubtourModeChoice.coordDist, org.matsim.core.gbl.MatsimRandom.getLocalInstance(), org.matsim.core.router.TripStructureUtils.getRoutingModeIdentifier(), org.matsim.core.replanning.modules.SubtourModeChoice.modes, org.matsim.core.replanning.modules.SubtourModeChoice.permissibleModesCalculator, and org.matsim.core.replanning.modules.SubtourModeChoice.probaForChangeSingleTripMode.

|
inherited |
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 |
Implements org.matsim.core.replanning.modules.GenericPlanStrategyModule< T extends BasicPlan >.
Implemented in org.matsim.core.replanning.modules.ModeAndRouteConsistencyChecker.
|
inherited |
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 |
Implemented in org.matsim.core.replanning.modules.ModeAndRouteConsistencyChecker.
|
inherited |
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().
|
inherited |
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.
Implements org.matsim.core.replanning.modules.GenericPlanStrategyModule< T extends BasicPlan >.
Implemented in org.matsim.core.replanning.modules.ModeAndRouteConsistencyChecker.
|
private |
Definition at line 51 of file SubtourModeChoice.java.
Referenced by org.matsim.core.replanning.modules.SubtourModeChoice.getPlanAlgoInstance(), and org.matsim.core.replanning.modules.SubtourModeChoice.SubtourModeChoice().
|
private |
Definition at line 52 of file SubtourModeChoice.java.
Referenced by org.matsim.core.replanning.modules.SubtourModeChoice.getPlanAlgoInstance(), and org.matsim.core.replanning.modules.SubtourModeChoice.SubtourModeChoice().
|
private |
Definition at line 76 of file SubtourModeChoice.java.
Referenced by org.matsim.core.replanning.modules.SubtourModeChoice.getPlanAlgoInstance(), and org.matsim.core.replanning.modules.SubtourModeChoice.setBehavior().
|
private |
Definition at line 78 of file SubtourModeChoice.java.
Referenced by org.matsim.core.replanning.modules.SubtourModeChoice.getPlanAlgoInstance(), and org.matsim.core.replanning.modules.SubtourModeChoice.SubtourModeChoice().
|
private |
Definition at line 80 of file SubtourModeChoice.java.
Referenced by org.matsim.core.replanning.modules.SubtourModeChoice.getPlanAlgoInstance().
|
private |
Definition at line 81 of file SubtourModeChoice.java.
Referenced by org.matsim.core.replanning.modules.SubtourModeChoice.getPlanAlgoInstance().
1.8.13