接口 MDASentence
- 所有超级接口:
Sentence
Meteorological Composite - Barometric pressure, air and water temperature,
humidity, dew point and wind speed and direction relative to the surface of
the earth.
- 作者:
- Richard van Nieuwenhoven
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doubleReturns the absolute humidity.doubleReturns the air temperature.doubleReturns the dew point.doubleReturns the magnetic wind direction.doubleReturns the primary barometric pressure.charReturns the unit of primary barometric pressure.doubleReturns the relative humidity.doubleReturns the secondary barometric pressure.charReturns the unit of secondary barometric pressure.doubleReturns the wind direction.doubleReturns the water temperature.doubleReturns the wind speed.doubleReturns the wind speed.voidsetAbsoluteHumidity(double humitidy) Sets the absolute humidity.voidsetAirTemperature(double temp) Sets the air temperature.voidsetDewPoint(double dewPoint) Sets the dew point temperature.voidsetMagneticWindDirection(double direction) Sets the magnetic wind direction.voidsetPrimaryBarometricPressure(double pressure) Sets the primary barometric pressure value.voidsetPrimaryBarometricPressureUnit(char unit) Sets the barometric pressure unit.voidsetRelativeHumidity(double humidity) Sets the relative humidityvoidsetSecondaryBarometricPressure(double pressure) Sets the barometric pressure value.voidsetSecondaryBarometricPressureUnit(char unit) Sets the secondary barometric pressure unit.voidsetTrueWindDirection(double direction) Sets the True wind direction.voidsetWaterTemperature(double temp) Sets the Water temperature.voidsetWindSpeed(double speed) Sets the wind speed.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
-
方法详细资料
-
getAbsoluteHumidity
double getAbsoluteHumidity()Returns the absolute humidity.- 返回:
- Absolute humidity, percent, to the nearest 0,1 percent. NaN if not available.
-
getAirTemperature
double getAirTemperature()Returns the air temperature.- 返回:
- Air temperature, degrees C, to the nearest 0,1 degree C. NaN if not available.
-
getDewPoint
double getDewPoint()Returns the dew point.- 返回:
- Dew point, degrees C, to the nearest 0,1 degree C. NaN if not available.
-
getMagneticWindDirection
double getMagneticWindDirection()Returns the magnetic wind direction.- 返回:
- Wind direction, degrees True, to the nearest 0,1 degree. NaN if not available.
-
getPrimaryBarometricPressure
double getPrimaryBarometricPressure()Returns the primary barometric pressure.- 返回:
- Barometric pressure, inches of mercury. NaN if not available.
-
getPrimaryBarometricPressureUnit
char getPrimaryBarometricPressureUnit()Returns the unit of primary barometric pressure.- 返回:
- B = bar I = inches of mercury (inHg) P = pascal (1 bar = 100000 Pa = 29,53 inHg).
-
getRelativeHumidity
double getRelativeHumidity()Returns the relative humidity.- 返回:
- Relative humidity, percent, to the nearest 0,1 percent. NaN if not available.
-
getSecondaryBarometricPressure
double getSecondaryBarometricPressure()Returns the secondary barometric pressure.- 返回:
- Barometric pressure, bars, to the nearest .001 bar. NaN if not available.
-
getSecondaryBarometricPressureUnit
char getSecondaryBarometricPressureUnit()Returns the unit of secondary barometric pressure.- 返回:
- B = bar I = inches of mercury (inHg) P = pascal (1 bar = 100000 Pa = 29,53 inHg). The secondary unit is almost always in bars.
-
getTrueWindDirection
double getTrueWindDirection()Returns the wind direction.- 返回:
- Wind direction, degrees True, to the nearest 0,1 degree. NaN if not available.
-
getWaterTemperature
double getWaterTemperature()Returns the water temperature.- 返回:
- Water temperature, degrees C. NaN if not available.
-
getWindSpeed
double getWindSpeed()Returns the wind speed.- 返回:
- Wind speed, meters per second, to the nearest 0,1 m/s. NaN if not available.
- 另请参阅:
-
getWindSpeedKnots
double getWindSpeedKnots()Returns the wind speed.- 返回:
- Wind speed, knots. NaN if not available.
- 另请参阅:
-
setAbsoluteHumidity
void setAbsoluteHumidity(double humitidy) Sets the absolute humidity.- 参数:
humitidy- Humidity percent to set.
-
setAirTemperature
void setAirTemperature(double temp) Sets the air temperature.- 参数:
temp- Temperature to set, degrees Celsius.
-
setDewPoint
void setDewPoint(double dewPoint) Sets the dew point temperature.- 参数:
dewPoint- Dew point in degrees Celsius.
-
setMagneticWindDirection
void setMagneticWindDirection(double direction) Sets the magnetic wind direction.- 参数:
direction- Direction to set, degrees Magnetic [0..360]
-
setPrimaryBarometricPressure
void setPrimaryBarometricPressure(double pressure) Sets the primary barometric pressure value.- 参数:
pressure- Pressure value to set, usually in inches of mercury.- 另请参阅:
-
setPrimaryBarometricPressureUnit
void setPrimaryBarometricPressureUnit(char unit) Sets the barometric pressure unit.- 参数:
unit- Pressure unit to set, usually in inches of mercury 'I'.- 另请参阅:
-
setRelativeHumidity
void setRelativeHumidity(double humidity) Sets the relative humidity- 参数:
humidity- Humidity percent to set.
-
setSecondaryBarometricPressure
void setSecondaryBarometricPressure(double pressure) Sets the barometric pressure value.- 参数:
pressure- Pressure to set, usually in bars.
-
setSecondaryBarometricPressureUnit
void setSecondaryBarometricPressureUnit(char unit) Sets the secondary barometric pressure unit.- 参数:
unit- Pressure unit set, usually in bars 'B'.
-
setTrueWindDirection
void setTrueWindDirection(double direction) Sets the True wind direction.- 参数:
direction- Direction to set, degrees True [0..360]
-
setWaterTemperature
void setWaterTemperature(double temp) Sets the Water temperature.- 参数:
temp- Temperature in degrees Celsius.
-
setWindSpeed
void setWindSpeed(double speed) Sets the wind speed.- 参数:
speed- Wind speed in meters per second.- 另请参阅:
-
setWindSpeedKnots
void setWindSpeedKnots(double speed) Sets the wind speed, in knots.- 参数:
speed- Wind speed in knots.- 另请参阅:
-