Modifier and Type | Field and Description |
---|---|
static char |
KM
Kilometers
|
static char |
NM
Nautical miles
|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
double |
getTotal()
Returns the total cumulative distance traveled.
|
char |
getTotalUnits()
Returns the unit of measurement for cumulative total distance.
|
double |
getTrip()
Returns the distance traveled since last reset.
|
char |
getTripUnits()
Returns the unit of measurement for distance since last reset.
|
void |
setTotal(double distance)
Sets the total cumulative distance traveled.
|
void |
setTotalUnits(char unit)
Sets the units of measure for cumulative total distance.
|
void |
setTrip(double distance)
Sets the distance traveled since last reset.
|
void |
setTripUnits(char unit)
Sets the units of measure for distance since last reset.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
static final char KM
static final char NM
double getTotal()
getTotalUnits()
char getTotalUnits()
double getTrip()
getTripUnits()
char getTripUnits()
void setTotal(double distance)
distance
- Total distance to set.setTotalUnits(char)
void setTotalUnits(char unit)
unit
- Unit to set; 'K' for kilomters, 'N' for nautical miles.IllegalArgumentException
- If trying to set invalid units char.KM
,
NM
void setTrip(double distance)
distance
- Trip distance to set.setTripUnits(char)
void setTripUnits(char unit)
unit
- Unit to set; 'K' for kilomters, 'N' for nautical miles.IllegalArgumentException
- If trying to set invalid units char.KM
,
NM
Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.