|
MATSIM
|

Public Member Functions | |
| CalcLegTimes () | |
| void | handleEvent (ActivityEndEvent event) |
| void | handleEvent (final PersonDepartureEvent event) |
| void | handleEvent (final PersonArrivalEvent event) |
| void | handleEvent (ActivityStartEvent event) |
| void | reset (final int iteration) |
| Map< String, int[]> | getLegStats () |
| double | getAverageLegDuration () |
| void | writeStats (final String filename) |
| void | writeStats (final java.io.Writer out) throws UncheckedIOException |
Static Public Member Functions | |
| static int | getTimeslotIndex (final double time_s) |
Private Attributes | |
| final IdMap< Person, Double > | agentDepartures = new IdMap<>(Person.class) |
| final IdMap< Person, Double > | agentArrivals = new IdMap<>(Person.class) |
| final Map< String, int[]> | legStats = new TreeMap<>() |
| final IdMap< Person, String > | previousActivityTypes = new IdMap<>(Person.class) |
| double | sumLegDurations = 0 |
| int | sumLegs = 0 |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(CalcLegTimes.class) |
| static final int | SLOT_SIZE = 300 |
| static final int | MAXINDEX = 12 |
Calculates the distribution of legs-durations, e.g. how many legs took at most 5 minutes, how many between 5 and 10 minutes, and so on. Also calculates the average leg duration. Legs ended because of vehicles being stuck are not counted.
Definition at line 54 of file CalcLegTimes.java.
| org.matsim.analysis.CalcLegTimes.CalcLegTimes | ( | ) |
Definition at line 74 of file CalcLegTimes.java.
| void org.matsim.analysis.CalcLegTimes.handleEvent | ( | ActivityEndEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.ActivityEndEventHandler.
Definition at line 79 of file CalcLegTimes.java.
References org.matsim.api.core.v01.events.ActivityEndEvent.getPersonId(), and org.matsim.api.core.v01.IdMap< T, V >.put().

| void org.matsim.analysis.CalcLegTimes.handleEvent | ( | final PersonDepartureEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonDepartureEventHandler.
Definition at line 84 of file CalcLegTimes.java.
References org.matsim.api.core.v01.events.PersonDepartureEvent.getPersonId(), and org.matsim.api.core.v01.IdMap< T, V >.put().

| void org.matsim.analysis.CalcLegTimes.handleEvent | ( | final PersonArrivalEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonArrivalEventHandler.
Definition at line 89 of file CalcLegTimes.java.
References org.matsim.api.core.v01.events.PersonArrivalEvent.getPersonId(), and org.matsim.api.core.v01.IdMap< T, V >.put().

| void org.matsim.analysis.CalcLegTimes.handleEvent | ( | ActivityStartEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.ActivityStartEventHandler.
Definition at line 95 of file CalcLegTimes.java.
References org.matsim.api.core.v01.events.ActivityStartEvent.getPersonId(), org.matsim.analysis.CalcLegTimes.getTimeslotIndex(), org.matsim.analysis.CalcLegTimes.MAXINDEX, and org.matsim.api.core.v01.IdMap< T, V >.remove().

| void org.matsim.analysis.CalcLegTimes.reset | ( | final int | iteration | ) |
Gives the event handler the possibility to clean up its internal state. Within a Controler-Simulation, this is called before the mobsim starts.
| iteration | the up-coming iteration from which up-coming events will be from. |
Implements org.matsim.core.events.handler.EventHandler.
Definition at line 120 of file CalcLegTimes.java.
References org.matsim.api.core.v01.IdMap< T, V >.clear().

| Map<String, int[]> org.matsim.analysis.CalcLegTimes.getLegStats | ( | ) |
Definition at line 128 of file CalcLegTimes.java.
References org.matsim.analysis.CalcLegTimes.legStats.
|
static |
Definition at line 132 of file CalcLegTimes.java.
References org.matsim.analysis.CalcLegTimes.MAXINDEX.
Referenced by org.matsim.analysis.CalcLegTimes.handleEvent().
| double org.matsim.analysis.CalcLegTimes.getAverageLegDuration | ( | ) |
Definition at line 138 of file CalcLegTimes.java.
| void org.matsim.analysis.CalcLegTimes.writeStats | ( | final String | filename | ) |
Definition at line 142 of file CalcLegTimes.java.
References org.matsim.core.utils.io.IOUtils.getBufferedWriter().

| void org.matsim.analysis.CalcLegTimes.writeStats | ( | final java.io.Writer | out | ) | throws UncheckedIOException |
Definition at line 150 of file CalcLegTimes.java.
References org.matsim.core.utils.misc.Time.writeTime().

|
staticprivate |
Definition at line 57 of file CalcLegTimes.java.
|
staticprivate |
Definition at line 59 of file CalcLegTimes.java.
|
staticprivate |
Definition at line 60 of file CalcLegTimes.java.
Referenced by org.matsim.analysis.CalcLegTimes.getTimeslotIndex(), and org.matsim.analysis.CalcLegTimes.handleEvent().
|
private |
Definition at line 62 of file CalcLegTimes.java.
|
private |
Definition at line 63 of file CalcLegTimes.java.
|
private |
Definition at line 64 of file CalcLegTimes.java.
Referenced by org.matsim.analysis.CalcLegTimes.getLegStats().
|
private |
Definition at line 65 of file CalcLegTimes.java.
|
private |
Definition at line 66 of file CalcLegTimes.java.
|
private |
Definition at line 67 of file CalcLegTimes.java.
1.8.13