Class DetectionGroupSummary

java.lang.Object
detectiongrouplocaliser.DetectionGroupSummary

public class DetectionGroupSummary extends Object
A summary of information associated with some marked data units.

Should refactor at some point so that this is standard within the OverlayMarker.

Author:
Doug Gillespie
  • Constructor Details

    • DetectionGroupSummary

      public DetectionGroupSummary(javafx.scene.input.MouseEvent mouseEvent, OverlayMarker overlayMarker, OverlayMark overlayMark, List<PamDataUnit> dataList)
      Parameters:
      mouseEvent -
      overlayMarker -
      overlayMark -
      dataList - List of data units selected from a mark on one of the displays.
    • DetectionGroupSummary

      public DetectionGroupSummary(javafx.scene.input.MouseEvent mouseEvent, OverlayMarker overlayMarker, OverlayMark overlayMark, PamDataUnit dataUnit)
  • Method Details

    • getNumDataUnits

      public int getNumDataUnits()
      Returns:
      The number of data units in the list
    • getNumDataBlocks

      public int getNumDataBlocks()
      Returns:
      The number of different data blocks for the units in the list.
    • getNumSuperDetections

      public int getNumSuperDetections()
      Returns:
      The number of super detections
    • getNumSuperDataBlocks

      public int getNumSuperDataBlocks()
      Returns:
      The number of unique super detection data blocks.
    • getDataList

      public List<PamDataUnit> getDataList()
      Returns:
      the dataList
    • getUsedDataBlocks

      public HashSet<PamDataBlock> getUsedDataBlocks()
      Returns:
      the usedDataBlocks
    • getSuperDetections

      public HashSet<PamDataUnit> getSuperDetections()
      Returns:
      the superDetections
    • getSuperDataBlocks

      public HashSet<PamDataBlock> getSuperDataBlocks()
      Returns:
      the superDataBlocks
    • getFirstTimeMillis

      public long getFirstTimeMillis()
      Returns:
      the time of the first data unit.
    • getLastTimeMillis

      public long getLastTimeMillis()
      Returns:
      the time of the last data unit
    • getMouseEvent

      public javafx.scene.input.MouseEvent getMouseEvent()
      Returns:
      the mouseEvent
    • getOverlayMarker

      public OverlayMarker getOverlayMarker()
      Returns:
      the overlayMarker
    • getOverlayMark

      public OverlayMark getOverlayMark()
      Returns:
      the overlayMark
    • setFocusedIndex

      public void setFocusedIndex(int index)
      Set the index of the currently focused data unit.
      Parameters:
      i - - the index of the unit to focus.
    • getFocusedIndex

      public int getFocusedIndex()
      Set the index of the currently focused dfata unit.
      Parameters:
      i - - the index of the unit to focus.