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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNotificationHandler
(SUDNotificationHandler sudNotificationHandler) void
chunkProcessed
(int chunkId, org.pamguard.x3.sud.Chunk sudChunk) void
interpretNewFile
(String newFile, org.pamguard.x3.sud.SudAudioInputStream sudAudioStream) Notification that a new file or folder is selected.void
newSudInputStream
(org.pamguard.x3.sud.SudAudioInputStream sudAudioInputStream) A new SUD file input stream has been opened.void
progress
(double arg0, int arg1, int arg2) boolean
removeNotificationHandler
(SUDNotificationHandler sudNotificationHandler) void
SUD 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:SUDNotificationHandler
A new SUD file input stream has been opened.- Specified by:
newSudInputStream
in interfaceSUDNotificationHandler
-
sudStreamClosed
public void sudStreamClosed()Description copied from interface:SUDNotificationHandler
SUD stream has closed.- Specified by:
sudStreamClosed
in interfaceSUDNotificationHandler
-
progress
public void progress(double arg0, int arg1, int arg2) - Specified by:
progress
in interfaceSUDNotificationHandler
- Specified by:
progress
in interfaceorg.pamguard.x3.sud.SudProgressListener
-
chunkProcessed
public void chunkProcessed(int chunkId, org.pamguard.x3.sud.Chunk sudChunk) - Specified by:
chunkProcessed
in interfaceorg.pamguard.x3.sud.SudFileListener
- Specified by:
chunkProcessed
in interfaceSUDNotificationHandler
-
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 interfaceSUDNotificationHandler
-