接口 VLWSentence

所有超级接口:
Sentence

public interface VLWSentence extends Sentence

Distance traveled through water, cumulative and trip.

Example:
$VWVLW,2.8,N,2.8,N*4C

作者:
Kimmo Tuukkanen
  • 字段详细资料

  • 方法详细资料

    • getTotal

      double getTotal()
      Returns the total cumulative distance traveled.
      返回:
      Distance
      另请参阅:
    • getTotalUnits

      char getTotalUnits()
      Returns the unit of measurement for cumulative total distance.
      返回:
      Char indicator for unit
      另请参阅:
    • getTrip

      double getTrip()
      Returns the distance traveled since last reset.
      返回:
      Trip distance
      另请参阅:
    • getTripUnits

      char getTripUnits()
      Returns the unit of measurement for distance since last reset.
      返回:
      Char indicator for unit
      另请参阅:
    • setTotal

      void setTotal(double distance)
      Sets the total cumulative distance traveled.
      参数:
      distance - Total distance to set.
      另请参阅:
    • setTotalUnits

      void setTotalUnits(char unit)
      Sets the units of measure for cumulative total distance.
      参数:
      unit - Unit to set; 'K' for kilomters, 'N' for nautical miles.
      抛出:
      IllegalArgumentException - If trying to set invalid units char.
      另请参阅:
    • setTrip

      void setTrip(double distance)
      Sets the distance traveled since last reset.
      参数:
      distance - Trip distance to set.
      另请参阅:
    • setTripUnits

      void setTripUnits(char unit)
      Sets the units of measure for distance since last reset.
      参数:
      unit - Unit to set; 'K' for kilomters, 'N' for nautical miles.
      抛出:
      IllegalArgumentException - If trying to set invalid units char.
      另请参阅: