public class FolderInputSystem extends FileInputSystem implements PamSettings
FileInputSystem.CollectorThread
PARAMETER_FIXED, PARAMETER_UNKNOWN, STREAM_CLOSED, STREAM_ENDED, STREAM_OPEN, STREAM_PAUSED, STREAM_RUNNING
Constructor and Description |
---|
FolderInputSystem() |
Modifier and Type | Method and Description |
---|---|
void |
daqHasEnded()
Called after DAQ has stopped - for whatever reason.
|
boolean |
dialogGetParams()
Called by AcquisitionDialog.GetParams so that parameters can be extracted from the dialog
component.
|
void |
dialogSetParams()
Called by AcquisitionDialog.SetParams so that the dialog componenet can update it's
fields
|
PamFileFilter |
getAudioFileFilter() |
java.io.File |
getCurrentFile() |
java.lang.String |
getDeviceName()
Gets a name for the acquisition device (may just be a number
but need to generalise).
|
long |
getEta() |
PamFileFilter |
getFolderFileFilter() |
FolderInputParameters |
getFolderInputParameters() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.awt.Component |
getStatusBarComponent() |
java.lang.String |
getSystemType() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
void |
interpretNewFile(java.lang.String newFile) |
boolean |
prepareInputFile()
Open the audio stream for processing.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
boolean |
runFileAnalysis() |
void |
setAudioFileFilter(PamFileFilter audioFileFilter) |
void |
setFileDateText() |
void |
setFolderInputParameters(FolderInputParameters folderInputParameters) |
boolean |
startSystem(AcquisitionControl daqControl)
Start the DaqSystem.
|
actionPerformed, bytesToSamples, canPlayBack, getChannels, getDaqSpecificDialogComponent, getDataUnitSamples, getFileStartTime, getMaxChannels, getMaxSampleRate, getPeak2PeakVoltage, getSample, getSampleBits, getSampleRate, getSystemName, isRealTime, prepareSystem, sayEta, sayEta, setNewFile, setStreamStatus, stopSystem, systemHasStopped
areSampleSettingsOk, fillXMLParameters, getChannelGain, getDaqSpecificChannelListPanel, getInputChannelMap, getPlaybackSystem, getStreamStatus, setSelected, showSampleSettingsDialog, supportsChannelLists
public boolean runFileAnalysis()
runFileAnalysis
in class FileInputSystem
public boolean prepareInputFile()
FileInputSystem
prepareInputFile
in class FileInputSystem
public PamFileFilter getFolderFileFilter()
public void interpretNewFile(java.lang.String newFile)
interpretNewFile
in class FileInputSystem
public void setFileDateText()
public java.lang.String getSystemType()
getSystemType
in class FileInputSystem
Calling functions should be able to handle 'null'
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
getUnitName
in class FileInputSystem
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
getUnitType
in class FileInputSystem
public java.io.File getCurrentFile()
getCurrentFile
in class FileInputSystem
public void daqHasEnded()
DaqSystem
daqHasEnded
in class FileInputSystem
public java.awt.Component getStatusBarComponent()
getStatusBarComponent
in class FileInputSystem
public long getEta()
getEta
in class FileInputSystem
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
getSettingsReference
in class FileInputSystem
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
getSettingsVersion
in class FileInputSystem
public boolean dialogGetParams()
DaqSystem
dialogGetParams
in class FileInputSystem
public void dialogSetParams()
DaqSystem
dialogSetParams
in class FileInputSystem
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
restoreSettings
in class FileInputSystem
public FolderInputParameters getFolderInputParameters()
public void setFolderInputParameters(FolderInputParameters folderInputParameters)
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 FileInputSystem
daqControl
- AcquisitionControl unit.public java.lang.String getDeviceName()
DaqSystem
getDeviceName
in class FileInputSystem
public PamFileFilter getAudioFileFilter()
public void setAudioFileFilter(PamFileFilter audioFileFilter)