com.webkitchen.eeg.acquisition
Interface IRawSampleGenerator


public interface IRawSampleGenerator

Generates the raw EEG samples for a specific channel or channels. Objects can add themselves as listeners/observers to receive copies of all new samples on a specific channel or set of channels. Listeners must implement the IRawSampleListener interface.

See Also:
IRawSampleListener, RawSample

Method Summary
 void addSampleListener(IRawSampleListener listener, int[] channels)
          Attach listener to receive notification/copies of RawSamples containing specified channel values
 void removeAllSampleListeners()
          Remove all listeners from our notification list
 void removeSampleListener(IRawSampleListener listener)
          Remove listener from our notification list.
 

Method Detail

addSampleListener

void addSampleListener(IRawSampleListener listener,
                       int[] channels)
Attach listener to receive notification/copies of RawSamples containing specified channel values

Parameters:
listener - the observer who wants to receive RawSamples
channels - the channels to listen to

removeSampleListener

void removeSampleListener(IRawSampleListener listener)
Remove listener from our notification list. If the listener is listening to multiple channels, it will be removed from all of them.

Parameters:
listener - the observer to remove

removeAllSampleListeners

void removeAllSampleListeners()
Remove all listeners from our notification list