|
MATSIM
|

Private Attributes | |
| final int | timeBinSize |
| final double | maxTime |
| Map< Id< TransitStopFacility >, int[]> | boards |
| final Map< Id< Vehicle >, Id< TransitStopFacility > > | vehStops = new HashMap<>() |
| final Map< Id< Vehicle >, Integer > | vehPassengers = new HashMap<>() |
| StringBuffer | occupancyRecord = new StringBuffer("time\tvehId\tStopId\tno.ofPassengersInVeh\n") |
| final Set< Id< Person > > | transitDrivers = new HashSet<>() |
| final Set< Id< Vehicle > > | transitVehicles = new HashSet<>() |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(OccupancyAnalyzer.class) |
Definition at line 52 of file OccupancyAnalyzer.java.
| org.matsim.pt.counts.OccupancyAnalyzer.OccupancyAnalyzer | ( | final int | timeBinSize, |
| final double | maxTime | ||
| ) |
Definition at line 71 of file OccupancyAnalyzer.java.
References org.matsim.pt.counts.OccupancyAnalyzer.maxTime, and org.matsim.pt.counts.OccupancyAnalyzer.timeBinSize.
| void org.matsim.pt.counts.OccupancyAnalyzer.setBoards | ( | Map< Id< TransitStopFacility >, int[]> | boards | ) |
Definition at line 80 of file OccupancyAnalyzer.java.
References org.matsim.pt.counts.OccupancyAnalyzer.boards.
| void org.matsim.pt.counts.OccupancyAnalyzer.setAlights | ( | Map< Id< TransitStopFacility >, int[]> | alights | ) |
Definition at line 84 of file OccupancyAnalyzer.java.
| void org.matsim.pt.counts.OccupancyAnalyzer.setOccupancies | ( | Map< Id< TransitStopFacility >, int[]> | occupancies | ) |
Definition at line 88 of file OccupancyAnalyzer.java.
| int org.matsim.pt.counts.OccupancyAnalyzer.getTimeSlotIndex | ( | final double | time | ) |
Definition at line 92 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.handleEvent().
| void org.matsim.pt.counts.OccupancyAnalyzer.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 100 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyBeforeMobsim().
| void org.matsim.pt.counts.OccupancyAnalyzer.handleEvent | ( | TransitDriverStartsEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.TransitDriverStartsEventHandler.
Definition at line 112 of file OccupancyAnalyzer.java.
References org.matsim.api.core.v01.events.TransitDriverStartsEvent.getDriverId(), and org.matsim.api.core.v01.events.TransitDriverStartsEvent.getVehicleId().

| void org.matsim.pt.counts.OccupancyAnalyzer.handleEvent | ( | PersonEntersVehicleEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonEntersVehicleEventHandler.
Definition at line 118 of file OccupancyAnalyzer.java.
References org.matsim.api.core.v01.Id< T >.get(), org.matsim.api.core.v01.events.PersonEntersVehicleEvent.getPersonId(), org.matsim.pt.counts.OccupancyAnalyzer.getTimeSlotIndex(), and org.matsim.api.core.v01.events.PersonEntersVehicleEvent.getVehicleId().

| void org.matsim.pt.counts.OccupancyAnalyzer.handleEvent | ( | PersonLeavesVehicleEvent | event | ) |
Implements org.matsim.api.core.v01.events.handler.PersonLeavesVehicleEventHandler.
Definition at line 140 of file OccupancyAnalyzer.java.
References org.matsim.api.core.v01.Id< T >.get(), org.matsim.api.core.v01.events.PersonLeavesVehicleEvent.getPersonId(), org.matsim.pt.counts.OccupancyAnalyzer.getTimeSlotIndex(), and org.matsim.api.core.v01.events.PersonLeavesVehicleEvent.getVehicleId().

| void org.matsim.pt.counts.OccupancyAnalyzer.handleEvent | ( | VehicleArrivesAtFacilityEvent | event | ) |
Implements org.matsim.core.api.experimental.events.handler.VehicleArrivesAtFacilityEventHandler.
Definition at line 171 of file OccupancyAnalyzer.java.
References org.matsim.core.api.experimental.events.VehicleArrivesAtFacilityEvent.getVehicleId().

| void org.matsim.pt.counts.OccupancyAnalyzer.handleEvent | ( | VehicleDepartsAtFacilityEvent | event | ) |
Implements org.matsim.core.api.experimental.events.handler.VehicleDepartsAtFacilityEventHandler.
Definition at line 177 of file OccupancyAnalyzer.java.
References org.matsim.api.core.v01.Id< T >.get(), org.matsim.api.core.v01.events.Event.getTime(), and org.matsim.pt.counts.OccupancyAnalyzer.getTimeSlotIndex().

| int [] org.matsim.pt.counts.OccupancyAnalyzer.getBoardVolumesForStop | ( | final Id< TransitStopFacility > | stopId | ) |
| stopId |
stopId per time bin, starting with time bin 0 from 0 seconds to (timeBinSize-1)seconds. Definition at line 212 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds().
| int [] org.matsim.pt.counts.OccupancyAnalyzer.getAlightVolumesForStop | ( | final Id< TransitStopFacility > | stopId | ) |
| stopId |
Definition at line 226 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds().
| int [] org.matsim.pt.counts.OccupancyAnalyzer.getOccupancyVolumesForStop | ( | final Id< TransitStopFacility > | stopId | ) |
| stopId |
Definition at line 240 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds().
| Set<Id<TransitStopFacility> > org.matsim.pt.counts.OccupancyAnalyzer.getBoardStopIds | ( | ) |
Definition at line 252 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.getAllStopIds().
| Set<Id<TransitStopFacility> > org.matsim.pt.counts.OccupancyAnalyzer.getAlightStopIds | ( | ) |
Definition at line 260 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.getAllStopIds().
| Set<Id<TransitStopFacility> > org.matsim.pt.counts.OccupancyAnalyzer.getOccupancyStopIds | ( | ) |
Definition at line 264 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.getAllStopIds().
| Set<Id<TransitStopFacility> > org.matsim.pt.counts.OccupancyAnalyzer.getAllStopIds | ( | ) |
Definition at line 272 of file OccupancyAnalyzer.java.
References org.matsim.pt.counts.OccupancyAnalyzer.getAlightStopIds(), org.matsim.pt.counts.OccupancyAnalyzer.getBoardStopIds(), and org.matsim.pt.counts.OccupancyAnalyzer.getOccupancyStopIds().
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.write().

| void org.matsim.pt.counts.OccupancyAnalyzer.write | ( | String | filename | ) |
Definition at line 280 of file OccupancyAnalyzer.java.
References org.matsim.pt.counts.SimpleWriter.close(), org.matsim.pt.counts.OccupancyAnalyzer.getAllStopIds(), org.matsim.pt.counts.SimpleWriter.write(), and org.matsim.pt.counts.SimpleWriter.writeln().
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyAfterMobsim().

|
staticprivate |
Definition at line 55 of file OccupancyAnalyzer.java.
|
private |
Definition at line 57 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.OccupancyAnalyzer().
|
private |
Definition at line 58 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.OccupancyAnalyzer().
|
private |
Map< stopFacilityId,value[]>
Definition at line 60 of file OccupancyAnalyzer.java.
Referenced by org.matsim.pt.counts.OccupancyAnalyzer.setBoards().
|
private |
Map< vehId,stopFacilityId>
Definition at line 64 of file OccupancyAnalyzer.java.
|
private |
Map<vehId,passengersNo. in Veh>
Definition at line 66 of file OccupancyAnalyzer.java.
|
private |
Definition at line 67 of file OccupancyAnalyzer.java.
|
private |
Definition at line 68 of file OccupancyAnalyzer.java.
|
private |
Definition at line 69 of file OccupancyAnalyzer.java.
1.8.13