Package AIS
Class AISPositionReport
java.lang.Object
AIS.AISReport
AIS.AISPositionReport
- All Implemented Interfaces:
Serializable,ManagedParameters
AIS Position report data
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintdoubleintintintintintdoubleintbooleanstatic final longdoublelongdoubleintintint -
Constructor Summary
ConstructorsConstructorDescriptionAISPositionReport(long timeMillis, int navStatus, double rateOfTurn, double speedOverGround, double latitude, double longitude, double courseOverGround, double trueHeading) Constructor to use when reading back from database. -
Method Summary
Modifier and TypeMethodDescriptionReturn COG string with degree symbol, or N/A if unavailabledoubleGet the know speed of the vessel.doubledoubleGet a set of data that describes all of the parameters in a classGet the speed as a string, return "Unknown" if it's set at 102.3booleantoString()
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
messageId
public int messageId -
dataTerminalReady
public int dataTerminalReady -
dataIndicator
public int dataIndicator -
rateOfTurn
public double rateOfTurn -
speedOverGround
public double speedOverGround -
positionAccuracy
public int positionAccuracy -
latLong
-
courseOverGround
public double courseOverGround -
trueHeading
public double trueHeading -
utcSeconds
public int utcSeconds -
utcMinutes
public int utcMinutes -
utcHours
public int utcHours -
repeatIndicator
public int repeatIndicator -
commsState
public int commsState -
timeMilliseconds
public long timeMilliseconds -
reportOk
public boolean reportOk
-
-
Constructor Details
-
AISPositionReport
public AISPositionReport(long timeMillis, int navStatus, double rateOfTurn, double speedOverGround, double latitude, double longitude, double courseOverGround, double trueHeading) Constructor to use when reading back from database.- Parameters:
navStatus- navStatusrateOfTurn- rateOfTurnspeedOverGround- speedOverGroundlatitude- latitudelongitude- longitudecourseOverGround- courseOverGroundtrueHeading- trueHeading
-
-
Method Details
-
getKnownSpeed
public double getKnownSpeed()Get the know speed of the vessel. Generally, this is just the speedoverground, but in the data unavailable case, this is set to 102.3, in which case return 0, so avoid messing up interpolation on the map- Returns:
-
getSpeedString
Get the speed as a string, return "Unknown" if it's set at 102.3- Returns:
-
getCOGString
Return COG string with degree symbol, or N/A if unavailable- Returns:
-
toString
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude() -
hasTrueHeading
public boolean hasTrueHeading() -
getParameterSet
Description copied from interface:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
getParameterSetin interfaceManagedParameters- Returns:
- description of the parameters in a class.
-