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
Modifier and Type Method Description FloatSpeed
getValue(GtuData gtu)
java.lang.String
toString()
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataTypeSpeed
convert, convertValue, interpolate
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, hashCode
-
Field Details
-
INSTANCE
Single instance.
-
-
Constructor Details
-
ReferenceSpeed
public ReferenceSpeed()
-
-
Method Details
-
getValue
- Specified by:
getValue
in classExtendedDataType<FloatSpeed,FloatSpeedVector,float[],GtuData>
-
toString
public final java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-