Class DistanceOverTime

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Byte>
com.highmobility.value.Bytes
com.highmobility.autoapi.property.PropertyValueObject
com.highmobility.autoapi.value.DistanceOverTime
All Implemented Interfaces:
Iterable<Byte>, Collection<Byte>, List<Byte>

public class DistanceOverTime extends PropertyValueObject
  • Field Details

  • Constructor Details

    • DistanceOverTime

      public DistanceOverTime(com.highmobility.autoapi.value.measurement.Length distance, com.highmobility.autoapi.value.measurement.Duration time)
    • DistanceOverTime

      public DistanceOverTime(com.highmobility.value.Bytes valueBytes) throws CommandParseException
      Throws:
      CommandParseException
  • Method Details

    • getDistance

      public com.highmobility.autoapi.value.measurement.Length getDistance()
      Returns:
      Distance driven.
    • getTime

      public com.highmobility.autoapi.value.measurement.Duration getTime()
      Returns:
      Duration of time for the given distance.
    • getLength

      public int getLength()
      Overrides:
      getLength in class com.highmobility.value.Bytes