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 Details

    • WorldDirData

      public WorldDirData()
      Constructor.
  • Method Details

    • getValue

      public org.djunits.value.vfloat.scalar.FloatDirection getValue(GtuDataRoad gtu)
      Specified by:
      getValue in class ExtendedDataType<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 class ExtendedDataFloat<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 class ExtendedDataFloat<org.djunits.unit.DirectionUnit,org.djunits.value.vfloat.scalar.FloatDirection,org.djunits.value.vfloat.vector.FloatDirectionVector,GtuDataRoad>
      Throws:
      org.djunits.value.ValueRuntimeException
    • parseValue

      public org.djunits.value.vfloat.scalar.FloatDirection parseValue(String string)
      Specified by:
      parseValue in class ExtendedDataType<org.djunits.value.vfloat.scalar.FloatDirection,org.djunits.value.vfloat.vector.FloatDirectionVector,float[],GtuDataRoad>