接口 MHUSentence
- 所有超级接口:
Sentence
Relative and absolute humidity with dew point.
Notice: not recommended as of Oct 2008, should use XDR
instead.
- 作者:
- Kimmo Tuukkanen
- 另请参阅:
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doubleReturns the absolute humidity value.doubleReturns the dew point value.charReturns the unit of dew point temperature, by default degrees Celsius.doubleReturns the humidity relative to temperature of air.voidsetAbsoluteHumidity(double humidity) Returns the absolute humidity value.voidsetDewPoint(double dewPoint) Sets the dew point value.voidsetDewPointUnit(char unit) Sets the unit of dew point temperature, by default degrees Celsius.voidsetRelativeHumidity(double humidity) Returns the relative humidity.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getRelativeHumidity
double getRelativeHumidity()Returns the humidity relative to temperature of air.- 返回:
- Relative humitidy, percent.
-
getAbsoluteHumidity
double getAbsoluteHumidity()Returns the absolute humidity value.- 返回:
- Absolute humidity, g/m³.
-
getDewPoint
double getDewPoint()Returns the dew point value.- 返回:
- Dew point, degrees Celcius.
- 另请参阅:
-
getDewPointUnit
char getDewPointUnit()Returns the unit of dew point temperature, by default degrees Celsius.- 返回:
- Temperature unit char, defaults to
'c'.
-
setRelativeHumidity
void setRelativeHumidity(double humidity) Returns the relative humidity.- 参数:
humidity- Relative humidity, percent.
-
setAbsoluteHumidity
void setAbsoluteHumidity(double humidity) Returns the absolute humidity value.- 参数:
humidity- Absolute humidity, percent.
-
setDewPoint
void setDewPoint(double dewPoint) Sets the dew point value.- 参数:
dewPoint- Dew point in degrees Celcius.
-
setDewPointUnit
void setDewPointUnit(char unit) Sets the unit of dew point temperature, by default degrees Celsius.- 参数:
unit- Temperature unit char, defaults to'c'.
-