Class ReferenceSpeed
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.SpeedUnit,org.djunits.value.vfloat.scalar.FloatSpeed,org.djunits.value.vfloat.vector.FloatSpeedVector,G>
org.opentrafficsim.kpi.sampling.data.ExtendedDataSpeed<GtuData>
org.opentrafficsim.kpi.sampling.data.ReferenceSpeed
- All Implemented Interfaces:
org.djutils.base.Identifiable
Reference speed 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
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataSpeed
convert, convertValue, interpolate, parseValue
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataFloat
convert, getOutputValue, getStorageValue, initializeStorage, setValue
-
Field Details
-
INSTANCE
Single instance.
-
-
Constructor Details
-
ReferenceSpeed
public ReferenceSpeed()
-
-
Method Details
-
getValue
Returns the current value of the gtu.- Specified by:
getValue
in classExtendedDataType<org.djunits.value.vfloat.scalar.FloatSpeed,
org.djunits.value.vfloat.vector.FloatSpeedVector, float[], GtuData> - Parameters:
gtu
- G; gtu- Returns:
- current value of the gtu
-
toString
- Overrides:
toString
in classExtendedDataType<org.djunits.value.vfloat.scalar.FloatSpeed,
org.djunits.value.vfloat.vector.FloatSpeedVector, float[], GtuData>
-