接口 VLWSentence
- 所有超级接口:
Sentence
Distance traveled through water, cumulative and trip.
Example:
$VWVLW,2.8,N,2.8,N*4C
- 作者:
- Kimmo Tuukkanen
-
字段概要
字段从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doublegetTotal()Returns the total cumulative distance traveled.charReturns the unit of measurement for cumulative total distance.doublegetTrip()Returns the distance traveled since last reset.charReturns the unit of measurement for distance since last reset.voidsetTotal(double distance) Sets the total cumulative distance traveled.voidsetTotalUnits(char unit) Sets the units of measure for cumulative total distance.voidsetTrip(double distance) Sets the distance traveled since last reset.voidsetTripUnits(char unit) Sets the units of measure for distance since last reset.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
字段详细资料
-
方法详细资料
-
getTotal
double getTotal()Returns the total cumulative distance traveled.- 返回:
- Distance
- 另请参阅:
-
getTotalUnits
char getTotalUnits()Returns the unit of measurement for cumulative total distance. -
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. -
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.- 另请参阅:
-