|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VLWSentence
Distance traveled through water, cumulative and trip.
Example:
$VWVLW,2.8,N,2.8,N*4C
Field Summary | |
---|---|
static char |
KM
Kilometers |
static char |
NM
Nautical miles |
Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
Method Summary | |
---|---|
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. |
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
Field Detail |
---|
static final char KM
static final char NM
Method Detail |
---|
double getTotal()
getTotalUnits()
char getTotalUnits()
KM
,
NM
double getTrip()
getTripUnits()
char getTripUnits()
KM
,
NM
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |