Class OfflineEventDataUnit

All Implemented Interfaces:
Comparable<PamDataUnit>, PamDetection, AcousticDataUnit
Direct Known Subclasses:
ClickTrainDetection

public class OfflineEventDataUnit extends GroupDetection<PamDataUnit>
OfflineEventDataUnit replicates the RainbowClick functionality in OfflineRCEvent.

A lot of the functionality required to associate clicks with an event is already wrapped up in the base classes of PamDataBlock and PamDataUnit.

March 2016. Am merging online and offline click tracking functionality, so this has now been declared abstract to stop them being created directly and TrackedClickGroup has been made to subclass this, so that both now have the same functionality. May at a later date remove trackedclickGroup and go back to just having the one class of OfflineEventDataUnit - or better, EventDataUnit.

Author:
Doug Gillespie
  • Constructor Details Link icon

    • OfflineEventDataUnit Link icon

      public OfflineEventDataUnit(ClickDetection firstClick)
    • OfflineEventDataUnit Link icon

      public OfflineEventDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration)
    • OfflineEventDataUnit Link icon

      public OfflineEventDataUnit(String eventType, Integer nominalEventId, ClickDetection firstClick)
      Called whena new event is created.
      Parameters:
      eventType -
      firstClick -
      colourIndex -
  • Method Details Link icon

    • getEventType Link icon

      public String getEventType()
      Returns:
      the eventType
    • getColourIndex Link icon

      public int getColourIndex()
      Description copied from class: PamDataUnit
      Get a colour id. this can be pretty much anything and will be scaled, looped, to fit in the range of whale id colours. Mostly used for superdetection display, but can be used by anything.
      Overrides:
      getColourIndex in class PamDataUnit<PamDataUnit,SuperDetection>
      Returns:
      any integer.
    • setColourIndex Link icon

      public void setColourIndex(int colourIndex)
    • setEventType Link icon

      public void setEventType(String eventType)
      Parameters:
      eventType - the eventType to set
    • getComment Link icon

      public String getComment()
      Returns:
      the comment
    • setComment Link icon

      public void setComment(String comment)
      Parameters:
      comment - the comment to set
    • getEventNumber Link icon

      public int getEventNumber()
      Returns:
      the eventNumber which is the same as the database index.
    • getMinNumber Link icon

      public Short getMinNumber()
    • setMinNumber Link icon

      public void setMinNumber(Short minNumber)
    • getBestNumber Link icon

      public Short getBestNumber()
    • setBestNumber Link icon

      public void setBestNumber(Short bestNumber)
    • getMaxNumber Link icon

      public Short getMaxNumber()
    • setMaxNumber Link icon

      public void setMaxNumber(Short maxNumber)
    • getNClicks Link icon

      public int getNClicks()
    • isSuspectEventTimes Link icon

      public boolean isSuspectEventTimes()
      Returns:
      the suspectEventTimes
    • setSuspectEventTimes Link icon

      public void setSuspectEventTimes(boolean suspectEventTimes)
      Parameters:
      suspectEventTimes - the suspectEventTimes to set
    • notifyUpdate Link icon

      public void notifyUpdate()
      Quick way for events to tell observers of the data block that they have updated.