MATSIM
Public Member Functions | List of all members
org.matsim.core.router.AnalysisMainModeIdentifier Interface Reference
Inheritance diagram for org.matsim.core.router.AnalysisMainModeIdentifier:
Inheritance graph
[legend]

Public Member Functions

String identifyMainMode (List<? extends PlanElement > tripElements)
 

Detailed Description

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.

Author
vsp-gleich

Definition at line 39 of file AnalysisMainModeIdentifier.java.

Member Function Documentation

◆ identifyMainMode()

String org.matsim.core.router.MainModeIdentifier.identifyMainMode ( List<? extends PlanElement tripElements)
inherited

The documentation for this interface was generated from the following file: