接口 RPMSentence
- 所有超级接口:
Sentence
Revolutions, measured from shaft or engine.
- 作者:
- Kimmo Tuukkanen
-
字段概要
字段修饰符和类型字段说明static final charSource indicator for enginestatic final charSource indicator for shaft从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明intgetId()Returns the engine or shaft number/id.doublegetPitch()Returns the propeller pitch, % of maximum.doublegetRPM()Returns the revolutions value.charReturns the measurement source, engine or shaft.Returns the data validity status.booleanisEngine()Tells if the data source is engine.booleanisShaft()Tells if the data source is shaft.voidsetId(int id) Sets the engine or shaft number/id.voidsetPitch(double pitch) Sets the propeller pitch, % of maximum.voidsetRPM(double rpm) Sets the revolutions value.voidsetSource(char source) Sets the source indicator, engine or shaft.voidsetStatus(DataStatus status) Sets the data validity status.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
字段详细资料
-
方法详细资料
-
getId
int getId()Returns the engine or shaft number/id.- 返回:
- Engine of shaft number
-
getPitch
double getPitch()Returns the propeller pitch, % of maximum.- 返回:
- Pitch value, negative values denote astern.
-
getRPM
double getRPM()Returns the revolutions value.- 返回:
- Speed, revolutions per minute.
-
getSource
char getSource()Returns the measurement source, engine or shaft.- 返回:
- 'E' for engine, 'S' for shaft.
-
getStatus
DataStatus getStatus()Returns the data validity status.- 返回:
- DataStatus
-
isEngine
boolean isEngine()Tells if the data source is engine.- 返回:
- True if engine, otherwise false.
-
isShaft
boolean isShaft()Tells if the data source is shaft.- 返回:
- True for shaft, otherwise false.
-
setId
void setId(int id) Sets the engine or shaft number/id.- 参数:
id- ID to set.
-
setPitch
void setPitch(double pitch) Sets the propeller pitch, % of maximum.- 参数:
pitch- Pitch value to set, negative values denote astern.
-
setRPM
void setRPM(double rpm) Sets the revolutions value.- 参数:
rpm- Revolutions per minute.
-
setSource
void setSource(char source) Sets the source indicator, engine or shaft.- 参数:
source- 'E' for engine or 'S' for shaft.- 抛出:
IllegalArgumentException- If specified char is not 'E' or 'S'.
-
setStatus
Sets the data validity status.- 参数:
status- DataStatus to set.
-