Class CatalogSonarInfo

java.lang.Object
tritechgemini.fileio.CatalogSonarInfo
All Implemented Interfaces:
Serializable, Cloneable

public class CatalogSonarInfo extends Object implements Cloneable, Serializable
information about an individual sonar in a catalog. i.e. one of thee for single sonar, 2 for dual, etc.
Author:
Doug Gillespie
See Also:
  • Field Details

  • Constructor Details

    • CatalogSonarInfo

      public CatalogSonarInfo(int sonarIndex, int sonarId, int firstFrame)
      Parameters:
      sonarIndex - index of sonar (likely to be 1 or 2, not 0 based)
      sonarId - Sonar id - the id on the actual device.
      firstFrame - index of first frame in file. Should be 0 or 1.
  • Method Details

    • getSonarId

      public int getSonarId()
    • getSonarIndex

      public int getSonarIndex()
    • getnFrames

      public int getnFrames()
    • addFrame

      public int addFrame()
      Increase frame count by one
      Returns:
      total number of frames.
    • addFrameCount

      public int addFrameCount(int nToAdd)
      Add a countof n frames to the total.
      Parameters:
      nToAdd -
      Returns:
    • clone

      protected CatalogSonarInfo clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object