SharpBCI
A multi-threaded brain control interface (BCI) library in C#
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
SharpBCI.EEGDeviceProducer Class Reference

Wraps an EEGDeviceAdapter with a Pipeable and emits EEGDataType.EEG events Should only be used as a producer not consumer. More...

Inheritance diagram for SharpBCI.EEGDeviceProducer:
SharpBCI.Pipeable SharpBCI.IPipeable

Public Member Functions

 EEGDeviceProducer (EEGDeviceAdapter adapter)
 
override void Start (TaskFactory taskFactory, CancellationTokenSource cts)
 Actually start doing work (i.e., promise to eventually start pushing data to connected pipeables) More...
 
override void Stop ()
 Require this IPipeable to stop, blocking until actually stopped. More...
 
- Public Member Functions inherited from SharpBCI.Pipeable
void SetInput (BlockingCollection< object > newInput)
 Set the input on this IPipeable to param input Should only be used internally by Connect. More...
 
void Connect (IPipeable other)
 Connect the input of other to our output Note: mirror == false using this override. More...
 
void Connect (IPipeable other, bool mirror)
 Connect the input of other to our output and allow for control of mirror data. More...
 

Protected Member Functions

override bool Process (object item)
 
- Protected Member Functions inherited from SharpBCI.Pipeable
void Add (object item)
 

Additional Inherited Members

- Public Attributes inherited from SharpBCI.Pipeable
const int DEFAULT_BUFFER_SIZE = 1000
 

Detailed Description

Wraps an EEGDeviceAdapter with a Pipeable and emits EEGDataType.EEG events Should only be used as a producer not consumer.

Constructor & Destructor Documentation

SharpBCI.EEGDeviceProducer.EEGDeviceProducer ( EEGDeviceAdapter  adapter)

Member Function Documentation

override bool SharpBCI.EEGDeviceProducer.Process ( object  item)
protectedvirtual

Implements SharpBCI.Pipeable.

override void SharpBCI.EEGDeviceProducer.Start ( TaskFactory  taskFactory,
CancellationTokenSource  cts 
)
virtual

Actually start doing work (i.e., promise to eventually start pushing data to connected pipeables)

Reimplemented from SharpBCI.Pipeable.

override void SharpBCI.EEGDeviceProducer.Stop ( )
virtual

Require this IPipeable to stop, blocking until actually stopped.

Reimplemented from SharpBCI.Pipeable.


The documentation for this class was generated from the following file: