com.webkitchen.brainathlon.gameComponents
Interface ISpectrumGenerator

All Known Subinterfaces:
ISpectrumPlayerMonitor
All Known Implementing Classes:
SpectrumFilter

public interface ISpectrumGenerator

Filters 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.

See Also:
ISpectrumListener, Spectrum

Method Summary
 void addSpectrumListener(ISpectrumListener listener)
          Attach listener to receive notification/copies of all new spectrums
 void removeAllSpectrumListeners()
          Remove all listeners from our notification list
 void removeSpectrumListener(ISpectrumListener listener)
          Remove listener from our notification list
 

Method Detail

addSpectrumListener

void addSpectrumListener(ISpectrumListener listener)
Attach listener to receive notification/copies of all new spectrums

Parameters:
listener - the observer who wants to receive spectrums

removeSpectrumListener

void removeSpectrumListener(ISpectrumListener listener)
Remove listener from our notification list

Parameters:
listener - the observer to remove

removeAllSpectrumListeners

void removeAllSpectrumListeners()
Remove all listeners from our notification list