Emotiv Experimenter 1.0
An EEG experimentation application for the Emotiv headset
Public Member Functions | Protected Member Functions

MCAEmotiv.Interop.EEGDataListener Class Reference

Consumes EEG data using actions which are invoked using an ISynchronizeInvoke. Null actions are ignored. More...

Inheritance diagram for MCAEmotiv.Interop.EEGDataListener:
System.SafeDisposable MCAEmotiv.Interop.IEEGDataListener

List of all members.

Public Member Functions

 EEGDataListener (ISynchronizeInvoke invoker, Action< IEEGDataSource > onSourceConnected, Action< IArrayView< EEGDataEntry >> onListen, Action< IEEGDataSource > onSourceDisconnected, Action onDispose=null)
 Create a listener whose behavior is defined by the given actions. Any action may be null.
void Listen (IArrayView< EEGDataEntry > data)
 Invokes the listen action.
void SourceConnected (IEEGDataSource source)
 Invokes the connected action.
void SourceDisconnected (IEEGDataSource source)
 Invokes the disconnected action.

Protected Member Functions

override void DisposeOfManagedResources ()
 Removes the listener from its data source, and invokes the dispose action.

Detailed Description

Consumes EEG data using actions which are invoked using an ISynchronizeInvoke. Null actions are ignored.


Constructor & Destructor Documentation

MCAEmotiv.Interop.EEGDataListener.EEGDataListener ( ISynchronizeInvoke  invoker,
Action< IEEGDataSource onSourceConnected,
Action< IArrayView< EEGDataEntry >>  onListen,
Action< IEEGDataSource onSourceDisconnected,
Action  onDispose = null 
)

Create a listener whose behavior is defined by the given actions. Any action may be null.


Member Function Documentation

override void MCAEmotiv.Interop.EEGDataListener.DisposeOfManagedResources ( ) [protected, virtual]

Removes the listener from its data source, and invokes the dispose action.

Implements System.SafeDisposable.

void MCAEmotiv.Interop.EEGDataListener.Listen ( IArrayView< EEGDataEntry data)

Invokes the listen action.

Implements MCAEmotiv.Interop.IEEGDataListener.

void MCAEmotiv.Interop.EEGDataListener.SourceConnected ( IEEGDataSource  source)

Invokes the connected action.

Implements MCAEmotiv.Interop.IEEGDataListener.

void MCAEmotiv.Interop.EEGDataListener.SourceDisconnected ( IEEGDataSource  source)

Invokes the disconnected action.

Implements MCAEmotiv.Interop.IEEGDataListener.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties Events