Package | Description |
---|---|
org.opentrafficsim.kpi.sampling |
Classes for sampling simulation data.
|
Modifier and Type | Method and Description |
---|---|
KpiLaneDirection |
TrajectoryGroup.getLaneDirection()
Returns the lane direction.
|
KpiLaneDirection |
SpaceTimeRegion.getLaneDirection() |
Modifier and Type | Method and Description |
---|---|
void |
Query.addSpaceTimeRegion(KpiLaneDirection laneDirection,
Length startPosition,
Length endPosition,
Time startTime,
Time endTime)
Defines a region in space and time for which this query is valid.
|
boolean |
Sampler.contains(KpiLaneDirection kpiLaneDirection)
Returns whether there is data for the give lane direction.
|
abstract void |
Sampler.finalizeRecording(KpiLaneDirection kpiLaneDirection)
Remove listeners to stop recording.
|
TrajectoryGroup<G> |
Sampler.getTrajectoryGroup(KpiLaneDirection kpiLaneDirection)
Returns the trajectory group of given lane direction.
|
abstract void |
Sampler.initRecording(KpiLaneDirection kpiLaneDirection)
Adds listeners to start recording.
|
void |
Sampler.processGtuAddEvent(KpiLaneDirection kpiLaneDirection,
Length position,
Speed speed,
Acceleration acceleration,
Time time,
G gtu)
Creates a trajectory with the current snapshot of a GTU.
|
void |
Sampler.processGtuMoveEvent(KpiLaneDirection kpiLaneDirection,
Length position,
Speed speed,
Acceleration acceleration,
Time time,
G gtu)
Adds a new snapshot of a GTU to its recording trajectory, if recorded.
|
void |
Sampler.processGtuRemoveEvent(KpiLaneDirection kpiLaneDirection,
G gtu)
Finalizes a trajectory.
|
void |
Sampler.processGtuRemoveEvent(KpiLaneDirection kpiLaneDirection,
Length position,
Speed speed,
Acceleration acceleration,
Time time,
G gtu)
Finalizes a trajectory with the current snapshot of a GTU.
|
abstract void |
Sampler.scheduleStartRecording(Time time,
KpiLaneDirection kpiLaneDirection)
Schedules the start of recording for a given lane-direction.
|
abstract void |
Sampler.scheduleStopRecording(Time time,
KpiLaneDirection kpiLaneDirection)
Schedules the stop of recording for a given lane-direction.
|
void |
Sampler.startRecording(KpiLaneDirection kpiLaneDirection)
Start recording at the given time (which should be the current time) on the given lane direction.
|
void |
Sampler.stopRecording(KpiLaneDirection kpiLaneDirection)
Stop recording at given lane direction.
|
Constructor and Description |
---|
SpaceTimeRegion(KpiLaneDirection laneDirection,
Length startPosition,
Length endPosition,
Time startTime,
Time endTime) |
Trajectory(GtuDataInterface gtu,
MetaData metaData,
Set<ExtendedDataType<?,?,?,G>> extendedData,
KpiLaneDirection kpiLaneDirection) |
TrajectoryGroup(Time startTime,
KpiLaneDirection laneDirection)
Constructor without length specification.
|
TrajectoryGroup(Time startTime,
Length startPosition,
Length endPosition,
KpiLaneDirection laneDirection) |
Copyright © 2014–2019 Delft University of Technology. All rights reserved.