C# Class MCAEmotiv.Interop.AbstractEEGDataSource

An abstract base class for data sources
Inheritance: System.SafeDisposable, IEEGDataSource
Afficher le fichier Open project: madelson/Emotiv-Experimenter

Méthodes publiques

Méthode Description
AbstractEEGDataSource ( ) : System

Construct a data source with its own reader thread

AddListener ( IEEGDataListener listener ) : void

Add a listener to the data source

AddListeners ( IEnumerable listeners ) : void

Adds each of the listeners to the data source simultaneously

RemoveListener ( IEEGDataListener listener ) : void

Removes a listener from the data source

RemoveListeners ( IEnumerable listeners ) : void

Removes each of the listeners from the data source simultaneously.

Méthodes protégées

Méthode Description
DisposeHelper ( ) : void

Called from the reader thread in a locked context.

DisposeOfManagedResources ( ) : void

Sends a message to the internal reader thread to halt its execution

TryGetData ( IArrayView &data ) : bool

Called from the reader thread in a locked context.

Private Methods

Méthode Description
ReadLoop ( ) : void

Method Details

AbstractEEGDataSource() public méthode

Construct a data source with its own reader thread
public AbstractEEGDataSource ( ) : System
Résultat System

AddListener() public méthode

Add a listener to the data source
public AddListener ( IEEGDataListener listener ) : void
listener IEEGDataListener
Résultat void

AddListeners() public méthode

Adds each of the listeners to the data source simultaneously
public AddListeners ( IEnumerable listeners ) : void
listeners IEnumerable
Résultat void

DisposeHelper() protected abstract méthode

Called from the reader thread in a locked context.
protected abstract DisposeHelper ( ) : void
Résultat void

DisposeOfManagedResources() protected méthode

Sends a message to the internal reader thread to halt its execution
protected DisposeOfManagedResources ( ) : void
Résultat void

RemoveListener() public méthode

Removes a listener from the data source
public RemoveListener ( IEEGDataListener listener ) : void
listener IEEGDataListener
Résultat void

RemoveListeners() public méthode

Removes each of the listeners from the data source simultaneously.
public RemoveListeners ( IEnumerable listeners ) : void
listeners IEnumerable
Résultat void

TryGetData() protected abstract méthode

Called from the reader thread in a locked context.
protected abstract TryGetData ( IArrayView &data ) : bool
data IArrayView
Résultat bool