|
ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.mrstampy.esp.dsp.lab.AbstractLab
public abstract class AbstractLab
The Class AbstractLab encapsulates common Lab properties.
| Constructor Summary | |
|---|---|
AbstractLab()
Instantiates a new abstract lab. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.github.mrstampy.esp.dsp.lab.Lab |
|---|
calculateBaseline, process, resetBaseline, stopCalculateBaseline |
| Constructor Detail |
|---|
public AbstractLab()
| Method Detail |
|---|
public 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()
Lab
getConnection in interface Labpublic void setConnection(RawEspConnection connection)
Lab
setConnection in interface Labconnection - the new connectionpublic FFTType getFftType()
LabValues
getFftType in interface LabValuespublic void setFftType(FFTType fftType)
LabValues
setFftType in interface LabValuesfftType - the new fft typepublic int getNumBands()
LabValues
getNumBands in interface LabValuespublic void setNumBands(int numBands)
LabValues
setNumBands in interface LabValuesnumBands - the new num bandspublic LabValues getLabValues()
LabLabValues object for lab values persistence.
getLabValues in interface Labpublic void setLabValues(LabValues values)
Lab
setLabValues in interface Labvalues - the new lab valuespublic void addSignalProcessedListener(SignalProcessedListener l)
Lab
addSignalProcessedListener in interface Labl - the lpublic void removeSignalProcessedListener(SignalProcessedListener l)
Lab
removeSignalProcessedListener in interface Labl - the lpublic void clearSignalProcessedListeners()
Lab
clearSignalProcessedListeners in interface Labpublic int getChannel()
LabValues
getChannel in interface LabValuespublic void setChannel(int channel)
LabValues
setChannel in interface LabValueschannel - the new channelpublic int getNumChannels()
LabValues
getNumChannels in interface LabValues
|
brought to you by Mr. Stampy | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||