public class InlandVoyage extends AisApplicationMessage
dac, fi| Constructor and Description |
|---|
InlandVoyage(BinArray binArray)
Instantiates a new Inland voyage.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBeamOfShip()
Gets beam of ship.
|
int |
getCombinationType()
Gets combination type.
|
int |
getDraught()
Gets draught.
|
SixbitEncoder |
getEncoded()
Method that returns six bit encoding of message
|
int |
getHazardousCargo()
Gets hazardous cargo.
|
int |
getLengthOfShip()
Gets length of ship.
|
int |
getLoadedOrUnloaded()
Gets loaded or unloaded.
|
int |
getQualityOfCourseData()
Gets quality of course data.
|
int |
getQualityOfHeadingData()
Gets quality of heading data.
|
int |
getQualityOfSpeedData()
Gets quality of speed data.
|
int |
getSpare()
Gets spare.
|
String |
getVesselId()
Gets vessel id.
|
void |
parse(BinArray binArray)
Method to parse given six bit string
|
void |
setBeamOfShip(int beamOfShip)
Sets beam of ship.
|
void |
setCombinationType(int combinationType)
Sets combination type.
|
void |
setDraught(int draught)
Sets draught.
|
void |
setHazardousCargo(int hazardousCargo)
Sets hazardous cargo.
|
void |
setLengthOfShip(int lengthOfShip)
Sets length of ship.
|
void |
setLoadedOrUnloaded(int loadedOrUnloaded)
Sets loaded or unloaded.
|
void |
setQualityOfCourseData(int qualityOfCourseData)
Sets quality of course data.
|
void |
setQualityOfHeadingData(int qualityOfHeadingData)
Sets quality of heading data.
|
void |
setQualityOfSpeedData(int qualityOfSpeedData)
Sets quality of speed data.
|
void |
setSpare(int spare)
Sets spare.
|
void |
setVesselId(String vesselId)
Sets vessel id.
|
String |
toString() |
getDac, getFi, getInstancepublic InlandVoyage(BinArray binArray) throws SixbitException
binArray - the bin arraySixbitException - the sixbit exceptionpublic void parse(BinArray binArray) throws SixbitException
AisApplicationMessageparse in class AisApplicationMessagebinArray - the bin arraySixbitException - the sixbit exceptionpublic SixbitEncoder getEncoded()
AisApplicationMessagegetEncoded in class AisApplicationMessagepublic String toString()
toString in class AisApplicationMessagepublic int getLengthOfShip()
public void setLengthOfShip(int lengthOfShip)
lengthOfShip - the length of shippublic int getBeamOfShip()
public void setBeamOfShip(int beamOfShip)
beamOfShip - the beam of shippublic int getCombinationType()
public void setCombinationType(int combinationType)
combinationType - the combination typepublic int getHazardousCargo()
public void setHazardousCargo(int hazardousCargo)
hazardousCargo - the hazardous cargopublic int getDraught()
public void setDraught(int draught)
draught - the draughtpublic int getLoadedOrUnloaded()
public void setLoadedOrUnloaded(int loadedOrUnloaded)
loadedOrUnloaded - the loaded or unloadedpublic int getQualityOfSpeedData()
public void setQualityOfSpeedData(int qualityOfSpeedData)
qualityOfSpeedData - the quality of speed datapublic int getQualityOfCourseData()
public void setQualityOfCourseData(int qualityOfCourseData)
qualityOfCourseData - the quality of course datapublic int getQualityOfHeadingData()
public void setQualityOfHeadingData(int qualityOfHeadingData)
qualityOfHeadingData - the quality of heading datapublic int getSpare()
public void setSpare(int spare)
spare - the sparepublic String getVesselId()
public void setVesselId(String vesselId)
vesselId - the vessel idCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.