|
MATSIM
|

Public Member Functions | |
| VolumesAnalyzer (final int timeBinSize, final int maxTime, final Network network) | |
| VolumesAnalyzer (final int timeBinSize, final int maxTime, final Network network, boolean observeModes) | |
| void | handleEvent (VehicleEntersTrafficEvent event) |
| void | handleEvent (final LinkLeaveEvent event) |
| int [] | getVolumesForLink (final Id< Link > linkId) |
| int [] | getVolumesForLink (final Id< Link > linkId, String mode) |
| int | getVolumesArraySize () |
| double [] | getVolumesPerHourForLink (final Id< Link > linkId) |
| double [] | getVolumesPerHourForLink (final Id< Link > linkId, String mode) |
| Set< String > | getModes () |
| Set< Id< Link > > | getLinkIds () |
| void | reset (final int iteration) |
Private Member Functions | |
| int | getTimeSlotIndex (final double time) |
Private Attributes | |
| final int | timeBinSize |
| final int | maxTime |
| final int | maxSlotIndex |
| final IdMap< Link, int[]> | links |
| final boolean | observeModes |
| final IdMap< Vehicle, String > | enRouteModes |
| final IdMap< Link, Map< String, int[]> > | linksPerMode |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(VolumesAnalyzer.class) |
Counts the number of vehicles leaving a link, aggregated into time bins of a specified size.
Definition at line 47 of file VolumesAnalyzer.java.
| org.matsim.analysis.VolumesAnalyzer.VolumesAnalyzer | ( | final int | timeBinSize, |
| final int | maxTime, | ||
| final Network | network | ||
| ) |
Definition at line 66 of file VolumesAnalyzer.java.
References org.matsim.analysis.VolumesAnalyzer.maxTime, and org.matsim.analysis.VolumesAnalyzer.timeBinSize.
| org.matsim.analysis.VolumesAnalyzer.VolumesAnalyzer | ( | final int | timeBinSize, |
| final int | maxTime, | ||
| final Network | network, | ||
| boolean | observeModes | ||
| ) |
Definition at line 70 of file VolumesAnalyzer.java.
References org.matsim.analysis.VolumesAnalyzer.maxTime, org.matsim.analysis.VolumesAnalyzer.observeModes, and org.matsim.analysis.VolumesAnalyzer.timeBinSize.
| void org.matsim.analysis.VolumesAnalyzer.handleEvent | ( | VehicleEntersTrafficEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.VehicleEntersTrafficEventHandler.
Definition at line 87 of file VolumesAnalyzer.java.
References org.matsim.api.core.v01.events.VehicleEntersTrafficEvent.getVehicleId(), and org.matsim.api.core.v01.IdMap< T, V >.put().

| void org.matsim.analysis.VolumesAnalyzer.handleEvent | ( | final LinkLeaveEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.LinkLeaveEventHandler.
Definition at line 94 of file VolumesAnalyzer.java.
References org.matsim.api.core.v01.IdMap< T, V >.get(), org.matsim.api.core.v01.events.LinkLeaveEvent.getLinkId(), org.matsim.api.core.v01.events.Event.getTime(), org.matsim.analysis.VolumesAnalyzer.getTimeSlotIndex(), org.matsim.api.core.v01.events.LinkLeaveEvent.getVehicleId(), and org.matsim.api.core.v01.IdMap< T, V >.put().

|
private |
Definition at line 119 of file VolumesAnalyzer.java.
References org.matsim.analysis.VolumesAnalyzer.maxSlotIndex.
Referenced by org.matsim.analysis.VolumesAnalyzer.getVolumesPerHourForLink(), and org.matsim.analysis.VolumesAnalyzer.handleEvent().
| linkId |
linkId per time bin, starting with time bin 0 from 0 seconds to (timeBinSize-1)seconds. Definition at line 131 of file VolumesAnalyzer.java.
References org.matsim.api.core.v01.IdMap< T, V >.get().
Referenced by org.matsim.analysis.VolumesAnalyzer.getVolumesPerHourForLink().

| int [] org.matsim.analysis.VolumesAnalyzer.getVolumesForLink | ( | final Id< Link > | linkId, |
| String | mode | ||
| ) |
| linkId | |
| mode |
linkId per time bin, starting with time bin 0 from 0 seconds to (timeBinSize-1)seconds. Definition at line 141 of file VolumesAnalyzer.java.
References org.matsim.api.core.v01.IdMap< T, V >.get().

| int org.matsim.analysis.VolumesAnalyzer.getVolumesArraySize | ( | ) |
Definition at line 153 of file VolumesAnalyzer.java.
Definition at line 177 of file VolumesAnalyzer.java.
References org.matsim.analysis.VolumesAnalyzer.getTimeSlotIndex(), org.matsim.analysis.VolumesAnalyzer.getVolumesForLink(), and org.matsim.analysis.VolumesAnalyzer.timeBinSize.
Referenced by org.matsim.analysis.CalcLinkStats.addData(), and org.matsim.counts.algorithms.CountsComparisonAlgorithm.CountsComparisonAlgorithm().

| double [] org.matsim.analysis.VolumesAnalyzer.getVolumesPerHourForLink | ( | final Id< Link > | linkId, |
| String | mode | ||
| ) |
Definition at line 196 of file VolumesAnalyzer.java.
References org.matsim.analysis.VolumesAnalyzer.getTimeSlotIndex(), org.matsim.analysis.VolumesAnalyzer.getVolumesForLink(), and org.matsim.analysis.VolumesAnalyzer.timeBinSize.

| Set<String> org.matsim.analysis.VolumesAnalyzer.getModes | ( | ) |
Definition at line 224 of file VolumesAnalyzer.java.
References org.matsim.api.core.v01.IdMap< T, V >.values().

Definition at line 242 of file VolumesAnalyzer.java.
References org.matsim.api.core.v01.IdMap< T, V >.keySet().

| void org.matsim.analysis.VolumesAnalyzer.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 247 of file VolumesAnalyzer.java.
References org.matsim.api.core.v01.IdMap< T, V >.clear().

|
staticprivate |
Definition at line 49 of file VolumesAnalyzer.java.
|
private |
Definition at line 50 of file VolumesAnalyzer.java.
Referenced by org.matsim.analysis.VolumesAnalyzer.getVolumesPerHourForLink(), and org.matsim.analysis.VolumesAnalyzer.VolumesAnalyzer().
|
private |
Definition at line 51 of file VolumesAnalyzer.java.
Referenced by org.matsim.analysis.VolumesAnalyzer.VolumesAnalyzer().
|
private |
Definition at line 52 of file VolumesAnalyzer.java.
Referenced by org.matsim.analysis.VolumesAnalyzer.getTimeSlotIndex().
Definition at line 53 of file VolumesAnalyzer.java.
|
private |
Definition at line 56 of file VolumesAnalyzer.java.
Referenced by org.matsim.analysis.VolumesAnalyzer.VolumesAnalyzer().
Definition at line 57 of file VolumesAnalyzer.java.
Definition at line 58 of file VolumesAnalyzer.java.
1.8.13