Package Acquisition.sud
Class SUDNotificationManager
java.lang.Object
Acquisition.sud.SUDNotificationManager
- All Implemented Interfaces:
SUDNotificationHandler,org.pamguard.x3.sud.SudFileListener,org.pamguard.x3.sud.SudProgressListener
Class to handle appropriate notifications for SUD files, which go a bit
beyond what's handled in the chunk notifications.
- Author:
- dg50
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationHandler(SUDNotificationHandler sudNotificationHandler) voidchunkProcessed(int chunkId, org.pamguard.x3.sud.Chunk sudChunk) voidinterpretNewFile(String newFile, org.pamguard.x3.sud.SudAudioInputStream sudAudioStream) Notification that a new file or folder is selected.voidnewSudInputStream(org.pamguard.x3.sud.SudAudioInputStream sudAudioInputStream) A new SUD file input stream has been opened.voidprogress(double arg0, int arg1, int arg2) booleanremoveNotificationHandler(SUDNotificationHandler sudNotificationHandler) voidSUD stream has closed.
-
Constructor Details
-
SUDNotificationManager
public SUDNotificationManager()
-
-
Method Details
-
addNotificationHandler
-
removeNotificationHandler
-
newSudInputStream
public void newSudInputStream(org.pamguard.x3.sud.SudAudioInputStream sudAudioInputStream) Description copied from interface:SUDNotificationHandlerA new SUD file input stream has been opened.- Specified by:
newSudInputStreamin interfaceSUDNotificationHandler- Parameters:
sudAudioInputStream-
-
sudStreamClosed
public void sudStreamClosed()Description copied from interface:SUDNotificationHandlerSUD stream has closed.- Specified by:
sudStreamClosedin interfaceSUDNotificationHandler
-
progress
public void progress(double arg0, int arg1, int arg2) - Specified by:
progressin interfaceSUDNotificationHandler- Specified by:
progressin interfaceorg.pamguard.x3.sud.SudProgressListener
-
chunkProcessed
public void chunkProcessed(int chunkId, org.pamguard.x3.sud.Chunk sudChunk) - Specified by:
chunkProcessedin interfaceorg.pamguard.x3.sud.SudFileListener- Specified by:
chunkProcessedin interfaceSUDNotificationHandler
-
interpretNewFile
public void interpretNewFile(String newFile, org.pamguard.x3.sud.SudAudioInputStream sudAudioStream) Description copied from interface:SUDNotificationHandlerNotification 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:
interpretNewFilein interfaceSUDNotificationHandler- Parameters:
newFile-sudAudioStream-
-