|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webkitchen.brainathlon.gameComponents.SpectrumFilter
public class SpectrumFilter
Listens for new raw samples, filters the raw data into the four standard
frequency bands of Beta, Alpha, Theta and Delta, then notifies listeners
of the latest values values packaged in a Spectrum.
Objects can add themselves as listeners/observers to receive copies of
all new Spectrums.
ISpectrumGenerator,
ISpectrumListener,
Spectrum| Constructor Summary | |
|---|---|
SpectrumFilter()
Creates a new filter that notifies listeners of sample values in the four standard frequency bands of Beta, Alpha, Theta and Delta |
|
| Method Summary | |
|---|---|
void |
addSpectrumListener(ISpectrumListener listener)
Attach listener to receive notification/copies of all new spectrums |
void |
receiveSample(double rawSample)
Processes the sample to filter for our four frequency bands, and notifies our listeners of the latest sample values |
void |
removeAllSpectrumListeners()
Remove all listeners from our notification list |
void |
removeSpectrumListener(ISpectrumListener listener)
Remove listener from our notification list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpectrumFilter()
| Method Detail |
|---|
public void receiveSample(double rawSample)
receiveSample in interface IChannelSampleListenerrawSample - the raw sample that we will processpublic void addSpectrumListener(ISpectrumListener listener)
addSpectrumListener in interface ISpectrumGeneratorlistener - the observer who wants to receive spectrumspublic void removeSpectrumListener(ISpectrumListener listener)
removeSpectrumListener in interface ISpectrumGeneratorlistener - the observer to removepublic void removeAllSpectrumListeners()
removeAllSpectrumListeners in interface ISpectrumGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||