|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BODSentence
True and magnetic bearing from origin to destination in degrees. This sentence is transmitted by a GPS in the GOTO mode (with or without active route).
Example:
$GPBOD,234.9,T,228.8,M,RUSKI,*1D
Field Summary |
---|
Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
ADDRESS_FIELD, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
Method Summary | |
---|---|
String |
getDestinationWaypointId()
Get the ID of destination waypoint. |
double |
getMagneticBearing()
Get the magnetic bearing from origin to destination. |
String |
getOriginWaypointId()
Get the ID of origin waypoint. |
double |
getTrueBearing()
Get the true bearing from origin to destination. |
void |
setDestinationWaypointId(String id)
Sets the destination waypoint ID. |
void |
setMagneticBearing(double bearing)
Sets the true bearing from origin to destination, in degrees. |
void |
setOriginWaypointId(String id)
Sets the ID of origin waypoint. |
void |
setTrueBearing(double bearing)
Sets the true bearing from origin to destination, in degrees. |
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, setTalkerId, toSentence, toString |
Method Detail |
---|
String getDestinationWaypointId()
DataNotAvailableException
- If the data is not available.
ParseException
- If the field contains unexpected or illegal value.double getMagneticBearing()
Notice: The bearing is calculated from the origin when GOTO is activated and it is not updated dynamically.
DataNotAvailableException
- If the data is not available.
ParseException
- If the field contains unexpected or illegal value.String getOriginWaypointId()
DataNotAvailableException
- If the data is not available.
ParseException
- If the field contains unexpected or illegal value.double getTrueBearing()
Notice: Typically the bearing is calculated when GOTO mode is activated and it is not updated dynamically.
DataNotAvailableException
- If the data is not available.
ParseException
- If the field contains unexpected or illegal value.void setDestinationWaypointId(String id)
id
- ID to setvoid setMagneticBearing(double bearing)
bearing
- Bearing value
IllegalArgumentException
- If bearing value out range 0..360
degrees.void setOriginWaypointId(String id)
id
- ID to set.void setTrueBearing(double bearing)
bearing
- Bearing value
IllegalArgumentException
- If bearing value out range 0..360
degrees.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |