Class TimeToCollision
- java.lang.Object
-
- org.opentrafficsim.kpi.sampling.data.ExtendedDataType<T,O,float[],G>
-
- org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeFloat<DurationUnit,FloatDuration,FloatDurationVector,G>
-
- org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeDuration<GtuData>
-
- org.opentrafficsim.road.network.sampling.data.TimeToCollision
-
- All Implemented Interfaces:
Identifiable
public class TimeToCollision extends ExtendedDataTypeDuration<GtuData>
Time-to-collision for trajectories.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 28 feb. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description TimeToCollision()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FloatDuration
getValue(GtuData gtu)
String
toString()
-
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeDuration
convert, convertValue, interpolate, parseValue
-
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeFloat
convert, formatValue, getOutputValue, getStorageValue, initializeStorage, setValue
-
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataType
equals, getId, getType, hashCode
-
-
-
-
Method Detail
-
getValue
public final FloatDuration getValue(GtuData gtu)
- Specified by:
getValue
in classExtendedDataType<FloatDuration,FloatDurationVector,float[],GtuData>
-
-