|
MATSIM
|

Public Member Functions | |
| SnapshotWriterManager (int snapshotPeriod, QSimConfigGroup.FilterSnapshots filterSnapshots) | |
| void | notifyMobsimInitialized (MobsimInitializedEvent e) |
| void | notifyMobsimBeforeCleanup (MobsimBeforeCleanupEvent e) |
| void | notifyMobsimAfterSimStep (MobsimAfterSimStepEvent e) |
| final void | addSnapshotWriter (SnapshotWriter snapshotWriter) |
Private Member Functions | |
| void | closeSnapshotWriters () |
| void | doSnapshot (final double time, VisMobsim visMobsim) |
| boolean | isGenerateSnapshot (Link link) |
Private Attributes | |
| final List< SnapshotWriter > | snapshotWriters = new ArrayList<>() |
| final QSimConfigGroup.FilterSnapshots | filterSnapshots |
| final int | snapshotPeriod |
| double | snapshotTime = 0.0 |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(SnapshotWriterManager.class) |
Definition at line 41 of file SnapshotWriterManager.java.
| org.matsim.vis.snapshotwriters.SnapshotWriterManager.SnapshotWriterManager | ( | int | snapshotPeriod, |
| QSimConfigGroup.FilterSnapshots | filterSnapshots | ||
| ) |
Definition at line 54 of file SnapshotWriterManager.java.
References org.matsim.vis.snapshotwriters.SnapshotWriterManager.filterSnapshots, and org.matsim.vis.snapshotwriters.SnapshotWriterManager.snapshotPeriod.
| void org.matsim.vis.snapshotwriters.SnapshotWriterManager.notifyMobsimInitialized | ( | MobsimInitializedEvent | e | ) |
Implements org.matsim.core.mobsim.framework.listeners.MobsimInitializedListener.
Definition at line 60 of file SnapshotWriterManager.java.
References org.matsim.core.mobsim.framework.MobsimTimer.getSimStartTime(), org.matsim.core.mobsim.qsim.interfaces.Netsim.getSimTimer(), and org.matsim.vis.snapshotwriters.SnapshotWriterManager.snapshotPeriod.

| void org.matsim.vis.snapshotwriters.SnapshotWriterManager.notifyMobsimBeforeCleanup | ( | MobsimBeforeCleanupEvent | e | ) |
Implements org.matsim.core.mobsim.framework.listeners.MobsimBeforeCleanupListener.
Definition at line 71 of file SnapshotWriterManager.java.
References org.matsim.vis.snapshotwriters.SnapshotWriterManager.closeSnapshotWriters().

|
private |
Definition at line 75 of file SnapshotWriterManager.java.
Referenced by org.matsim.vis.snapshotwriters.SnapshotWriterManager.notifyMobsimBeforeCleanup().
| void org.matsim.vis.snapshotwriters.SnapshotWriterManager.notifyMobsimAfterSimStep | ( | MobsimAfterSimStepEvent | e | ) |
Implements org.matsim.core.mobsim.framework.listeners.MobsimAfterSimStepListener.
Definition at line 82 of file SnapshotWriterManager.java.
References org.matsim.vis.snapshotwriters.SnapshotWriterManager.doSnapshot(), org.matsim.core.mobsim.framework.events.MobsimAfterSimStepEvent< T extends Mobsim >.getSimulationTime(), and org.matsim.vis.snapshotwriters.SnapshotWriterManager.snapshotPeriod.

|
private |
Definition at line 90 of file SnapshotWriterManager.java.
References org.matsim.vis.snapshotwriters.VisNetwork.getVisLinks(), org.matsim.vis.snapshotwriters.VisMobsim.getVisNetwork(), and org.matsim.vis.snapshotwriters.SnapshotWriterManager.isGenerateSnapshot().
Referenced by org.matsim.vis.snapshotwriters.SnapshotWriterManager.notifyMobsimAfterSimStep().

| final void org.matsim.vis.snapshotwriters.SnapshotWriterManager.addSnapshotWriter | ( | SnapshotWriter | snapshotWriter | ) |
Definition at line 115 of file SnapshotWriterManager.java.
Referenced by org.matsim.vis.snapshotwriters.SnapshotWritersModule.SnapshotWriterManagerProvider.get().
|
private |
Definition at line 119 of file SnapshotWriterManager.java.
References org.matsim.vis.snapshotwriters.SnapshotWriterManager.filterSnapshots, org.matsim.vis.snapshotwriters.SnapshotWritersModule.GENERATE_SNAPSHOT_FOR_LINK_KEY, org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.utils.objectattributes.attributable.Attributable.getAttributes().
Referenced by org.matsim.vis.snapshotwriters.SnapshotWriterManager.doSnapshot().

|
staticprivate |
Definition at line 43 of file SnapshotWriterManager.java.
|
private |
Definition at line 45 of file SnapshotWriterManager.java.
|
private |
Definition at line 46 of file SnapshotWriterManager.java.
Referenced by org.matsim.vis.snapshotwriters.SnapshotWriterManager.isGenerateSnapshot(), and org.matsim.vis.snapshotwriters.SnapshotWriterManager.SnapshotWriterManager().
|
private |
Definition at line 47 of file SnapshotWriterManager.java.
Referenced by org.matsim.vis.snapshotwriters.SnapshotWriterManager.notifyMobsimAfterSimStep(), org.matsim.vis.snapshotwriters.SnapshotWriterManager.notifyMobsimInitialized(), and org.matsim.vis.snapshotwriters.SnapshotWriterManager.SnapshotWriterManager().
|
private |
time since last snapshot
Definition at line 52 of file SnapshotWriterManager.java.
1.8.13