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,
org.djunits.value.vdouble.scalar.Length startPosition,
org.djunits.value.vdouble.scalar.Length endPosition,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.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 |
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,
org.djunits.value.vdouble.scalar.Length position,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Time time,
GtuDataInterface gtu)
Creates a trajectory with the current snapshot of a GTU.
|
void |
Sampler.processGtuMoveEvent(KpiLaneDirection kpiLaneDirection,
org.djunits.value.vdouble.scalar.Length position,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Time time,
GtuDataInterface gtu)
Adds a new snapshot of a GTU to its recording trajectory, if recorded.
|
void |
Sampler.processGtuRemoveEvent(KpiLaneDirection kpiLaneDirection,
GtuDataInterface gtu)
Finalizes a trajectory.
|
void |
Sampler.processGtuRemoveEvent(KpiLaneDirection kpiLaneDirection,
org.djunits.value.vdouble.scalar.Length position,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Time time,
GtuDataInterface gtu)
Finalizes a trajectory with the current snapshot of a GTU.
|
abstract void |
Sampler.scheduleStartRecording(org.djunits.value.vdouble.scalar.Time time,
KpiLaneDirection kpiLaneDirection)
Schedules the start of recording for a given lane-direction.
|
abstract void |
Sampler.scheduleStopRecording(org.djunits.value.vdouble.scalar.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,
org.djunits.value.vdouble.scalar.Length startPosition,
org.djunits.value.vdouble.scalar.Length endPosition,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Time endTime) |
Trajectory(GtuDataInterface gtu,
MetaData metaData,
Set<ExtendedDataType<?>> extendedData,
KpiLaneDirection kpiLaneDirection) |
TrajectoryGroup(org.djunits.value.vdouble.scalar.Time startTime,
KpiLaneDirection laneDirection)
Constructor without length specification.
|
TrajectoryGroup(org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Length startPosition,
org.djunits.value.vdouble.scalar.Length endPosition,
KpiLaneDirection laneDirection) |
Copyright © 2014–2016 Delft University of Technology. All rights reserved.