Package au.gov.amsa.ais.message
Class AisPositionB
- java.lang.Object
-
- au.gov.amsa.ais.message.AisPositionB
-
- All Implemented Interfaces:
AisMessage,HasCommunications,HasMmsi,AisPosition
public class AisPositionB extends java.lang.Object implements AisPosition, HasCommunications
-
-
Constructor Summary
Constructors Constructor Description AisPositionB(AisExtractorFactory factory, java.lang.String message, java.lang.String source, int padBits)AisPositionB(java.lang.String message, int padBits)AisPositionB(java.lang.String message, java.lang.String source, int padBits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanManageFrequenciesViaMessage22()booleancanOperateOverWholeMarineBand()CommunicationsgetCommunications()Returns the communications part of an AIS Message.java.lang.DoublegetCourseOverGround()java.lang.DoublegetLatitude()java.lang.DoublegetLongitude()intgetMessageId()Returns the ais message id.intgetMmsi()intgetRepeatIndicator()java.lang.StringgetSource()Returns the source of the ais message.intgetSpare()intgetSpare2()java.lang.DoublegetSpeedOverGroundKnots()intgetTimeSecondsOnly()java.lang.IntegergetTrueHeading()booleanisEquippedWithDscFunction()booleanisEquippedWithIntegratedDisplayForMessages12And14()booleanisHighAccuracyPosition()booleanisITDMACommunicationState()booleanisSotdmaUnit()booleanisStationOperatingInAssignedMode()booleanisUsingRAIM()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AisPositionB
public AisPositionB(java.lang.String message, java.lang.String source, int padBits)
-
AisPositionB
public AisPositionB(java.lang.String message, int padBits)
-
AisPositionB
public AisPositionB(AisExtractorFactory factory, java.lang.String message, java.lang.String source, int padBits)
-
-
Method Detail
-
getMessageId
public int getMessageId()
Description copied from interface:AisMessageReturns the ais message id. For example Class A Position reports are either 1, 2, or 3.- Specified by:
getMessageIdin interfaceAisMessage- Returns:
-
getRepeatIndicator
public int getRepeatIndicator()
- Specified by:
getRepeatIndicatorin interfaceAisPosition
-
getSpare
public int getSpare()
-
getSpeedOverGroundKnots
public java.lang.Double getSpeedOverGroundKnots()
- Specified by:
getSpeedOverGroundKnotsin interfaceAisPosition
-
isHighAccuracyPosition
public boolean isHighAccuracyPosition()
- Specified by:
isHighAccuracyPositionin interfaceAisPosition
-
getLongitude
public java.lang.Double getLongitude()
- Specified by:
getLongitudein interfaceAisPosition
-
getLatitude
public java.lang.Double getLatitude()
- Specified by:
getLatitudein interfaceAisPosition
-
getCourseOverGround
public java.lang.Double getCourseOverGround()
- Specified by:
getCourseOverGroundin interfaceAisPosition
-
getTrueHeading
public java.lang.Integer getTrueHeading()
- Specified by:
getTrueHeadingin interfaceAisPosition
-
getTimeSecondsOnly
public int getTimeSecondsOnly()
- Specified by:
getTimeSecondsOnlyin interfaceAisPosition
-
getSpare2
public int getSpare2()
-
isSotdmaUnit
public boolean isSotdmaUnit()
-
isEquippedWithIntegratedDisplayForMessages12And14
public boolean isEquippedWithIntegratedDisplayForMessages12And14()
-
isEquippedWithDscFunction
public boolean isEquippedWithDscFunction()
-
canOperateOverWholeMarineBand
public boolean canOperateOverWholeMarineBand()
-
canManageFrequenciesViaMessage22
public boolean canManageFrequenciesViaMessage22()
-
isStationOperatingInAssignedMode
public boolean isStationOperatingInAssignedMode()
-
isUsingRAIM
public boolean isUsingRAIM()
- Specified by:
isUsingRAIMin interfaceAisPosition
-
isITDMACommunicationState
public boolean isITDMACommunicationState()
-
getCommunications
public Communications getCommunications()
Description copied from interface:HasCommunicationsReturns the communications part of an AIS Message.- Specified by:
getCommunicationsin interfaceHasCommunications- Returns:
-
getSource
public java.lang.String getSource()
Description copied from interface:AisMessageReturns the source of the ais message. The source is not available in the ais message itself but may be provided in the tag block of the NMEA message that contains the ais message.- Specified by:
getSourcein interfaceAisMessage- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-