|
MATSIM
|

Classes | |
| enum | CountType |
Public Member Functions | |
| void | notifyStartup (final StartupEvent controlerStartupEvent) |
| void | notifyBeforeMobsim (BeforeMobsimEvent event) |
| void | notifyAfterMobsim (AfterMobsimEvent event) |
| void | notifyIterationEnds (final IterationEndsEvent event) |
| default double | priority () |
Static Public Attributes | |
| static final String | OPERATION_COMPAREPTCOUNTS = "compare with pt counts" |
Private Member Functions | |
| boolean | isActiveInThisIteration (int iter) |
Static Private Member Functions | |
| static double [] | copyFromIntArray (int[] source) |
Private Attributes | |
| EventsManager | eventsManager |
| OutputDirectoryHierarchy | controlerIO |
| IterationStopWatch | iterationStopWatch |
| Network | network |
| final Config | config |
| final Counts | boardCounts |
| final OccupancyAnalyzer | occupancyAnalyzer |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(PtCountControlerListener.class) |
| static final String | MODULE_NAME = "ptCounts" |
Definition at line 54 of file PtCountControlerListener.java.
| void org.matsim.pt.counts.PtCountControlerListener.notifyStartup | ( | final StartupEvent | event | ) |
Notifies all observers that the controler is initialized and they should do the same
| event |
Implements org.matsim.core.controler.listener.StartupListener.
Definition at line 93 of file PtCountControlerListener.java.
References org.matsim.core.config.groups.PtCountsConfigGroup.getAlightCountsFileName(), org.matsim.core.config.groups.PtCountsConfigGroup.getBoardCountsFileName(), org.matsim.core.config.groups.PtCountsConfigGroup.getOccupancyCountsFileName(), and org.matsim.core.config.Config.ptCounts().

| void org.matsim.pt.counts.PtCountControlerListener.notifyBeforeMobsim | ( | BeforeMobsimEvent | event | ) |
Notifies all observers of the Controler that the mobility simulation will start next.
| event |
Implements org.matsim.core.controler.listener.BeforeMobsimListener.
Definition at line 107 of file PtCountControlerListener.java.
References org.matsim.core.api.experimental.events.EventsManager.addHandler(), org.matsim.pt.counts.PtCountControlerListener.isActiveInThisIteration(), and org.matsim.pt.counts.OccupancyAnalyzer.reset().

| void org.matsim.pt.counts.PtCountControlerListener.notifyAfterMobsim | ( | AfterMobsimEvent | event | ) |
Notifies all observers of the Controler that the mobility simulation just finished.
| event |
Implements org.matsim.core.controler.listener.AfterMobsimListener.
Definition at line 116 of file PtCountControlerListener.java.
References org.matsim.core.controler.OutputDirectoryHierarchy.getIterationFilename(), org.matsim.pt.counts.PtCountControlerListener.isActiveInThisIteration(), org.matsim.core.api.experimental.events.EventsManager.removeHandler(), and org.matsim.pt.counts.OccupancyAnalyzer.write().

|
private |
Definition at line 124 of file PtCountControlerListener.java.
References org.matsim.core.config.Config.controler(), org.matsim.core.config.groups.ControlerConfigGroup.getFirstIteration(), org.matsim.core.config.groups.PtCountsConfigGroup.getPtCountsInterval(), and org.matsim.core.config.Config.ptCounts().
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyAfterMobsim(), org.matsim.pt.counts.PtCountControlerListener.notifyBeforeMobsim(), and org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds().

| void org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds | ( | final IterationEndsEvent | event | ) |
Notifies all observers of the Controler that a iteration is finished
| event |
Implements org.matsim.core.controler.listener.IterationEndsListener.
Definition at line 129 of file PtCountControlerListener.java.
References org.matsim.pt.counts.PtCountControlerListener.CountType.Alighting, org.matsim.analysis.IterationStopWatch.beginOperation(), org.matsim.pt.counts.PtCountControlerListener.boardCounts, org.matsim.pt.counts.PtCountControlerListener.CountType.Boarding, org.matsim.pt.counts.PtCountControlerListener.copyFromIntArray(), org.matsim.analysis.IterationStopWatch.endOperation(), org.matsim.core.config.Config.findParam(), org.matsim.pt.counts.OccupancyAnalyzer.getAlightVolumesForStop(), org.matsim.pt.counts.OccupancyAnalyzer.getBoardVolumesForStop(), org.matsim.counts.algorithms.CountsComparisonAlgorithm.getComparison(), org.matsim.core.controler.OutputDirectoryHierarchy.getIterationFilename(), org.matsim.pt.counts.OccupancyAnalyzer.getOccupancyVolumesForStop(), org.matsim.core.config.Config.getParam(), org.matsim.pt.counts.PtCountControlerListener.isActiveInThisIteration(), org.matsim.pt.counts.PtCountControlerListener.network, and org.matsim.pt.counts.PtCountControlerListener.CountType.Occupancy.

|
staticprivate |
Definition at line 187 of file PtCountControlerListener.java.
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds().
|
inherited |
Return the priority of this listener. Listeners with higher priority are executed first. The default priority is 0.
Definition at line 43 of file ControlerListener.java.
Referenced by org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerAfterMobsimEvent(), org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerBeforeMobsimEvent(), org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerIterationEndsEvent(), org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerIterationStartsEvent(), org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerReplanningEvent(), org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerScoringEvent(), org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerShutdownEvent(), and org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerStartupEvent().
|
private |
Definition at line 57 of file PtCountControlerListener.java.
|
private |
Definition at line 58 of file PtCountControlerListener.java.
|
private |
Definition at line 59 of file PtCountControlerListener.java.
|
private |
Definition at line 60 of file PtCountControlerListener.java.
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds().
|
staticprivate |
Definition at line 64 of file PtCountControlerListener.java.
|
static |
Definition at line 69 of file PtCountControlerListener.java.
|
staticprivate |
Definition at line 71 of file PtCountControlerListener.java.
|
private |
Definition at line 74 of file PtCountControlerListener.java.
|
private |
Definition at line 75 of file PtCountControlerListener.java.
Referenced by org.matsim.pt.counts.PtCountControlerListener.notifyIterationEnds().
|
private |
Definition at line 76 of file PtCountControlerListener.java.
1.8.13