public abstract class AisApplicationMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
dac
The Dac.
|
protected int |
fi
The Fi.
|
| Constructor and Description |
|---|
AisApplicationMessage(int dac,
int fi)
Instantiates a new Ais application message.
|
AisApplicationMessage(int dac,
int fi,
BinArray binArray)
Constructor that also parses six bit string
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDac()
Gets dac.
|
abstract SixbitEncoder |
getEncoded()
Method that returns six bit encoding of message
|
int |
getFi()
Gets fi.
|
static AisApplicationMessage |
getInstance(AisBinaryMessage binaryMessage)
Method to get application specific message from an
AisBinaryMessage. |
abstract void |
parse(BinArray binArray)
Method to parse given six bit string
|
String |
toString() |
public AisApplicationMessage(int dac,
int fi)
dac - the dacfi - the fipublic AisApplicationMessage(int dac,
int fi,
BinArray binArray)
throws SixbitException
dac - the dacfi - the fibinArray - the bin arraySixbitException - the sixbit exceptionpublic abstract void parse(BinArray binArray) throws SixbitException
binArray - the bin arraySixbitException - the sixbit exceptionpublic abstract SixbitEncoder getEncoded()
public static AisApplicationMessage getInstance(AisBinaryMessage binaryMessage) throws SixbitException
AisBinaryMessage. When implementing new application
specific messages they should be added here.binaryMessage - the binary messageSixbitException - the sixbit exceptionpublic int getDac()
public int getFi()
Copyright © 2011–2019 Danish Maritime Authority. All rights reserved.