|
MATSIM
|

Public Member Functions | |
| String | identifyMainMode (List<? extends PlanElement > tripElements) |
The purpose of an AnalysisMainModeIdentifier is to identify what is the main mode of a trip for analysis purposes, e.g. mode choice calibartion. E.g. a trip made up of the following legs walk-pt-walk (walk from home to the bus stop, take the bus, walk from the bus stop to work) should be interpreted as a pt trip just as a real world travel survey would count it as a pt trip.
This is different from the routing mode RoutingModeMainModeIdentifier which is only used to assign the correct router for re-routing.
If the routing mode was "pt", but no suitable pt service could be found (e.g. if after midnight no service is provided) the actual trip will be a single "walk" leg. For mode choice calibration this trip must be recognized as "walk" and not "pt", because it is de facto "walk" and travel surveys would count it as a "walk" leg.
AnalysisMainModeIdentifier is a marker interface for MainModeIdentifier intended to be used in analysis code (e.g. org.matsim.analysis.ModeStatsControlerListener). It is separate from the deprecated MainModeIdentifier which is only used for retrofitting old plans without the attribute routing mode.
Definition at line 39 of file AnalysisMainModeIdentifier.java.
|
inherited |
Implemented in org.matsim.core.router.DefaultAnalysisMainModeIdentifier, org.matsim.analysis.TransportPlanningMainModeIdentifier, org.matsim.core.router.MainModeIdentifierImpl, and org.matsim.core.router.RoutingModeMainModeIdentifier.
Referenced by org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.applyChange(), org.matsim.analysis.ModeStatsControlerListener.collectModeShareInfo(), org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.containsUnknownMode(), org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.determineChoiceSet(), org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.findFirstOriginOfMode(), org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.findLastDestinationOfMode(), org.matsim.analysis.TripsAndLegsWriter.getPlanCSVRecords(), org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.getTransportMode(), org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.hasSingleTripChoice(), org.matsim.core.population.algorithms.TripsToLegsAlgorithm.run(), and org.matsim.analysis.ModeChoiceCoverageControlerListener.updateModesUsedPerPerson().
1.8.13