Package soundtrap
Class STAcquisitionProcess
java.lang.Object
PamguardMVC.PamProcess
Acquisition.AcquisitionProcess
soundtrap.STAcquisitionProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
- Author:
- SCANS
-
Field Summary
Fields inherited from class Acquisition.AcquisitionProcess
FIRSTDATA, LASTDATA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getOfflineData
(OfflineDataLoadInfo offlineLoadDataInfo) float
boolean
void
pamStart()
Interval between daq checks in millisecondsvoid
pamStop()
Stops the process.void
void
Called for each process before any of them receive the PamStart commandvoid
setNumChannels
(int numChannels) void
setNumChannels
(int numChannels, int[] channelList) Set up channels when using a channel list - note that hardware channels are no longer passed through the system so software channels are now used throughout.void
setSampleRate
(float sampleRate, boolean notify) New sample ratevoid
called when acquisition parameters change.Methods inherited from class Acquisition.AcquisitionProcess
dbMicropascalToSignal, fftAmplitude2dB, fftAmplitude2dB, fftBandAmplitude2dB, getAcquisitionControl, getBufferSeconds, getDaqStatusDataBlock, getMaxBufferSeconds, getNewDataQueue, getPeak2PeakVoltage, getRawDataBlock, getRunningSystem, getStallCheckSeconds, getStoreInfo, getTotalSamples, needRestart, newData, prepareFastAmplitudeCalculation, prepareProcessOK, rawAmplitude2dB, rawAmplitude2dB, recordPPSOffset, sendSourceNotification, setAnalysisStartTime, streamClosed, streamEnded, streamOpen, streamPaused
Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setupProcess, toString, updateData
-
Constructor Details
-
STAcquisitionProcess
- Parameters:
acquisitionControl
-
-
-
Method Details
-
setupDataBlock
public void setupDataBlock()Description copied from class:AcquisitionProcess
called when acquisition parameters change.- Overrides:
setupDataBlock
in classAcquisitionProcess
-
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserver
New sample rate- Specified by:
setSampleRate
in interfacePamObserver
- Overrides:
setSampleRate
in classAcquisitionProcess
- Parameters:
notify
- Notify other PamObservers and PamObservables in the chain.
-
getSampleRate
public float getSampleRate()- Overrides:
getSampleRate
in classPamProcess
- Returns:
- The sample rate in the process
-
setNumChannels
public void setNumChannels(int numChannels) - Overrides:
setNumChannels
in classAcquisitionProcess
-
setNumChannels
public void setNumChannels(int numChannels, int[] channelList) Description copied from class:AcquisitionProcess
Set up channels when using a channel list - note that hardware channels are no longer passed through the system so software channels are now used throughout.- Overrides:
setNumChannels
in classAcquisitionProcess
-
pamStart
public void pamStart()Description copied from class:AcquisitionProcess
Interval between daq checks in milliseconds- Overrides:
pamStart
in classAcquisitionProcess
-
pamStop
public void pamStop()Description copied from class:PamProcess
Stops the process.- Overrides:
pamStop
in classAcquisitionProcess
-
pamStop
- Overrides:
pamStop
in classAcquisitionProcess
-
prepareProcess
public void prepareProcess()Description copied from class:PamProcess
Called for each process before any of them receive the PamStart command- Overrides:
prepareProcess
in classAcquisitionProcess
-
getOfflineData
- Overrides:
getOfflineData
in classAcquisitionProcess
-
acquisitionStopped
public void acquisitionStopped()- Overrides:
acquisitionStopped
in classAcquisitionProcess
-
isStalled
public boolean isStalled()- Overrides:
isStalled
in classAcquisitionProcess
- Returns:
- if the acquisition system seems to have stopped acquiring data.
-