Package Acquisition
Class RonaInputSystem
java.lang.Object
Acquisition.DaqSystem
Acquisition.FileInputSystem
Acquisition.FolderInputSystem
Acquisition.RonaInputSystem
- All Implemented Interfaces:
 FileDateObserver,ActionListener,EventListener,DataInputStore,DataStoreInfoHolder,PamSettings,SettingsNameProvider
Bespoke system for handling data from the Rona hydrophone array which
 consists of sets of seven files, each with different ends in th ename.
- Author:
 - Doug
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class Acquisition.FileInputSystem
FileInputSystem.CollectorThread - 
Field Summary
FieldsFields inherited from class Acquisition.FolderInputSystem
allFiles, audioLoaderHolder, currentFileIndex, daqType, eta, GlobalWavFolderArg, sysTypeFields inherited from class Acquisition.FileInputSystem
acquisitionControl, acquisitionDialog, audioFormat, audioStream, blockSamples, byteConverter, collectorThread, currentAnalysisTime, dontStop, etaLabel, fileDateStrip, fileInputParameters, fileNameCombo, fileProgress, fileSelect, fileStartTime, newDataUnits, repeat, speedLabel, theThreadFields inherited from class Acquisition.DaqSystem
PARAMETER_FIXED, PARAMETER_UNKNOWN, STREAM_CLOSED, STREAM_ENDED, STREAM_OPEN, STREAM_PAUSED, STREAM_RUNNING - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidfindChannelFile(File baseFile, int index, int searchRange) Search for a nearby file with the same name, but secondds may differ by one or two secs - may need to generate complete new file names !protected intfudgeNumChannels(int nChannels) Fudge function so that the RonaInputsystem can always fudge the number of channels to be 7.getChannelFile(File baseFile, int index) swap the last digit in a file name for the higher channel number - rememebr the channels are one indexed.intintgetInputChannelMap(AcquisitionParameters acquisitionParameters) intbooleanOpen the audio stream for processing.booleanprepareSystem(AcquisitionControl daqControl) Prepare the DaqSystem.voidsetChannelRunning(int channel, boolean running) booleanstartSystem(AcquisitionControl daqControl) Start the DaqSystem.voidstopSystem(AcquisitionControl daqControl) Stop the DaqSystem.Methods inherited from class Acquisition.FolderInputSystem
checkFileHeaders, createDaqDialogPanel, daqHasEnded, dialogFXSetParams, dialogGetParams, dialogSetParams, getAudioFileFilter, getBatchStatus, getCurrentFile, getCurrentFolder, getDAQSpecificPane, getDeviceName, getEta, getFolderInputParameters, getSettingsReference, getSettingsVersion, getStartButtonToolTip, getStatusBarComponent, getStoreInfo, interpretNewFile, makeSelFileList, makeSelFileList, newFileList, openNextFile, resetToStart, restoreSettings, runFileAnalysis, selectFolder, setAnalysisStartTime, setAudioFileFilter, setFileDateText, setFileOptionPanel, setFolderInputParameters, setSelected, startAtCurrent, startButtonXtraActionsMethods inherited from class Acquisition.FileInputSystem
actionPerformed, bytesToSamples, canPlayBack, collectFlacData, fileDateChange, fileListComplete, getAquisitionControl, getDaqSpecificDialogComponent, getDataUnitSamples, getDialogPanel, getFileStartTime, getFirstFile, getMaxSampleRate, getPeak2PeakVoltage, getSample, getSampleBits, getSampleRate, getSelectedFileTypes, getSkipStartFileTime, getSystemName, isRealTime, loadByteConverter, sayEta, sayEta, selectFile, setNewFile, setSelectedFileTypes, setStreamStatus, systemHasStoppedMethods inherited from class Acquisition.DaqSystem
areSampleSettingsOk, getChannelGain, getDaqSpecificChannelListNode, getDaqSpecificChannelListPanel, getPlaybackSystem, getStallCheckSeconds, getStreamStatus, notifyModelChanged, showSampleSettingsDialog, supportsChannelLists 
- 
Field Details
- 
systemType
- See Also:
 
 
 - 
 - 
Constructor Details
- 
RonaInputSystem
 
 - 
 - 
Method Details
- 
getSystemType
- Overrides:
 getSystemTypein classFolderInputSystem- Returns:
 - The 'type' of data source for display in the Data Source dialog
 
Calling functions should be able to handle 'null'
 
 - 
getUnitName
- Specified by:
 getUnitNamein interfaceSettingsNameProvider- Overrides:
 getUnitNamein classFolderInputSystem- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Overrides:
 getUnitTypein classFolderInputSystem- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
getFolderFileFilter
- Overrides:
 getFolderFileFilterin classFolderInputSystem
 - 
fudgeNumChannels
protected int fudgeNumChannels(int nChannels) Description copied from class:FolderInputSystemFudge function so that the RonaInputsystem can always fudge the number of channels to be 7.- Overrides:
 fudgeNumChannelsin classFolderInputSystem- Parameters:
 nChannels-- Returns:
 
 - 
getMaxChannels
public int getMaxChannels()- Overrides:
 getMaxChannelsin classFileInputSystem- Returns:
 - the maximum number of channels supporrted by the selected device, or PARAMETER_UNKNOWN
 
 - 
getChannels
public int getChannels()- Overrides:
 getChannelsin classFileInputSystem
 - 
getInputChannelMap
- Overrides:
 getInputChannelMapin classDaqSystem- Returns:
 - a bitmap of output channels. this should ALWAYS be a bitmap of channels 0 to n-1 even if different hardware channels are used since hardware channels are no longer passed through PAMGUARD.
 
 - 
prepareInputFile
public boolean prepareInputFile()Description copied from class:FileInputSystemOpen the audio stream for processing.- Overrides:
 prepareInputFilein classFolderInputSystem- Returns:
 - true if audio stream opened correctly.
 
 - 
getChannelFile
swap the last digit in a file name for the higher channel number - rememebr the channels are one indexed.- Parameters:
 baseFile- base fileindex- 0 based file index- Returns:
 - new file with the 1 replaced by another number
 
 - 
findChannelFile
Search for a nearby file with the same name, but secondds may differ by one or two secs - may need to generate complete new file names !- Parameters:
 baseFile-index-searchRange-- Returns:
 
 - 
prepareSystem
Description copied from class:DaqSystemPrepare the DaqSystem.Usually this is the time for opening files, preparing data buffers, etc.
- Overrides:
 prepareSystemin classFileInputSystem- Parameters:
 daqControl- AcquisitionControl unit.- Returns:
 - true if OK, false otherwise.
 
 - 
startSystem
Description copied from class:DaqSystemStart the DaqSystem. This is called immediately after PrepareSystemMost things should be ready from the call to PrepareSystem. In StartSystem you will generally need to start a thread which will read in the data and place PamDataUnits in a buffer from where they are read by the main thred and passed on to other Pam modules for processing (see SoundCardSystem for an example)
- Overrides:
 startSystemin classFolderInputSystem- Parameters:
 daqControl- AcquisitionControl unit.- Returns:
 - true if OK, false otherwise
 
 - 
setChannelRunning
public void setChannelRunning(int channel, boolean running)  - 
stopSystem
Description copied from class:DaqSystemStop the DaqSystem.- Overrides:
 stopSystemin classFileInputSystem- Parameters:
 daqControl-
 - 
calculateETA
protected void calculateETA()- Overrides:
 calculateETAin classFolderInputSystem
 
 -