Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

SimpleReactionHandler Class Reference

Class which checks whether the reaction is correct or not. More...

#include <simplereactionhandler.hpp>

Inheritance diagram for SimpleReactionHandler:

Inheritance graph
[legend]
Collaboration diagram for SimpleReactionHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SimpleReactionHandler ()
 Default constructor.
virtual ~SimpleReactionHandler ()
 Destructor.
virtual void handle ()
 Checks if the reaction was correct and writes the result into the logs.

Protected Member Functions

string boolVectorToString (const vector< bool > &)
 Little helper for converting a bool vector into a string.

Protected Attributes

int lastRRec
 last handled reaction record

Detailed Description

Class which checks whether the reaction is correct or not.

This class implements a simple handler. It checks if a reaction is in a task's reaction window.

Definition at line 34 of file simplereactionhandler.hpp.


Constructor & Destructor Documentation

SimpleReactionHandler::SimpleReactionHandler  ) 
 

Default constructor.

Definition at line 29 of file simplereactionhandler.cpp.

References lastRRec.

SimpleReactionHandler::~SimpleReactionHandler  )  [virtual]
 

Destructor.

Definition at line 36 of file simplereactionhandler.cpp.


Member Function Documentation

string SimpleReactionHandler::boolVectorToString const vector< bool > &  in  )  [protected]
 

Little helper for converting a bool vector into a string.

Definition at line 305 of file simplereactionhandler.cpp.

Referenced by handle().

void SimpleReactionHandler::handle  )  [virtual]
 

Checks if the reaction was correct and writes the result into the logs.

Reimplemented from ReactionHandler.

Definition at line 43 of file simplereactionhandler.cpp.

References TimeInterval::addTimespecs(), boolVectorToString(), TimeInterval::compareTimespecs(), ReactionRecord::getButtonStates(), PtfCore::getHandlerLog(), TaskRecord::getId(), TimeInterval::getInterval(), PtfCore::getMachineLog(), PtfCore::getReactionRecords(), PtfCore::getReactionRecordsMutex(), Singleton< PtfCore >::getSingleton(), PtfCore::getTaskRecords(), PtfCore::getTasks(), ReactionRecord::getTimestamp(), TaskRecord::getTimestampE(), TaskRecord::getTimestampF(), TaskRecord::getTimestampP(), lastRRec, TimeInterval::subTimespecs(), and TimeInterval::toString().

Here is the call graph for this function:


Member Data Documentation

int SimpleReactionHandler::lastRRec [protected]
 

last handled reaction record

Definition at line 36 of file simplereactionhandler.hpp.

Referenced by handle(), and SimpleReactionHandler().


The documentation for this class was generated from the following files:
Generated on Fri Dec 17 14:54:31 2004 for Psychological Test Framework by doxygen 1.3.8