ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
int |
addWaypointId(String id)
Add a waypoint ID at the end of waypoint list.
|
String |
getRouteId()
Get the number or name of the route.
|
int |
getSentenceCount()
Get the number of sentences in RTE sequence.
|
int |
getSentenceIndex()
Get the index of sentence in RTE sequence.
|
int |
getWaypointCount()
Get the number of waypoints IDs in this sentence.
|
String[] |
getWaypointIds()
Get the list of route waypoints.
|
boolean |
isActiveRoute()
Tells if the sentence holds a current active route data.
|
boolean |
isFirst()
Tells if this is the first sentence in RTE sequence.
|
boolean |
isLast()
Tells if this is the last sentence in RTE sequence.
|
boolean |
isWorkingRoute()
Tells if the sentence holds a current working route data.
|
void |
setRouteId(String id)
Set the route name or number.
|
void |
setRouteType(RouteType type)
Set the type of route.
|
void |
setSentenceCount(int count)
Set the number of sentences in RTE sequence.
|
void |
setSentenceIndex(int index)
Set the index of sentence in RTE sequence.
|
void |
setWaypointIds(String[] ids)
Set the list of route waypoints.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
int addWaypointId(String id)
id
- Waypoint ID to add.String getRouteId()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.int getSentenceCount()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.getSentenceIndex()
int getSentenceIndex()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.getSentenceCount()
int getWaypointCount()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.String[] getWaypointIds()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.boolean isActiveRoute()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.boolean isFirst()
DataNotAvailableException
- If the sentence
index or sentence count is not available.ParseException
- If sentence index or count
fields contain unexpected or illegal value.boolean isLast()
DataNotAvailableException
- If the sentence
index or sentence count is not available.ParseException
- If sentence index or count
fields contain unexpected or illegal value.boolean isWorkingRoute()
DataNotAvailableException
- If the data is
not available.ParseException
- If status field contains
illegal value.void setRouteId(String id)
id
- Route ID or name as Stringvoid setRouteType(RouteType type)
type
- RouteType to setvoid setSentenceCount(int count)
count
- Sentence count in sequenceIllegalArgumentException
- If the specified count is negative.void setSentenceIndex(int index)
index
- Sentence index in sequenceIllegalArgumentException
- If specified index is negative.void setWaypointIds(String[] ids)
ids
- String array of waypoint IDsCopyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.