Class ReferenceSpeed
- java.lang.Object
-
- org.opentrafficsim.kpi.sampling.data.ExtendedDataType<T,O,float[],G>
-
- org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeFloat<SpeedUnit,FloatSpeed,FloatSpeedVector,G>
-
- org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeSpeed<GtuData>
-
- org.opentrafficsim.road.network.sampling.data.ReferenceSpeed
-
- All Implemented Interfaces:
Identifiable
public class ReferenceSpeed extends ExtendedDataTypeSpeed<GtuData>
Reference speed 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 21 nov. 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static ReferenceSpeed
INSTANCE
Single instance.
-
Constructor Summary
Constructors Constructor Description ReferenceSpeed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FloatSpeed
getValue(GtuData gtu)
String
toString()
-
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeSpeed
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
-
-
-
-
Field Detail
-
INSTANCE
public static final ReferenceSpeed INSTANCE
Single instance.
-
-
Method Detail
-
getValue
public final FloatSpeed getValue(GtuData gtu)
- Specified by:
getValue
in classExtendedDataType<FloatSpeed,FloatSpeedVector,float[],GtuData>
-
-