|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HeadingSentence
Interface for sentences that provide vessel's true or magnetic heading.
| Field Summary |
|---|
| 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 |
getHeading()
Returns the vessel's current heading. |
boolean |
isTrue()
Tells if the heading returned and set by getHeading() and
setHeading(double) methods is true or magnetic
. |
void |
setHeading(double hdt)
Sets the heading value. |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
|---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
| Method Detail |
|---|
double getHeading()
isTrue()boolean isTrue()
getHeading() and
setHeading(double) methods is true or magnetic
.
true if true heading, otherwise false
for magnetic heading.void setHeading(double hdt)
hdt - Heading in degrees
IllegalArgumentException - If heading value out of range [0..360]isTrue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||