Class SubdetectionInfo<T extends PamDataUnit>

java.lang.Object
PamguardMVC.superdet.SubdetectionInfo<T>
Type Parameters:
T -
All Implemented Interfaces:
Comparable<SubdetectionInfo<T>>

public class SubdetectionInfo<T extends PamDataUnit> extends Object implements Comparable<SubdetectionInfo<T>>
A list of these is held within a SuperDetection data unit. Ideally, a superDetection should always have it's full list of these infos, so that it can handle questions about start and end times of events, etc. However, references to the actual data units may be missing, if not in the current data load period. That's fine, since all questions likely to be asked can come from the broad information.
Author:
Doug Gillespie
  • Constructor Details

    • SubdetectionInfo

      public SubdetectionInfo(T subDetection, int parentID, long parentUID)
      Parameters:
      subDetection2 -
    • SubdetectionInfo

      public SubdetectionInfo(T subDetection, SuperDetection superDetection)
      Constructor used when adding a new data unit that isn't yet in the database.
      Parameters:
      subDetection -
      superDetection -
    • SubdetectionInfo

      public SubdetectionInfo(PamSubtableData subTableData)
      Constructor used when reading back from database.
      Parameters:
      subTableData - data object from database.
  • Method Details

    • getSubDetection

      public T getSubDetection()
    • setSubDetection

      public void setSubDetection(T subDetection)
    • getParentID

      public int getParentID()
    • setParentID

      public void setParentID(int linkID)
    • getParentUID

      public long getParentUID()
    • setParentUID

      public void setParentUID(long linkUID)
    • compareTo

      public int compareTo(SubdetectionInfo detectionToCompareAgainst)
      Calls the PamDataUnit compareTo method on the passed SubdetectionInfo object's subdetection
      Specified by:
      compareTo in interface Comparable<T extends PamDataUnit>
      See Also:
    • getSubDetDataBlock

      public PamDataBlock getSubDetDataBlock()
      Returns:
      the subDetDataBlock
    • setSubDetDataBlock

      public void setSubDetDataBlock(PamDataBlock subDetDataBlock)
      Parameters:
      subDetDataBlock - the subDetDataBlock to set
    • getLongName

      public String getLongName()
      Returns:
      the longName
    • getBinaryFilename

      public String getBinaryFilename()
      Returns:
      the binaryFilename
    • getChildUID

      public long getChildUID()
      Returns:
      the childUID
    • getChildUTC

      public long getChildUTC()
      Returns:
      the childUTC
    • getChildDatabaseIndex

      public int getChildDatabaseIndex()
      Returns:
      the chileDatabaseIndex
    • setChildDatabaseIndex

      public void setChildDatabaseIndex(int childDatabaseIndex)
      Parameters:
      childDatabaseIndex - the chileDatabaseIndex to set
    • getBinaryFileIndex

      public int getBinaryFileIndex()
      Returns:
      the binaryFileIndex
    • setBinaryFileIndex

      public void setBinaryFileIndex(int binaryFileIndex)
      Parameters:
      binaryFileIndex - the binaryFileIndex to set
    • getClickNumber

      public Integer getClickNumber()
      Returns:
      the clickNumber
    • setChildUID

      public void setChildUID(long childUID)
      Parameters:
      childUID - the childUID to set