Class SUDNotificationManager

java.lang.Object
Acquisition.sud.SUDNotificationManager
All Implemented Interfaces:
SUDNotificationHandler, org.pamguard.x3.sud.SudFileListener, org.pamguard.x3.sud.SudProgressListener

public class SUDNotificationManager extends Object implements SUDNotificationHandler
Class to handle appropriate notifications for SUD files, which go a bit beyond what's handled in the chunk notifications.
Author:
dg50
  • Constructor Details

    • SUDNotificationManager

      public SUDNotificationManager()
  • Method Details

    • addNotificationHandler

      public void addNotificationHandler(SUDNotificationHandler sudNotificationHandler)
    • removeNotificationHandler

      public boolean removeNotificationHandler(SUDNotificationHandler sudNotificationHandler)
    • newSudInputStream

      public void newSudInputStream(org.pamguard.x3.sud.SudAudioInputStream sudAudioInputStream)
      Description copied from interface: SUDNotificationHandler
      A new SUD file input stream has been opened.
      Specified by:
      newSudInputStream in interface SUDNotificationHandler
    • sudStreamClosed

      public void sudStreamClosed()
      Description copied from interface: SUDNotificationHandler
      SUD stream has closed.
      Specified by:
      sudStreamClosed in interface SUDNotificationHandler
    • progress

      public void progress(double arg0, int arg1, int arg2)
      Specified by:
      progress in interface SUDNotificationHandler
      Specified by:
      progress in interface org.pamguard.x3.sud.SudProgressListener
    • chunkProcessed

      public void chunkProcessed(int chunkId, org.pamguard.x3.sud.Chunk sudChunk)
      Specified by:
      chunkProcessed in interface org.pamguard.x3.sud.SudFileListener
      Specified by:
      chunkProcessed in interface SUDNotificationHandler
    • interpretNewFile

      public void interpretNewFile(String newFile, org.pamguard.x3.sud.SudAudioInputStream sudAudioStream)
      Description copied from interface: SUDNotificationHandler
      Notification that a new file or folder is selected. This is called when a file or folder is selected in the dialog, NOT when acquisition starts, so is a good opportunity for the SUD Click Detector to work out channel maps and sample rates.
      Specified by:
      interpretNewFile in interface SUDNotificationHandler