Package AIS

Class AISDataUnit

All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class AISDataUnit extends PamDataUnit implements Serializable, Cloneable
See Also:
  • Field Details

    • mmsiNumber

      public int mmsiNumber
  • Constructor Details

    • AISDataUnit

      public AISDataUnit(long timeMilliseconds)
      Constructor used in data collection - doesn't do much
    • AISDataUnit

      public AISDataUnit(long timeMillis, String charData, int fillBits)
      Constructor used when reading back from binary files.
      Parameters:
      timeMillis - time millis
      charData - 6 bit character data string
      fillBits - fill bits to ignore at end of string
  • Method Details

    • getStationtypeString

      public String getStationtypeString()
    • decodeMessage

      public boolean decodeMessage()
      Decode the binary data which are currently in a character string
      Returns:
      true if the message was decoded successfully
    • isComplete

      public boolean isComplete()
    • update

      public void update(AISDataUnit newAISUnit)
      Update an existing AIS data unit with new data.
      Parameters:
      newAISUnit -
    • getPositionReport

      public AISPositionReport getPositionReport()
    • findPositionReport

      public AISPositionReport findPositionReport(long timeMillis)
    • getStaticData

      public AISStaticData getStaticData()
    • getPositionReports

      public ArrayList<AISPositionReport> getPositionReports()
    • addPositionReport

      public void addPositionReport(AISPositionReport positionReport)
    • setStaticData

      public void setStaticData(AISStaticData staticData)