Class WorldDirData
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.DirectionUnit,org.djunits.value.vfloat.scalar.FloatDirection,org.djunits.value.vfloat.vector.FloatDirectionVector,GtuDataRoad>
org.opentrafficsim.road.network.sampling.data.WorldDirData
- All Implemented Interfaces:
org.djutils.base.Identifiable
public class WorldDirData
extends ExtendedDataFloat<org.djunits.unit.DirectionUnit,org.djunits.value.vfloat.scalar.FloatDirection,org.djunits.value.vfloat.vector.FloatDirectionVector,GtuDataRoad>
Extended data type in sampler to record world direction.
- Author:
- wjschakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.djunits.value.vfloat.vector.FloatDirectionVector
convert
(float[] storage) protected org.djunits.value.vfloat.scalar.FloatDirection
convertValue
(float value) org.djunits.value.vfloat.scalar.FloatDirection
getValue
(GtuDataRoad gtu) org.djunits.value.vfloat.scalar.FloatDirection
parseValue
(String string) Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataFloat
convert, getOutputValue, getStorageValue, initializeStorage, setValue
Methods inherited from class org.opentrafficsim.kpi.sampling.data.ExtendedDataType
interpolate, toString
-
Constructor Details
-
WorldDirData
public WorldDirData()Constructor.
-
-
Method Details
-
getValue
- Specified by:
getValue
in classExtendedDataType<org.djunits.value.vfloat.scalar.FloatDirection,
org.djunits.value.vfloat.vector.FloatDirectionVector, float[], GtuDataRoad>
-
convertValue
protected org.djunits.value.vfloat.scalar.FloatDirection convertValue(float value) - Specified by:
convertValue
in classExtendedDataFloat<org.djunits.unit.DirectionUnit,
org.djunits.value.vfloat.scalar.FloatDirection, org.djunits.value.vfloat.vector.FloatDirectionVector, GtuDataRoad>
-
convert
protected org.djunits.value.vfloat.vector.FloatDirectionVector convert(float[] storage) throws org.djunits.value.ValueRuntimeException - Specified by:
convert
in classExtendedDataFloat<org.djunits.unit.DirectionUnit,
org.djunits.value.vfloat.scalar.FloatDirection, org.djunits.value.vfloat.vector.FloatDirectionVector, GtuDataRoad> - Throws:
org.djunits.value.ValueRuntimeException
-
parseValue
- Specified by:
parseValue
in classExtendedDataType<org.djunits.value.vfloat.scalar.FloatDirection,
org.djunits.value.vfloat.vector.FloatDirectionVector, float[], GtuDataRoad>
-