Class StopId2RemainSeatedDataMapData
- java.lang.Object
-
- playground.vsp.andreas.bvgAna.level2.StopId2RemainSeatedDataMapData
-
public class StopId2RemainSeatedDataMapData extends Object
Collects occupancy at arrival and number of agents leaving the vehicle for onVehicleArrivesAtFacilityEvent
- Author:
- aneumann
-
-
Constructor Summary
Constructors Constructor Description StopId2RemainSeatedDataMapData(org.matsim.core.api.experimental.events.VehicleArrivesAtFacilityEvent event, int occupancyAtArrival)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAgentEntering()
protected void
addAgentLeaving()
double
getFractionEntering()
double
getFractionLeaving()
double
getFractionRemainedSeated()
int
getNumberOfAgentsArriving()
int
getNumberOfAgentsEntering()
int
getNumberOfAgentsLeaving()
int
getNumberOfAgentsRemainedSeated()
org.matsim.core.api.experimental.events.VehicleArrivesAtFacilityEvent
getVehicleArrivesAtFacilityEvent()
String
toString()
-
-
-
Constructor Detail
-
StopId2RemainSeatedDataMapData
public StopId2RemainSeatedDataMapData(org.matsim.core.api.experimental.events.VehicleArrivesAtFacilityEvent event, int occupancyAtArrival)
-
-
Method Detail
-
getNumberOfAgentsRemainedSeated
public int getNumberOfAgentsRemainedSeated()
- Returns:
- Returns number of agents which did not leave the vehicle at that stop
-
getFractionRemainedSeated
public double getFractionRemainedSeated()
- Returns:
- Returns the fraction of agents which did not leave the vehicle at the stop based on the occupancy at arrival
-
getNumberOfAgentsEntering
public int getNumberOfAgentsEntering()
- Returns:
- Returns number of agents which entered the vehicle at that stop
-
getNumberOfAgentsArriving
public final int getNumberOfAgentsArriving()
- Returns:
- Returns number of agents which arrived in vehicle at that stop
-
getFractionEntering
public double getFractionEntering()
- Returns:
- Returns the fraction of agents which entered the vehicle at the stop based on the occupancy at arrival
-
getNumberOfAgentsLeaving
public int getNumberOfAgentsLeaving()
- Returns:
- Returns number of agents which left the vehicle at that stop
-
getFractionLeaving
public double getFractionLeaving()
- Returns:
- Returns the fraction of agents which left the vehicle at the stop based on the occupancy at arrival
-
getVehicleArrivesAtFacilityEvent
public org.matsim.core.api.experimental.events.VehicleArrivesAtFacilityEvent getVehicleArrivesAtFacilityEvent()
- Returns:
- Returns the
VehicleArrivesAtFacilityEvent
-
addAgentLeaving
protected void addAgentLeaving()
-
addAgentEntering
protected void addAgentEntering()
-
-