ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
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.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
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 valueIllegalArgumentException
- If bearing value out range 0..360
degrees.void setOriginWaypointId(String id)
id
- ID to set.void setTrueBearing(double bearing)
bearing
- Bearing valueIllegalArgumentException
- If bearing value out range 0..360
degrees.Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.