public class RonaInputSystem extends FolderInputSystem
FileInputSystem.CollectorThread
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
systemType |
PARAMETER_FIXED, PARAMETER_UNKNOWN, STREAM_CLOSED, STREAM_ENDED, STREAM_OPEN, STREAM_PAUSED, STREAM_RUNNING
Constructor and Description |
---|
RonaInputSystem(AcquisitionControl acquisitionControl) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
findChannelFile(java.io.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 !
|
java.io.File |
getChannelFile(java.io.File baseFile,
int index)
swap the last digit in a file name for the higher channel
number - rememebr the channels are one indexed.
|
int |
getChannels() |
PamFileFilter |
getFolderFileFilter() |
int |
getInputChannelMap(AcquisitionParameters acquisitionParameters) |
int |
getMaxChannels() |
java.lang.String |
getSystemType() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
prepareInputFile()
Open the audio stream for processing.
|
boolean |
prepareSystem(AcquisitionControl daqControl)
Prepare the DaqSystem.
|
void |
setChannelRunning(int channel,
boolean running) |
boolean |
startSystem(AcquisitionControl daqControl)
Start the DaqSystem.
|
void |
stopSystem(AcquisitionControl daqControl)
Stop the DaqSystem.
|
daqHasEnded, dialogGetParams, dialogSetParams, getAudioFileFilter, getCurrentFile, getDeviceName, getEta, getFolderInputParameters, getSettingsReference, getSettingsVersion, getStatusBarComponent, interpretNewFile, restoreSettings, runFileAnalysis, setAudioFileFilter, setFileDateText, setFolderInputParameters
actionPerformed, bytesToSamples, canPlayBack, getDaqSpecificDialogComponent, getDataUnitSamples, getFileStartTime, getMaxSampleRate, getPeak2PeakVoltage, getSample, getSampleBits, getSampleRate, getSystemName, isRealTime, sayEta, sayEta, setNewFile, setStreamStatus, systemHasStopped
areSampleSettingsOk, fillXMLParameters, getChannelGain, getDaqSpecificChannelListPanel, getPlaybackSystem, getStreamStatus, setSelected, showSampleSettingsDialog, supportsChannelLists
public static final java.lang.String systemType
public RonaInputSystem(AcquisitionControl acquisitionControl)
public java.lang.String getSystemType()
getSystemType
in class FolderInputSystem
Calling functions should be able to handle 'null'
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
getUnitName
in class FolderInputSystem
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
getUnitType
in class FolderInputSystem
public PamFileFilter getFolderFileFilter()
getFolderFileFilter
in class FolderInputSystem
public int getMaxChannels()
getMaxChannels
in class FileInputSystem
public int getChannels()
getChannels
in class FileInputSystem
public int getInputChannelMap(AcquisitionParameters acquisitionParameters)
getInputChannelMap
in class DaqSystem
public boolean prepareInputFile()
FileInputSystem
prepareInputFile
in class FolderInputSystem
public java.io.File getChannelFile(java.io.File baseFile, int index)
baseFile
- base fileindex
- 0 based file indexpublic java.io.File findChannelFile(java.io.File baseFile, int index, int searchRange)
baseFile
- index
- searchRange
- public boolean prepareSystem(AcquisitionControl daqControl)
DaqSystem
Usually this is the time for opening files, preparing data buffers, etc.
prepareSystem
in class FileInputSystem
daqControl
- AcquisitionControl unit.public boolean startSystem(AcquisitionControl daqControl)
DaqSystem
Most 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)
startSystem
in class FolderInputSystem
daqControl
- AcquisitionControl unit.public void setChannelRunning(int channel, boolean running)
public void stopSystem(AcquisitionControl daqControl)
DaqSystem
stopSystem
in class FileInputSystem