接口 HeadingSentence
- 所有超级接口:
Sentence
- 所有已知子接口:
HDGSentence,HDMSentence,HDTSentence,HTDSentence,VHWSentence
Interface for sentences that provide vessel's true or magnetic heading.
- 作者:
- Kimmo Tuukkanen
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doubleReturns the vessel's current heading.booleanisTrue()Tells if the heading returned and set bygetHeading()andsetHeading(double)methods is true or magnetic .voidsetHeading(double hdt) Sets the heading value.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getHeading
double getHeading()Returns the vessel's current heading.- 返回:
- Heading in degrees.
- 另请参阅:
-
isTrue
boolean isTrue()Tells if the heading returned and set bygetHeading()andsetHeading(double)methods is true or magnetic .- 返回:
trueif true heading, otherwisefalsefor magnetic heading.
-
setHeading
void setHeading(double hdt) Sets the heading value.- 参数:
hdt- Heading in degrees- 抛出:
IllegalArgumentException- If heading value out of range [0..360]- 另请参阅:
-