|
MATSIM
|

Classes | |
| class | LineData |
| class | RouteData |
| class | StopData |
| class | StopInformation |
| class | VehicleData |
Public Member Functions | |
| TransitLoad () | |
| int | getLoadAtDeparture (final TransitLine line, final TransitRoute route, final TransitStopFacility stopFacility, final Departure departure) |
| int | getLoadAtDeparture (final TransitLine line, final TransitRoute route, final int transitRouteStopIndex, final Departure departure) |
| List< StopInformation > | getDepartureStopInformation (final TransitLine line, final TransitRoute route, final TransitStopFacility stopFacility, final Departure departure) |
| void | handleEvent (TransitDriverStartsEvent event) |
| void | handleEvent (final VehicleArrivesAtFacilityEvent event) |
| void | handleEvent (final VehicleDepartsAtFacilityEvent event) |
| void | handleEvent (final PersonEntersVehicleEvent event) |
| void | handleEvent (final PersonLeavesVehicleEvent event) |
| void | reset (final int iteration) |
Private Member Functions | |
| List< StopInformation > | getStopInformation (final Id< TransitLine > lineId, final Id< TransitRoute > routeId, final Id< TransitStopFacility > stopFacilityId, final Id< Departure > departureId, final boolean createIfMissing) |
Private Attributes | |
| final Map< Id< TransitLine >, LineData > | lineData = new HashMap<>() |
| final Map< Id< Vehicle >, Id< TransitStopFacility > > | vehicleFacilityMap = new HashMap<>() |
| final Map< Id< Vehicle >, VehicleData > | vehicleData = new HashMap<>() |
Calculates the number of passenger that are in a transit vehicle when the vehicle departs a stop location.
Definition at line 52 of file TransitLoad.java.
| org.matsim.pt.analysis.TransitLoad.TransitLoad | ( | ) |
Definition at line 59 of file TransitLoad.java.
| int org.matsim.pt.analysis.TransitLoad.getLoadAtDeparture | ( | final TransitLine | line, |
| final TransitRoute | route, | ||
| final TransitStopFacility | stopFacility, | ||
| final Departure | departure | ||
| ) |
Always returns first occurence of the TransitStopFacility in the route.
| line | |
| route | |
| stopFacility | |
| departure |
Definition at line 72 of file TransitLoad.java.
References org.matsim.api.core.v01.Identifiable< T >.getId(), and org.matsim.pt.transitSchedule.api.TransitRoute.getStops().

| int org.matsim.pt.analysis.TransitLoad.getLoadAtDeparture | ( | final TransitLine | line, |
| final TransitRoute | route, | ||
| final int | transitRouteStopIndex, | ||
| final Departure | departure | ||
| ) |
Definition at line 81 of file TransitLoad.java.
References org.matsim.api.core.v01.Identifiable< T >.getId(), org.matsim.pt.transitSchedule.api.TransitRouteStop.getStopFacility(), org.matsim.pt.analysis.TransitLoad.getStopInformation(), org.matsim.pt.transitSchedule.api.TransitRoute.getStops(), org.matsim.pt.analysis.TransitLoad.StopInformation.nOfEntering, and org.matsim.pt.analysis.TransitLoad.StopInformation.nOfLeaving.

| List<StopInformation> org.matsim.pt.analysis.TransitLoad.getDepartureStopInformation | ( | final TransitLine | line, |
| final TransitRoute | route, | ||
| final TransitStopFacility | stopFacility, | ||
| final Departure | departure | ||
| ) |
Definition at line 115 of file TransitLoad.java.
References org.matsim.api.core.v01.Identifiable< T >.getId(), and org.matsim.pt.analysis.TransitLoad.getStopInformation().

| void org.matsim.pt.analysis.TransitLoad.handleEvent | ( | TransitDriverStartsEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.TransitDriverStartsEventHandler.
Definition at line 120 of file TransitLoad.java.
References org.matsim.api.core.v01.events.TransitDriverStartsEvent.getVehicleId().

| void org.matsim.pt.analysis.TransitLoad.handleEvent | ( | final VehicleArrivesAtFacilityEvent | event | ) |
Implements org.matsim.core.api.experimental.events.handler.VehicleArrivesAtFacilityEventHandler.
Definition at line 125 of file TransitLoad.java.
References org.matsim.pt.analysis.TransitLoad.StopInformation.arrivalTime, org.matsim.pt.analysis.TransitLoad.VehicleData.departureId, org.matsim.pt.analysis.TransitLoad.getStopInformation(), org.matsim.core.api.experimental.events.VehicleArrivesAtFacilityEvent.getVehicleId(), org.matsim.pt.analysis.TransitLoad.VehicleData.lineId, and org.matsim.pt.analysis.TransitLoad.VehicleData.routeId.

| void org.matsim.pt.analysis.TransitLoad.handleEvent | ( | final VehicleDepartsAtFacilityEvent | event | ) |
Implements org.matsim.core.api.experimental.events.handler.VehicleDepartsAtFacilityEventHandler.
Definition at line 138 of file TransitLoad.java.
References org.matsim.pt.analysis.TransitLoad.VehicleData.departureId, org.matsim.pt.analysis.TransitLoad.StopInformation.departureTime, org.matsim.pt.analysis.TransitLoad.getStopInformation(), org.matsim.core.api.experimental.events.VehicleDepartsAtFacilityEvent.getVehicleId(), org.matsim.pt.analysis.TransitLoad.VehicleData.lineId, and org.matsim.pt.analysis.TransitLoad.VehicleData.routeId.

| void org.matsim.pt.analysis.TransitLoad.handleEvent | ( | final PersonEntersVehicleEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonEntersVehicleEventHandler.
Definition at line 150 of file TransitLoad.java.
References org.matsim.pt.analysis.TransitLoad.VehicleData.departureId, org.matsim.pt.analysis.TransitLoad.VehicleData.driverId, org.matsim.api.core.v01.events.PersonEntersVehicleEvent.getPersonId(), org.matsim.pt.analysis.TransitLoad.getStopInformation(), org.matsim.api.core.v01.events.PersonEntersVehicleEvent.getVehicleId(), org.matsim.pt.analysis.TransitLoad.VehicleData.lineId, org.matsim.pt.analysis.TransitLoad.StopInformation.nOfEntering, and org.matsim.pt.analysis.TransitLoad.VehicleData.routeId.

| void org.matsim.pt.analysis.TransitLoad.handleEvent | ( | final PersonLeavesVehicleEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonLeavesVehicleEventHandler.
Definition at line 164 of file TransitLoad.java.
References org.matsim.pt.analysis.TransitLoad.VehicleData.departureId, org.matsim.pt.analysis.TransitLoad.VehicleData.driverId, org.matsim.api.core.v01.events.PersonLeavesVehicleEvent.getPersonId(), org.matsim.pt.analysis.TransitLoad.getStopInformation(), org.matsim.api.core.v01.events.PersonLeavesVehicleEvent.getVehicleId(), org.matsim.pt.analysis.TransitLoad.VehicleData.lineId, org.matsim.pt.analysis.TransitLoad.StopInformation.nOfLeaving, and org.matsim.pt.analysis.TransitLoad.VehicleData.routeId.

| void org.matsim.pt.analysis.TransitLoad.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 178 of file TransitLoad.java.
|
private |
Definition at line 183 of file TransitLoad.java.
Referenced by org.matsim.pt.analysis.TransitLoad.getDepartureStopInformation(), org.matsim.pt.analysis.TransitLoad.getLoadAtDeparture(), and org.matsim.pt.analysis.TransitLoad.handleEvent().
|
private |
Definition at line 54 of file TransitLoad.java.
|
private |
Definition at line 56 of file TransitLoad.java.
|
private |
Definition at line 57 of file TransitLoad.java.
1.8.13