Class TimeToCollision
java.lang.Object
org.opentrafficsim.kpi.sampling.DataType<T,G>
org.opentrafficsim.kpi.sampling.data.ExtendedDataType<T,O,float[],G>
org.opentrafficsim.kpi.sampling.data.ExtendedDataFloat<org.djunits.unit.DurationUnit,org.djunits.value.vfloat.scalar.FloatDuration,org.djunits.value.vfloat.vector.FloatDurationVector,G>
org.opentrafficsim.kpi.sampling.data.ExtendedDataDuration<GtuDataRoad>
org.opentrafficsim.road.network.sampling.data.TimeToCollision
- All Implemented Interfaces:
org.djutils.base.Identifiable
Time-to-collision for trajectories.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal org.djunits.value.vfloat.scalar.FloatDuration
getValue
(GtuDataRoad gtu) final String
toString()
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataDuration
convert, convertValue, interpolate, parseValue
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataFloat
convert, getOutputValue, getStorageValue, initializeStorage, setValue
-
Constructor Details
-
TimeToCollision
public TimeToCollision()
-
-
Method Details
-
getValue
- Specified by:
getValue
in classExtendedDataType<org.djunits.value.vfloat.scalar.FloatDuration,
org.djunits.value.vfloat.vector.FloatDurationVector, float[], GtuDataRoad>
-
toString
- Overrides:
toString
in classExtendedDataType<org.djunits.value.vfloat.scalar.FloatDuration,
org.djunits.value.vfloat.vector.FloatDurationVector, float[], GtuDataRoad>
-