public abstract class AbstractLab extends java.lang.Object implements Lab
| Constructor and Description |
|---|
AbstractLab()
Instantiates a new abstract lab.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSignalProcessedListener(SignalProcessedListener l)
Adds the signal processed listener.
|
void |
clearSignalProcessedListeners()
Clear signal processed listeners.
|
int |
getChannel()
Returns the channel being processed by this lab.
|
RawEspConnection |
getConnection()
Gets the connection.
|
FFTType |
getFftType()
Gets the fft type.
|
LabValues |
getLabValues()
Returns a serializable
LabValues object for lab values persistence. |
int |
getNumBands()
Gets the num bands.
|
int |
getNumChannels()
Returns the number of channels available for processing.
|
protected void |
notifyProcessedListeners(double[] processed)
Notify processed listeners.
|
void |
removeSignalProcessedListener(SignalProcessedListener l)
Removes the signal processed listener.
|
void |
setChannel(int channel)
Set the channel for this lab.
|
void |
setConnection(RawEspConnection connection)
Sets the connection.
|
void |
setFftType(FFTType fftType)
Sets the fft type.
|
void |
setLabValues(LabValues values)
Initialization of a lab with values.
|
void |
setNumBands(int numBands)
Sets the num bands.
|
void |
triggerProcessing()
Implementations will call
Lab.process(double[][]) with the
RawEspConnection.getCurrent() signal. |
void |
triggerProcessing(int numSamples)
Implementations will call
Lab.process(double[][]) with the
RawEspConnection.getCurrent(int) signal. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculateBaseline, process, resetBaseline, stopCalculateBaselinegetBaseline, getHighNormalizeFftFrequency, getHighPassFilterFactor, getHighPassFrequency, getLowNormalizeFftFrequency, getLowPassFilterFactor, getLowPassFrequency, getPassFilter, getWindowFunction, isAbsoluteValues, isNormalizeFft, isNormalizeSignal, setAbsoluteValues, setBaseline, setHighNormalizeFftFrequency, setHighPassFilterFactor, setHighPassFrequency, setLowNormalizeFftFrequency, setLowPassFilterFactor, setLowPassFrequency, setNormalizeFft, setNormalizeSignal, setPassFilter, setWindowFunctionpublic void triggerProcessing()
LabLab.process(double[][]) with the
RawEspConnection.getCurrent() signal.triggerProcessing in interface Labpublic void triggerProcessing(int numSamples)
LabLab.process(double[][]) with the
RawEspConnection.getCurrent(int) signal.triggerProcessing in interface LabnumSamples - the num samplesprotected void notifyProcessedListeners(double[] processed)
processed - the processedpublic RawEspConnection getConnection()
LabgetConnection in interface Labpublic void setConnection(RawEspConnection connection)
LabsetConnection in interface Labconnection - the new connectionpublic FFTType getFftType()
LabValuesgetFftType in interface LabValuespublic void setFftType(FFTType fftType)
LabValuessetFftType in interface LabValuesfftType - the new fft typepublic int getNumBands()
LabValuesgetNumBands in interface LabValuespublic void setNumBands(int numBands)
LabValuessetNumBands in interface LabValuesnumBands - the new num bandspublic LabValues getLabValues()
LabLabValues object for lab values persistence.getLabValues in interface Labpublic void setLabValues(LabValues values)
LabsetLabValues in interface Labvalues - the new lab valuespublic void addSignalProcessedListener(SignalProcessedListener l)
LabaddSignalProcessedListener in interface Labl - the lpublic void removeSignalProcessedListener(SignalProcessedListener l)
LabremoveSignalProcessedListener in interface Labl - the lpublic void clearSignalProcessedListeners()
LabclearSignalProcessedListeners in interface Labpublic int getChannel()
LabValuesgetChannel in interface LabValuespublic void setChannel(int channel)
LabValuessetChannel in interface LabValueschannel - the new channelpublic int getNumChannels()
LabValuesgetNumChannels in interface LabValues