Package tritechgemini.fileio
Class CatalogSonarInfo
java.lang.Object
tritechgemini.fileio.CatalogSonarInfo
- All Implemented Interfaces:
Serializable,Cloneable
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddFrame()Increase frame count by oneintaddFrameCount(int nToAdd) Add a countof n frames to the total.protected CatalogSonarInfoclone()intintinttoString()
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
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
-
toString
-