Modifier and Type | Field and Description |
---|---|
static char |
ENGINE
Source indicator for engine
|
static char |
SHAFT
Source indicator for shaft
|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the engine or shaft number/id.
|
double |
getPitch()
Returns the propeller pitch, % of maximum.
|
double |
getRPM()
Returns the revolutions value.
|
char |
getSource()
Returns the measurement source, engine or shaft.
|
DataStatus |
getStatus()
Returns the data validity status.
|
boolean |
isEngine()
Tells if the data source is engine.
|
boolean |
isShaft()
Tells if the data source is shaft.
|
void |
setId(int id)
Sets the engine or shaft number/id.
|
void |
setPitch(double pitch)
Sets the propeller pitch, % of maximum.
|
void |
setSource(char source)
Sets the source indicator, engine or shaft.
|
void |
setStatus(DataStatus status)
Sets the data validity status.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
static final char ENGINE
static final char SHAFT
int getId()
double getPitch()
double getRPM()
char getSource()
DataStatus getStatus()
boolean isEngine()
boolean isShaft()
void setId(int id)
id
- ID to set.void setPitch(double pitch)
pitch
- Pitch value to set, negative values denote astern.void setSource(char source)
source
- 'E' for engine or 'S' for shaft.IllegalArgumentException
- If specified char is not 'E' or 'S'.void setStatus(DataStatus status)
status
- DataStatus to set.Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.