|
MATSIM
|
Public Member Functions | |
| void | handleEvent (VehicleArrivesAtFacilityEvent event) |
| void | handleEvent (VehicleDepartsAtFacilityEvent event) |
| void | reset (int iteration) |
| Id | getFacilityIdForVehicle (final Id vehicleId) |
Private Attributes | |
| final Map< Id, Id > | vehicleFacilityMap = new HashMap<Id, Id>() |
Tracks at which facility a vehicle is currently located. If a vehicle departs at a facility, no information about its location can be returned until the vehicle arrives at some other facility.
Definition at line 39 of file VehicleTracker.java.
| void org.matsim.pt.analysis.VehicleTracker.handleEvent | ( | VehicleArrivesAtFacilityEvent | event | ) |
Implements org.matsim.core.api.experimental.events.handler.VehicleArrivesAtFacilityEventHandler.
Definition at line 43 of file VehicleTracker.java.
References org.matsim.core.api.experimental.events.VehicleArrivesAtFacilityEvent.getVehicleId().
| void org.matsim.pt.analysis.VehicleTracker.handleEvent | ( | VehicleDepartsAtFacilityEvent | event | ) |
Implements org.matsim.core.api.experimental.events.handler.VehicleDepartsAtFacilityEventHandler.
Definition at line 47 of file VehicleTracker.java.
References org.matsim.core.api.experimental.events.VehicleDepartsAtFacilityEvent.getVehicleId().
| void org.matsim.pt.analysis.VehicleTracker.reset | ( | 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 52 of file VehicleTracker.java.
| vehicleId |
null if the vehicle is currently at no known location. Definition at line 61 of file VehicleTracker.java.
References org.matsim.api.core.v01.Id< T >.get().
Referenced by org.matsim.pt.analysis.RouteOccupancy.handleEvent(), and org.matsim.pt.analysis.TransitRouteAccessEgressAnalysis.handleEvent().
|
private |
Definition at line 41 of file VehicleTracker.java.
1.8.13