|
MATSIM
|

Classes | |
| enum | Labels |
Public Member Functions | |
| TransimsSnapshotWriter (String filename) | |
| void | addAgent (AgentSnapshotInfo position) |
| void | beginSnapshot (double time) |
| void | endSnapshot () |
| void | finish () |
Private Attributes | |
| BufferedWriter | out = null |
| double | currentTime = -1 |
Writes the current position of vehicles into a file that can be read by transims.
Definition at line 34 of file TransimsSnapshotWriter.java.
| org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.TransimsSnapshotWriter | ( | String | filename | ) |
Definition at line 40 of file TransimsSnapshotWriter.java.
References org.matsim.core.utils.io.IOUtils.CHARSET_UTF8, org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.Labels.EASTING, org.matsim.core.utils.io.IOUtils.getBufferedWriter(), org.matsim.core.utils.io.IOUtils.getFileUrl(), org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.Labels.NORTHING, org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.Labels.TIME, org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.Labels.VEHICLE, and org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.Labels.VELOCITY.

| void org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.addAgent | ( | AgentSnapshotInfo | position | ) |
Adds an agent to the current snapshot.
| position | The position, id, and speed of the agent. |
Implements org.matsim.vis.snapshotwriters.SnapshotWriter.
Definition at line 66 of file TransimsSnapshotWriter.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getAgentState(), org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getColorValueBetweenZeroAndOne(), org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getEasting(), org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getId(), org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getNorthing(), and org.matsim.vis.snapshotwriters.AgentSnapshotInfo.AgentState.PERSON_AT_ACTIVITY.

| void org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.beginSnapshot | ( | double | time | ) |
Tells the snapshot writer that a new snapshot begins at the specified time.
| time | The time of the snapshot. |
Implements org.matsim.vis.snapshotwriters.SnapshotWriter.
Definition at line 88 of file TransimsSnapshotWriter.java.
| void org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.endSnapshot | ( | ) |
Tells the snapshot writer that no more vehicles will be added to the current snapshot.
Implements org.matsim.vis.snapshotwriters.SnapshotWriter.
Definition at line 93 of file TransimsSnapshotWriter.java.
| void org.matsim.vis.snapshotwriters.TransimsSnapshotWriter.finish | ( | ) |
Tells the snapshot writer that no more snapshots will be added ("destructor").
Implements org.matsim.vis.snapshotwriters.SnapshotWriter.
Definition at line 98 of file TransimsSnapshotWriter.java.
|
private |
Definition at line 35 of file TransimsSnapshotWriter.java.
|
private |
Definition at line 36 of file TransimsSnapshotWriter.java.
1.8.13