|
MATSIM
|

Public Member Functions | |
| PositionEvent (double now, AgentSnapshotInfo position) | |
| String | getEventType () |
| Coord | getCoord () |
| Id< Person > | getPersonId () |
| Id< Link > | getLinkId () |
| Id< Vehicle > | getVehicleId () |
| double | getColorValueBetweenZeroAndOne () |
| AgentSnapshotInfo.AgentState | getState () |
| Map< String, String > | getAttributes () |
| final double | getTime () |
| void | setTime (double time) |
| String | toString () |
| boolean | equals (Object obj) |
| int | hashCode () |
| void | writeAsXML (StringBuilder out) |
Public Attributes | |
| String | ATTRIBUTE_PERSON = "person" |
Static Public Attributes | |
| static final String | EVENT_TYPE = "position" |
| static final String | ATTRIBUTE_TIME = "time" |
| static final String | ATTRIBUTE_TYPE = "type" |
| static final String | ATTRIBUTE_X = "x" |
| static final String | ATTRIBUTE_Y = "y" |
Protected Member Functions | |
| final void | writeXMLStart (StringBuilder out) |
| final void | writeXMLEnd (StringBuilder out) |
Private Attributes | |
| final AgentSnapshotInfo | position |
Definition at line 14 of file PositionEvent.java.
| org.matsim.vis.snapshotwriters.PositionEvent.PositionEvent | ( | double | now, |
| AgentSnapshotInfo | position | ||
| ) |
Definition at line 20 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.PositionEvent.position.
| String org.matsim.vis.snapshotwriters.PositionEvent.getEventType | ( | ) |
Definition at line 26 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.PositionEvent.EVENT_TYPE.
| Coord org.matsim.vis.snapshotwriters.PositionEvent.getCoord | ( | ) |
Implements org.matsim.api.core.v01.BasicLocation.
Definition at line 31 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getEasting(), and org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getNorthing().

Implements org.matsim.api.core.v01.events.HasPersonId.
Definition at line 36 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getId().

Definition at line 40 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getLinkId().

Definition at line 44 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getVehicleId().

| double org.matsim.vis.snapshotwriters.PositionEvent.getColorValueBetweenZeroAndOne | ( | ) |
Definition at line 48 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getColorValueBetweenZeroAndOne().

| AgentSnapshotInfo.AgentState org.matsim.vis.snapshotwriters.PositionEvent.getState | ( | ) |
Definition at line 52 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getAgentState().

| Map<String, String> org.matsim.vis.snapshotwriters.PositionEvent.getAttributes | ( | ) |
Definition at line 57 of file PositionEvent.java.
References org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getAgentState(), org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getLinkId(), and org.matsim.vis.snapshotwriters.AgentSnapshotInfo.getVehicleId().

|
inherited |
Definition at line 74 of file Event.java.
References org.matsim.api.core.v01.events.Event.time.
Referenced by org.matsim.pt.analysis.RouteTimeDiagram.handleEvent(), org.matsim.utils.eventsfilecomparison.FingerprintEventHandler.handleEvent(), org.matsim.core.scoring.EventsToActivities.handleEvent(), org.matsim.analysis.VolumesAnalyzer.handleEvent(), org.matsim.core.events.algorithms.SnapshotGenerator.handleEvent(), org.matsim.withinday.replanning.identifiers.tools.LinkReplanningMap.handleEvent(), org.matsim.analysis.LegHistogram.handleEvent(), org.matsim.analysis.pt.stop2stop.PtStop2StopAnalysis.handleEvent(), org.matsim.core.events.algorithms.EventWriterTXT.handleEvent(), ch.sbb.matsim.routing.pt.raptor.OccupancyTracker.handleEvent(), org.matsim.analysis.linkpaxvolumes.LinkPaxVolumesAnalysis.handleEvent(), org.matsim.core.scoring.EventsToLegs.handleEvent(), and org.matsim.core.trafficmonitoring.TravelTimeCalculator.handleEvent().
|
inherited |
|
inherited |
Definition at line 82 of file Event.java.
References org.matsim.api.core.v01.events.Event.getAttributes().
Referenced by org.matsim.api.core.v01.events.TransitDriverStartsEvent.getAttributes(), and org.matsim.api.core.v01.events.TransitDriverStartsEvent.writeAsXML().

|
inherited |
Definition at line 96 of file Event.java.
References org.matsim.api.core.v01.events.Event.Event(), org.matsim.api.core.v01.events.Event.getAttributes(), org.matsim.api.core.v01.events.Event.getEventType(), and org.matsim.api.core.v01.events.Event.time.

|
inherited |
Definition at line 108 of file Event.java.
References org.matsim.api.core.v01.events.Event.getAttributes().

|
protectedinherited |
Write the start of the xml representation and some common attributes. This method should be called first by writeAsXML(StringBuilder).
Definition at line 116 of file Event.java.
References org.matsim.api.core.v01.BasicLocation.getCoord(), org.matsim.api.core.v01.events.Event.getEventType(), org.matsim.api.core.v01.events.HasFacilityId.getFacilityId(), org.matsim.api.core.v01.events.HasLinkId.getLinkId(), org.matsim.api.core.v01.events.HasPersonId.getPersonId(), and org.matsim.api.core.v01.events.HasVehicleId.getVehicleId().
Referenced by org.matsim.api.core.v01.events.VehicleAbortsEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonEntersVehicleEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonLeavesVehicleEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonStuckAndContinueEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonArrivalEvent.writeAsXML(), org.matsim.api.core.v01.events.LinkEnterEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonScoreEvent.writeAsXML(), org.matsim.api.core.v01.events.LinkLeaveEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonDepartureEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonStuckEvent.writeAsXML(), org.matsim.api.core.v01.events.TransitDriverStartsEvent.writeAsXML(), org.matsim.api.core.v01.events.ActivityEndEvent.writeAsXML(), org.matsim.api.core.v01.events.ActivityStartEvent.writeAsXML(), and org.matsim.api.core.v01.events.PersonMoneyEvent.writeAsXML().

|
protectedinherited |
Write the closing part of the xml tag.
Definition at line 151 of file Event.java.
Referenced by org.matsim.api.core.v01.events.VehicleAbortsEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonEntersVehicleEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonLeavesVehicleEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonStuckAndContinueEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonArrivalEvent.writeAsXML(), org.matsim.api.core.v01.events.LinkEnterEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonScoreEvent.writeAsXML(), org.matsim.api.core.v01.events.LinkLeaveEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonDepartureEvent.writeAsXML(), org.matsim.api.core.v01.events.PersonStuckEvent.writeAsXML(), org.matsim.api.core.v01.events.TransitDriverStartsEvent.writeAsXML(), org.matsim.api.core.v01.events.ActivityEndEvent.writeAsXML(), org.matsim.api.core.v01.events.ActivityStartEvent.writeAsXML(), and org.matsim.api.core.v01.events.PersonMoneyEvent.writeAsXML().
|
inherited |
Write a xml representation of this event to the given writer. The implementation must write the whole xml element <event ... />. Starting with and adding a newline at the end.
The provided default implementation writes the whole element based on getAttributes(). This is slow and should be overridden. The overriding implementation must not call the super method.
Definition at line 162 of file Event.java.
References org.matsim.core.utils.io.XmlUtils.encodeAttributeValue(), and org.matsim.api.core.v01.events.Event.getAttributes().

|
static |
Definition at line 16 of file PositionEvent.java.
Referenced by org.matsim.vis.snapshotwriters.PositionEvent.getEventType().
|
private |
Definition at line 18 of file PositionEvent.java.
Referenced by org.matsim.vis.snapshotwriters.PositionEvent.PositionEvent().
|
staticinherited |
Definition at line 33 of file Event.java.
Referenced by org.matsim.utils.eventsfilecomparison.FingerprintEventHandler.toLexicographicSortedString().
|
staticinherited |
Definition at line 34 of file Event.java.
|
staticinherited |
Definition at line 35 of file Event.java.
Referenced by org.matsim.core.events.EventsReaderJson.parseEvent(), org.matsim.core.events.EventsReaderXMLv1.startEvent(), and org.matsim.utils.eventsfilecomparison.FingerprintEventHandler.toLexicographicSortedString().
|
staticinherited |
Definition at line 36 of file Event.java.
Referenced by org.matsim.core.events.EventsReaderJson.parseEvent(), org.matsim.core.events.EventsReaderXMLv1.startEvent(), and org.matsim.utils.eventsfilecomparison.FingerprintEventHandler.toLexicographicSortedString().
|
inherited |
1.8.13