20 package org.matsim.core.config.groups;
22 import java.util.LinkedHashSet;
26 import org.apache.logging.log4j.LogManager;
27 import org.apache.logging.log4j.Logger;
40 public static final String
GROUPNAME =
"travelTimeCalculator";
45 private static final String
MAX_TIME =
"maxTime";
73 Map<String,String> map = super.getComments();
74 map.put(TRAVEL_TIME_BIN_SIZE,
"The size of the time bin (in sec) into which the link travel times are aggregated for " +
76 map.put(MAX_TIME,
"The lenght (in sec) of the time period that is splited into time bins; an additional time bin is created " +
77 "to aggregate all travel times collected after maxTime") ;
78 map.put(TRAVEL_TIME_GETTER,
"How to deal with link entry times at different positions during the time bin. Currently " +
79 "supported: average, linearinterpolation");
80 map.put(TRAVEL_TIME_AGGREGATOR,
"How to deal with congested time bins that have no link entry events. `optimistic' " +
81 "assumes free speed (too optimistic); 'experimental_LastMile' is experimental and probably too pessimistic.") ;
82 map.put(ANALYZEDMODES,
"(only for backwards compatibility; only used if " + SEPARATEMODES +
"==false && + " + FILTERMODES +
"==true) Transport modes that will be " +
83 "respected by the travel time collector. 'car' is default which includes also buses from the pt simulation module.");
84 map.put(FILTERMODES,
"(only for backwards compatiblity; only used if " + SEPARATEMODES +
"==false) Only modes included in analyzedModes are included." ) ;
85 map.put(SEPARATEMODES,
"(only for backwards compatibility) If false, link travel times are measured and aggregated over all vehicles using the link." ) ;
89 enum DifferentModesHandling { separateAccordingToAnalyzedModes, jointButRestrictedToAnalyzedModes, jointAndUsingAllModes }
final void setTraveltimeBinSize(final double binSize)
void setSeparateModes(boolean separateModes)
void setAnalyzedModesAsString(final String analyzedModes)
static final String ANALYZEDMODES
boolean isCalculateLinkToLinkTravelTimes()
static Set< String > stringToSet(final String values)
boolean isCalculateLinkTravelTimes()
static final String FILTERMODES
static final String CALCULATE_LINK_TRAVELTIMES
static String setToString(final Set< String > values)
boolean getSeparateModes()
String getAnalyzedModesAsString()
static final String TRAVEL_TIME_AGGREGATOR
boolean calculateLinkToLinkTravelTimes
static final String GROUPNAME
static final String TRAVEL_TIME_GETTER
boolean calculateLinkTravelTimes
Set< String > analyzedModes
TravelTimeCalculatorConfigGroup()
static final String MAX_TIME
final Map< String, String > getComments()
String travelTimeAggregator
static final String TRAVEL_TIME_BIN_SIZE
void setAnalyzedModes(final Set< String > analyzedModes)
final double getTraveltimeBinSize()
void setFilterModes(final boolean filterModes)
void setMaxTime(int maxTime)
void setTravelTimeGetterType(final String travelTimeGetter)
void setTravelTimeAggregatorType(final String travelTimeAggregator)
static final String SEPARATEMODES
Set< String > getAnalyzedModes()
static final String CALCULATE_LINKTOLINK_TRAVELTIMES
String getTravelTimeAggregatorType()
void setCalculateLinkToLinkTravelTimes(final boolean calculateLinkToLinkTravelTimes)
String getTravelTimeGetterType()
void setCalculateLinkTravelTimes(final boolean calculateLinkTravelTimes)