public class RouteSuggestion extends RouteExchange
| Modifier and Type | Class and Description |
|---|---|
static class |
RouteSuggestion.RouteType
The enum Route type.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DAC
The constant DAC.
|
static int |
FI
The constant FI.
|
duration, startDay, startHour, startMin, startMonth, waypointCount, waypointsdac, fi| Constructor and Description |
|---|
RouteSuggestion()
Instantiates a new Route suggestion.
|
RouteSuggestion(BinArray binArray)
Instantiates a new Route suggestion.
|
| Modifier and Type | Method and Description |
|---|---|
SixbitEncoder |
getEncoded()
Method that returns six bit encoding of message
|
int |
getMsgLinkId()
Gets msg link id.
|
int |
getRouteType()
Gets route type.
|
void |
parse(BinArray binArray)
Method to parse given six bit string
|
void |
setMsgLinkId(int msgLinkId)
Sets msg link id.
|
void |
setRouteType(int routeType)
Sets route type.
|
String |
toString() |
addWaypoint, encode, getDuration, getStartDay, getStartHour, getStartMin, getStartMonth, getWaypointCount, getWaypoints, setDuration, setStartDay, setStartHour, setStartMin, setStartMonth, setWaypointCount, setWaypointsgetDac, getFi, getInstancepublic static final int DAC
public static final int FI
public RouteSuggestion()
public RouteSuggestion(BinArray binArray) throws SixbitException
binArray - the bin arraySixbitException - the sixbit exceptionpublic SixbitEncoder getEncoded()
AisApplicationMessagegetEncoded in class RouteMessagepublic void parse(BinArray binArray) throws SixbitException
AisApplicationMessageparse in class RouteMessagebinArray - the bin arraySixbitException - the sixbit exceptionpublic int getMsgLinkId()
public void setMsgLinkId(int msgLinkId)
msgLinkId - the msg link idpublic int getRouteType()
public void setRouteType(int routeType)
routeType - the route typepublic String toString()
toString in class RouteMessageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.