|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RPMSentence
Revolutions, measured from shaft or engine.
Field Summary | |
---|---|
static char |
ENGINE
Source indicator for engine |
static char |
SHAFT
Source indicator for shaft |
Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
Method Summary | |
---|---|
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. |
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
Field Detail |
---|
static final char ENGINE
static final char SHAFT
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |