|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webkitchen.eeg.acquisition.EEGAcquisitionController
public class EEGAcquisitionController
Controller that starts/stops reading EEG data, and provides access to the
IRawSampleGenerator. Classes wanting to receive EEG data
from a specific channel or channels should register as a listener on the
channel(s) with the IRawSampleGenerator's
addSampleListener method, and implement the
IRawSampleListener interface.
IRawSampleGenerator,
IRawSampleListener,
RawSample| Method Summary | |
|---|---|
IRawSampleGenerator |
getChannelSampleGenerator()
Returns the IRawSampleGenerator that acquires the
raw EEG samples. |
static EEGAcquisitionController |
getInstance()
Returns the single instance of EEGAcquisitionController |
static boolean |
isActive()
Returns true if the control is currently reading, false otherwise |
void |
startReading(boolean debugMode)
Begins the reading of EEG data, and notification of IRawSampleGenerator
listeners. |
void |
stopReading()
Ends the reading of EEG data, and notification of IRawSampleGenerator
listeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EEGAcquisitionController getInstance()
public static boolean isActive()
public void startReading(boolean debugMode)
throws java.io.IOException
IRawSampleGenerator
listeners. Objects that call startReading should always
call stopReading when they are done reading EEG data.
java.io.IOException - if we are unable to connect to the EEG devicepublic void stopReading()
IRawSampleGenerator
listeners
public IRawSampleGenerator getChannelSampleGenerator()
IRawSampleGenerator that acquires the
raw EEG samples. Objects can add themselves as listeners in order
to receive the samples.
startReading(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||