public abstract class RouteMessage extends AisApplicationMessage
| Modifier and Type | Field and Description |
|---|---|
protected int |
duration
The Duration.
|
protected int |
startDay
The Start day.
|
protected int |
startHour
The Start hour.
|
protected int |
startMin
The Start min.
|
protected int |
startMonth
The Start month.
|
protected int |
waypointCount
The Waypoint count.
|
protected List<AisPosition> |
waypoints
The Waypoints.
|
dac, fi| Constructor and Description |
|---|
RouteMessage(int dac,
int fi)
Instantiates a new Route message.
|
RouteMessage(int dac,
int fi,
BinArray binArray)
Instantiates a new Route message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWaypoint(AisPosition waypoint)
Add waypoint.
|
void |
encode(SixbitEncoder encoder)
Encode.
|
int |
getDuration()
Gets duration.
|
SixbitEncoder |
getEncoded()
Method that returns six bit encoding of message
|
int |
getStartDay()
Gets start day.
|
int |
getStartHour()
Gets start hour.
|
int |
getStartMin()
Gets start min.
|
int |
getStartMonth()
Gets start month.
|
int |
getWaypointCount()
Gets waypoint count.
|
List<AisPosition> |
getWaypoints()
Gets waypoints.
|
void |
parse(BinArray binArray)
Method to parse given six bit string
|
void |
setDuration(int duration)
Sets duration.
|
void |
setStartDay(int startDay)
Sets start day.
|
void |
setStartHour(int startHour)
Sets start hour.
|
void |
setStartMin(int startMin)
Sets start min.
|
void |
setStartMonth(int startMonth)
Sets start month.
|
void |
setWaypointCount(int waypointCount)
Sets waypoint count.
|
void |
setWaypoints(List<AisPosition> waypoints)
Sets waypoints.
|
String |
toString() |
getDac, getFi, getInstanceprotected int startMonth
protected int startDay
protected int startHour
protected int startMin
protected int duration
protected int waypointCount
protected List<AisPosition> waypoints
public RouteMessage(int dac,
int fi)
dac - the dacfi - the fipublic RouteMessage(int dac,
int fi,
BinArray binArray)
throws SixbitException
dac - the dacfi - the fibinArray - the bin arraySixbitException - the sixbit exceptionpublic void parse(BinArray binArray) throws SixbitException
AisApplicationMessageparse in class AisApplicationMessagebinArray - the bin arraySixbitException - the sixbit exceptionpublic void encode(SixbitEncoder encoder)
encoder - the encoderpublic SixbitEncoder getEncoded()
AisApplicationMessagegetEncoded in class AisApplicationMessagepublic int getStartMonth()
public void setStartMonth(int startMonth)
startMonth - the start monthpublic int getStartDay()
public void setStartDay(int startDay)
startDay - the start daypublic int getStartHour()
public void setStartHour(int startHour)
startHour - the start hourpublic int getStartMin()
public void setStartMin(int startMin)
startMin - the start minpublic int getDuration()
public void setDuration(int duration)
duration - the durationpublic int getWaypointCount()
public void setWaypointCount(int waypointCount)
waypointCount - the waypoint countpublic List<AisPosition> getWaypoints()
public void setWaypoints(List<AisPosition> waypoints)
waypoints - the waypointspublic void addWaypoint(AisPosition waypoint)
waypoint - the waypointpublic String toString()
toString in class AisApplicationMessageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.