|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RMCSentence
Recommended minimum navigation information type C. Current time and date, position, speed over ground, true course over ground and magnetic variation.
Example:
$GPRMC,120044,A,6011.552,N,02501.941,E,000.0,360.0,160705,006.1,E*7C
| Field Summary |
|---|
| Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
|---|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
| Method Summary | |
|---|---|
double |
getCorrectedCourse()
Get the corrected course over ground. |
double |
getCourse()
Get true course over ground (COG). |
CompassPoint |
getDirectionOfVariation()
Get the direction of magnetic variation; east or west. |
FaaMode |
getMode()
Get the FAA operating mode for GPS. |
double |
getSpeed()
Get current speed over ground (SOG). |
DataStatus |
getStatus()
Gets the data status, valid or invalid. |
double |
getVariation()
Get the magnetic variation. |
void |
setCourse(double cog)
Set true course over ground (COG). |
void |
setDirectionOfVariation(CompassPoint dir)
Set the direction of magnetic variation, east or west. |
void |
setMode(FaaMode mode)
Set the FAA operation mode of GPS. |
void |
setSpeed(double sog)
Set current speed over ground (SOG). |
void |
setStatus(DataStatus status)
Set the data status, valid or invalid. |
void |
setVariation(double var)
Set the magnetic variation. |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.PositionSentence |
|---|
getPosition, setPosition |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.TimeSentence |
|---|
getTime, setTime |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.DateSentence |
|---|
getDate, setDate |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
|---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
| Method Detail |
|---|
double getCorrectedCourse()
DataNotAvailableException - If course or
variation data is not available.
ParseException - If course or variation
field contains unexpected or illegal value.getCourse(),
getVariation()double getCourse()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.CompassPoint getDirectionOfVariation()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.FaaMode getMode()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.double getSpeed()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.DataStatus getStatus()
DataStatus.ACTIVE or DataStatus.VOID
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.double getVariation()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.void setCourse(double cog)
cog - True course in degreesvoid setDirectionOfVariation(CompassPoint dir)
dir - CompassPoint.EAST or CompassPoint.WEST
IllegalArgumentException - If specified Direction is other than
defined as valid for param dir.void setMode(FaaMode mode)
mode - Mode to setvoid setSpeed(double sog)
sog - Speed in knots (nautical miles per hour).void setStatus(DataStatus status)
status - DataStatus.ACTIVE or DataStatus.VOIDvoid setVariation(double var)
var - Magnetic variation in degrees
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||