|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RTESentence
GPS route data and list of waypoints.
Example:
$GPRTE,1,1,c,0,MELIN,RUSKI,KNUDAN*25
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 | |
---|---|
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. |
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, setTalkerId, toSentence, toString |
Method Detail |
---|
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 sequence
IllegalArgumentException
- If the specified count is negative.void setSentenceIndex(int index)
index
- Sentence index in sequence
IllegalArgumentException
- If specified index is negative.void setWaypointIds(String[] ids)
ids
- String array of waypoint IDs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |