ExternalP300EvidenceAccumulator Class Reference
Inheritance diagram for ExternalP300EvidenceAccumulator:
CoAdaptP300IEvidenceAccumulator

List of all members.

Public Member Functions

virtual void run ()
 ExternalP300EvidenceAccumulator (P300StimulatorPropertyReader *propertyObject, P300SequenceGenerator *l_pSequenceGenerator)
virtual void generateNewSequence ()
virtual std::vector
< OpenViBE::uint32 > * 
getNextFlashGroup ()
virtual
CoAdaptP300SharedMemoryReader
getSharedMemoryReader ()

Detailed Description

The EvidenceAccumulator class is the main loop of the program. Based on stimulated time steps it will go from one state to another (e.g. if the duration of flash is over then it will go to the noflash state). Each time it changes to another state it notifies the main ExternalP300Visualiser class by means of a stimulation id as defined in ova_defines.h


Constructor & Destructor Documentation

ExternalP300EvidenceAccumulator ( P300StimulatorPropertyReader *  propertyObject,
P300SequenceGenerator *  l_pSequenceGenerator 
)

Constructor that will create an ExternalP300SharedMemoryReader object for reading the predictions and probabilities of the letters as computed by the openvibe-designer TODO the EvidenceAccumulator should not handle reading from shared memory, a separate thread should do that and then notify the the EvidenceAccumulator of that event

Parameters:
propertyObjectthe object containing the properties for the EvidenceAccumulator such as flash duration, interflash duration, intertrial...
l_pSequenceGeneratorthe sequence generator that defines which letters are flashed at one single point in time (does that for the whole trial)

Member Function Documentation

virtual void run ( ) [virtual]

The main loop of the program

virtual void generateNewSequence ( ) [inline, virtual]

At the beginning of the the next trial, generate the whole sequence of letters that have to be flashed in the trial

Reimplemented from CoAdaptP300IEvidenceAccumulator.

virtual std::vector<OpenViBE::uint32>* getNextFlashGroup ( ) [inline, virtual]
Returns:
return vector of zeros and ones defining which letters will be flashed next

Reimplemented from CoAdaptP300IEvidenceAccumulator.

virtual CoAdaptP300SharedMemoryReader* getSharedMemoryReader ( ) [inline, virtual]
Returns:
The shared memory reader that is created during construction of the EvidenceAccumulator

Reimplemented from CoAdaptP300IEvidenceAccumulator.