|
MATSIM
|

Classes | |
| class | DirectBuilder |
| class | LinkBasedBuilder |
Public Member Functions | |
| final Id< Person > | getId () |
| final Id< Link > | getLinkId () |
| final Id< Vehicle > | getVehicleId () |
| final double | getEasting () |
| final double | getNorthing () |
| final double | getAzimuth () |
| final double | getColorValueBetweenZeroAndOne () |
| final AgentState | getAgentState () |
| final DrivingState | getDrivingState () |
| int | getUserDefined () |
| String | toString () |
Public Attributes | |
| String | marker = "marker" |
Private Member Functions | |
| PositionInfo (Id< Person > agentId, Id< Link > linkId, Id< Vehicle > vehicleId, double easting, double northing, double colorValue, AgentState agentState, DrivingState drivingState, int user) | |
Private Attributes | |
| final Id< Person > | agentId |
| final Id< Link > | linkId |
| final Id< Vehicle > | vehicleId |
| final double | easting |
| final double | northing |
| final double | colorValue |
| final AgentState | agentState |
| final DrivingState | drivingState |
| final int | user |
Static Private Attributes | |
| static final double | TWO_PI = 2.0 * Math.PI |
| static final double | PI_HALF = Math.PI / 2.0 |
A helper class to store information about agents (id, position, speed), mainly used to create snapshots. It also provides a way to convert graph coordinates (linkId, offset) into Euclidean coordinates. Also does some additional coordinate shifting (e.g. to the "right") to improve visualization. In contrast to earlier versions of this comment, it does not define a physical position of particles in the queue model; that functionality needs to be provided elsewhere.
This class has two builders since different parts of the code set different things which are only loosely related. I guess this could be improved...
Definition at line 24 of file PositionInfo.java.
|
private |
Definition at line 39 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.agentId, org.matsim.vis.snapshotwriters.PositionInfo.agentState, org.matsim.vis.snapshotwriters.PositionInfo.colorValue, org.matsim.vis.snapshotwriters.PositionInfo.drivingState, org.matsim.vis.snapshotwriters.PositionInfo.easting, org.matsim.vis.snapshotwriters.PositionInfo.linkId, org.matsim.vis.snapshotwriters.PositionInfo.northing, org.matsim.vis.snapshotwriters.PositionInfo.user, and org.matsim.vis.snapshotwriters.PositionInfo.vehicleId.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.DirectBuilder.build(), and org.matsim.vis.snapshotwriters.PositionInfo.LinkBasedBuilder.build().
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 52 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.agentId.
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 57 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.linkId.
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 62 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.vehicleId.
| final double org.matsim.vis.snapshotwriters.PositionInfo.getEasting | ( | ) |
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 67 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.easting.
| final double org.matsim.vis.snapshotwriters.PositionInfo.getNorthing | ( | ) |
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 72 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.northing.
| final double org.matsim.vis.snapshotwriters.PositionInfo.getAzimuth | ( | ) |
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 77 of file PositionInfo.java.
| final double org.matsim.vis.snapshotwriters.PositionInfo.getColorValueBetweenZeroAndOne | ( | ) |
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 82 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.colorValue.
| final AgentState org.matsim.vis.snapshotwriters.PositionInfo.getAgentState | ( | ) |
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 87 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.agentState.
| final DrivingState org.matsim.vis.snapshotwriters.PositionInfo.getDrivingState | ( | ) |
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 92 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.drivingState.
| int org.matsim.vis.snapshotwriters.PositionInfo.getUserDefined | ( | ) |
Implements org.matsim.vis.snapshotwriters.AgentSnapshotInfo.
Definition at line 97 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.user.
| String org.matsim.vis.snapshotwriters.PositionInfo.toString | ( | ) |
Definition at line 102 of file PositionInfo.java.
References org.matsim.vis.snapshotwriters.PositionInfo.northing.
|
staticprivate |
Definition at line 26 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.LinkBasedBuilder.calculateTheta().
|
staticprivate |
Definition at line 27 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.LinkBasedBuilder.calculateTheta().
Definition at line 29 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getId(), and org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo().
Definition at line 30 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getLinkId(), and org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo().
Definition at line 31 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getVehicleId(), and org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo().
|
private |
Definition at line 32 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getEasting(), and org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo().
|
private |
Definition at line 33 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getNorthing(), org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo(), and org.matsim.vis.snapshotwriters.PositionInfo.toString().
|
private |
Definition at line 34 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getColorValueBetweenZeroAndOne(), and org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo().
|
private |
Definition at line 35 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getAgentState(), and org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo().
|
private |
|
private |
Definition at line 37 of file PositionInfo.java.
Referenced by org.matsim.vis.snapshotwriters.PositionInfo.getUserDefined(), org.matsim.vis.snapshotwriters.PositionInfo.PositionInfo(), and org.matsim.vis.snapshotwriters.PositionInfo.LinkBasedBuilder.setUser().
|
inherited |
Definition at line 29 of file AgentSnapshotInfo.java.
Referenced by org.matsim.core.mobsim.qsim.PreplanningEngine.decide().
1.8.13