接口 AISMessage21
- 所有超级接口:
AISMessage,AISPositionInfo
Aid-to-Navigation Report
Identification and location message to be emitted by aids to navigation such as buoys and lighthouses.
This message is unusual in that it varies in length depending on the presence and size of the Name Extension field.
May vary between 272 and 360 bits
- 作者:
- Henri Laurent
-
方法概要
修饰符和类型方法说明intReturns the Aid type for the current message.booleanReturns the Assigned-mode flagintgetBow()Returns the distance from the reference point to the bow.getName()Returns the name of the transmitting ship.Returns the name extension.booleanReturns the Off-position indicator: 0 means on position; 1 means off position.intgetPort()Returns the distance from the reference point to the port side of the ship.booleanReturns the RAIM flagintReturns a Regional integer (reserved)intReturns the distance from the reference point to the starboard side of the ship.intgetStern()Returns the distance from the reference point to the stern of the ship.intReturns the type of electronic position fixing device.intReturns the UTC second.booleanReturns the Virtual-aid flag从接口继承的方法 net.sf.marineapi.ais.message.AISMessage
getMessageType, getMMSI, getRepeatIndicator从接口继承的方法 net.sf.marineapi.ais.message.AISPositionInfo
getLatitudeInDegrees, getLongitudeInDegrees, hasLatitude, hasLongitude, isAccurate
-
方法详细资料
-
getAidType
int getAidType()Returns the Aid type for the current message.- 返回:
- Aid type
-
getName
String getName()Returns the name of the transmitting ship.- 返回:
- maximum 20 characters, representing the name
-
getBow
int getBow()Returns the distance from the reference point to the bow.- 返回:
- Distance to bow, in meters.
-
getStern
int getStern()Returns the distance from the reference point to the stern of the ship.- 返回:
- Distance to stern, in meters.
-
getPort
int getPort()Returns the distance from the reference point to the port side of the ship.- 返回:
- Distance to port side, in meters.
-
getStarboard
int getStarboard()Returns the distance from the reference point to the starboard side of the ship.- 返回:
- Distance to starboard side, in meters.
-
getTypeOfEPFD
int getTypeOfEPFD()Returns the type of electronic position fixing device.- 返回:
- an integer value of the position device
-
getUtcSecond
int getUtcSecond()Returns the UTC second.- 返回:
- an integer value representing the UTC second (0-59)
-
getOffPositionIndicator
boolean getOffPositionIndicator()Returns the Off-position indicator: 0 means on position; 1 means off position. Only valid if UTC second is equal to or below 59.- 返回:
trueif off-position, otherwisefalse.
-
getRegional
int getRegional()Returns a Regional integer (reserved)- 返回:
- an integer value
-
getRAIMFlag
boolean getRAIMFlag()Returns the RAIM flag- 返回:
trueif RAIM in use, otherwisefalse.
-
getVirtualAidFlag
boolean getVirtualAidFlag()Returns the Virtual-aid flag- 返回:
trueif virtual, otherwisefalse
-
getAssignedModeFlag
boolean getAssignedModeFlag()Returns the Assigned-mode flag- 返回:
trueif assigned, otherwisefalse.
-
getNameExtension
String getNameExtension()Returns the name extension.- 返回:
- maximum 14 characters, representing the name extension
-