接口 AISPositionReportB
- 所有超级接口:
AISMessage,AISPositionInfo
- 所有已知子接口:
AISMessage01,AISMessage02,AISMessage03,AISMessage18,AISMessage19,AISMessage27,AISPositionReport
Common interface for all Class B messages providing position reports.
- 作者:
- Lázár József
-
方法概要
修饰符和类型方法说明doubleReturns the course over ground.doubleReturns the speed over ground.intReturns the time stamp contained in the message, i.e.intReturns the true heading.booleanReturns true if course over ground is available in the message.booleanReturns true if speed over ground is available in the message.booleanReturns true if timestamp is available in the message.booleanReturns true if true heading is available in the message.从接口继承的方法 net.sf.marineapi.ais.message.AISMessage
getMessageType, getMMSI, getRepeatIndicator从接口继承的方法 net.sf.marineapi.ais.message.AISPositionInfo
getLatitudeInDegrees, getLongitudeInDegrees, hasLatitude, hasLongitude, isAccurate
-
方法详细资料
-
getSpeedOverGround
double getSpeedOverGround()Returns the speed over ground. Notice that maximum returned speed is 102.2, even when the actual speed is higher.- 返回:
- Speed in knots 0-102.2 or 102.3 when not available.
-
getCourseOverGround
double getCourseOverGround()Returns the course over ground.- 返回:
- Course in degrees 0-359.9 or 360 when not available (default).
-
getTrueHeading
int getTrueHeading()Returns the true heading.- 返回:
- Heading in degrees 0-359 or 511 when not available (default).
-
getTimeStamp
int getTimeStamp()Returns the time stamp contained in the message, i.e. UTC second when the report was generated by the electronic position system.- 返回:
- 0-59 or 60 if time stamp is not available, which should also be the default value. 61 if positioning system is in manual input mode, or 62 if electronic position fixing system operates in estimated (dead reckoning) mode, or 63 if the positioning system is inoperative.
-
hasSpeedOverGround
boolean hasSpeedOverGround()Returns true if speed over ground is available in the message.- 返回:
trueif has SOG, otherwisefalse.
-
hasCourseOverGround
boolean hasCourseOverGround()Returns true if course over ground is available in the message.- 返回:
trueif has COG, otherwisefalse.
-
hasTrueHeading
boolean hasTrueHeading()Returns true if true heading is available in the message.- 返回:
trueif has heading, otherwisefalse.
-
hasTimeStamp
boolean hasTimeStamp()Returns true if timestamp is available in the message.- 返回:
trueif has timestamp, otherwisefalse.
-