接口 AISPositionInfo
- 所有超级接口:
AISMessage
- 所有已知子接口:
AISMessage01,AISMessage02,AISMessage03,AISMessage04,AISMessage09,AISMessage18,AISMessage19,AISMessage21,AISMessage27,AISPositionReport,AISPositionReportB
Interface for all position information.
- 作者:
- Lázár József
-
方法概要
修饰符和类型方法说明doubleReturns the latitude in degrees.doubleReturns the longitude in degrees.booleanTells if the latitude is available in the message.booleanTells if the longitude is available in the message.booleanTells if the position is accurate.从接口继承的方法 net.sf.marineapi.ais.message.AISMessage
getMessageType, getMMSI, getRepeatIndicator
-
方法详细资料
-
isAccurate
boolean isAccurate()Tells if the position is accurate.- 返回:
trueif accurate (< 10 meters), otherwisefalse.
-
getLongitudeInDegrees
double getLongitudeInDegrees()Returns the longitude in degrees.- 返回:
- Longitude, in degrees.
-
getLatitudeInDegrees
double getLatitudeInDegrees()Returns the latitude in degrees.- 返回:
- Latitude, in degrees.
-
hasLongitude
boolean hasLongitude()Tells if the longitude is available in the message. If not,getLongitudeInDegrees()may return an out-of-range value.- 返回:
trueif available, otherwisefalse.
-
hasLatitude
boolean hasLatitude()Tells if the latitude is available in the message. If not,getLatitudeInDegrees()may return an out-of-range value.- 返回:
trueif available, otherwisefalse.
-