接口 MWDSentence
- 所有超级接口:
Sentence
Wind speed and true/magnetic direction, speed given in meters per second and
knots.
- 作者:
- Richard van Nieuwenhoven
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doubledoubledoubledoublevoidsetMagneticWindDirection(double direction) Sets the magnetic wind direction.voidsetTrueWindDirection(double direction) Sets the true wind direction.voidsetWindSpeed(double speed) Sets the wind speed in meters per second.voidsetWindSpeedKnots(double speed) Sets the wind speed in knots.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getMagneticWindDirection
double getMagneticWindDirection()- 返回:
- Wind direction, degrees True, to the nearest 0,1 degree. NaN if not available.
-
getTrueWindDirection
double getTrueWindDirection()- 返回:
- Wind direction, degrees True, to the nearest 0,1 degree. NaN if not available.
-
getWindSpeed
double getWindSpeed()- 返回:
- Wind speed, meters per second, to the nearest 0,1 m/s. NaN if not available.
-
getWindSpeedKnots
double getWindSpeedKnots()- 返回:
- Wind speed, in knots, to the nearest 0,1 m/s. NaN if not available.
-
setMagneticWindDirection
void setMagneticWindDirection(double direction) Sets the magnetic wind direction.- 参数:
direction- Wind direction in degrees [0..360]
-
setTrueWindDirection
void setTrueWindDirection(double direction) Sets the true wind direction.- 参数:
direction- Wind direction in degrees [0..360].
-
setWindSpeed
void setWindSpeed(double speed) Sets the wind speed in meters per second.- 参数:
speed- Wind speed to set.
-
setWindSpeedKnots
void setWindSpeedKnots(double speed) Sets the wind speed in knots.- 参数:
speed- Wind speed to set.
-