|
MATSIM
|

Public Member Functions | |
| RouteOccupancy (final TransitRoute transitRoute, final VehicleTracker tracker) | |
| void | handleEvent (final PersonEntersVehicleEvent event) |
| void | handleEvent (final PersonLeavesVehicleEvent event) |
| void | reset (final int iteration) |
| int | getNumberOfEnteringPassengers (final Id stopFacilityId) |
| int | getNumberOfLeavingPassengers (final Id stopFacilityId) |
Private Member Functions | |
| void | collectVehiclesInfo () |
Private Attributes | |
| final TransitRoute | transitRoute |
| final VehicleTracker | tracker |
| Set< Id > | routeVehicles = null |
| final Map< Id, Integer > | enteringPassengers = new HashMap<Id, Integer>() |
| final Map< Id, Integer > | leavingPassengers = new HashMap<Id, Integer>() |
Static Private Attributes | |
| static final Integer | Int1 = Integer.valueOf(1) |
Keeps track of the total number of passengers entering and leaving a transit vehicle along a given route, on all Departures.
Definition at line 42 of file RouteOccupancy.java.
| org.matsim.pt.analysis.RouteOccupancy.RouteOccupancy | ( | final TransitRoute | transitRoute, |
| final VehicleTracker | tracker | ||
| ) |
Definition at line 52 of file RouteOccupancy.java.
References org.matsim.pt.analysis.RouteOccupancy.tracker, and org.matsim.pt.analysis.RouteOccupancy.transitRoute.
| void org.matsim.pt.analysis.RouteOccupancy.handleEvent | ( | final PersonEntersVehicleEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonEntersVehicleEventHandler.
Definition at line 57 of file RouteOccupancy.java.
References org.matsim.pt.analysis.RouteOccupancy.collectVehiclesInfo(), org.matsim.api.core.v01.Id< T >.get(), org.matsim.pt.analysis.VehicleTracker.getFacilityIdForVehicle(), and org.matsim.api.core.v01.events.PersonEntersVehicleEvent.getVehicleId().

| void org.matsim.pt.analysis.RouteOccupancy.handleEvent | ( | final PersonLeavesVehicleEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonLeavesVehicleEventHandler.
Definition at line 72 of file RouteOccupancy.java.
References org.matsim.pt.analysis.RouteOccupancy.collectVehiclesInfo(), org.matsim.api.core.v01.Id< T >.get(), org.matsim.pt.analysis.VehicleTracker.getFacilityIdForVehicle(), and org.matsim.api.core.v01.events.PersonLeavesVehicleEvent.getVehicleId().

| void org.matsim.pt.analysis.RouteOccupancy.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 87 of file RouteOccupancy.java.
| int org.matsim.pt.analysis.RouteOccupancy.getNumberOfEnteringPassengers | ( | final Id | stopFacilityId | ) |
Definition at line 93 of file RouteOccupancy.java.
| int org.matsim.pt.analysis.RouteOccupancy.getNumberOfLeavingPassengers | ( | final Id | stopFacilityId | ) |
Definition at line 101 of file RouteOccupancy.java.
|
private |
Lazy initialization, as the vehicle info may not be available from the beginning.
Definition at line 112 of file RouteOccupancy.java.
References org.matsim.pt.transitSchedule.api.TransitRoute.getDepartures().
Referenced by org.matsim.pt.analysis.RouteOccupancy.handleEvent().

|
staticprivate |
Definition at line 44 of file RouteOccupancy.java.
|
private |
Definition at line 46 of file RouteOccupancy.java.
Referenced by org.matsim.pt.analysis.RouteOccupancy.RouteOccupancy().
|
private |
Definition at line 47 of file RouteOccupancy.java.
Referenced by org.matsim.pt.analysis.RouteOccupancy.RouteOccupancy().
|
private |
Definition at line 48 of file RouteOccupancy.java.
|
private |
Definition at line 49 of file RouteOccupancy.java.
|
private |
Definition at line 50 of file RouteOccupancy.java.
1.8.13