public class Capability extends AisApplicationMessage
dac, fi| Constructor and Description |
|---|
Capability()
Instantiates a new Capability.
|
Capability(BinArray binArray)
Instantiates a new Capability.
|
| Modifier and Type | Method and Description |
|---|---|
SixbitEncoder |
getEncoded()
Method that returns six bit encoding of message
|
int |
getReqDac()
Gets req dac.
|
int |
getSpare()
Gets spare.
|
void |
parse(BinArray binArray)
Method to parse given six bit string
|
void |
setReqDac(int reqDac)
Sets req dac.
|
void |
setSpare(int spare)
Sets spare.
|
String |
toString() |
getDac, getFi, getInstancepublic Capability()
public Capability(BinArray binArray) throws SixbitException
binArray - the bin arraySixbitException - the sixbit exceptionpublic SixbitEncoder getEncoded()
AisApplicationMessagegetEncoded in class AisApplicationMessagepublic void parse(BinArray binArray) throws SixbitException
AisApplicationMessageparse in class AisApplicationMessagebinArray - the bin arraySixbitException - the sixbit exceptionpublic int getReqDac()
public void setReqDac(int reqDac)
reqDac - the req dacpublic int getSpare()
public void setSpare(int spare)
spare - the sparepublic String toString()
toString in class AisApplicationMessageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.