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

ReactionRecord Class Reference

Record for storing all relevant data of a reaction. More...

#include <reactionrecord.hpp>

Collaboration diagram for ReactionRecord:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ReactionRecord (TimeInterval *rtimestamp, vector< bool > *rbuttonStates)
 Constructor.
 ~ReactionRecord ()
 Destructor.
const TimeIntervalgetTimestamp () const
 Get the ime interval in which the reaction has happened .
const vector< bool > & getButtonStates () const
 Get the button states of the reaction.

Protected Attributes

TimeIntervaltimestamp
 time interval in which the reaction has happened
vector< bool > * buttonStates
 button states of reaction

Detailed Description

Record for storing all relevant data of a reaction.

A reaction is a action the user makes. For example a press of a button on the mouse or keyboard. These reaction records are stored in a queue in PtfCore for further processing.

Definition at line 32 of file reactionrecord.hpp.


Constructor & Destructor Documentation

ReactionRecord::ReactionRecord TimeInterval rtimestamp,
vector< bool > *  rbuttonStates
 

Constructor.

Parameters:
rtimestamp time interval in which the reaction has happened
rbuttonStates button states of the reaction
Definition at line 25 of file reactionrecord.cpp.

References buttonStates, and timestamp.

ReactionRecord::~ReactionRecord  ) 
 

Destructor.

Definition at line 33 of file reactionrecord.cpp.

References buttonStates, and timestamp.


Member Function Documentation

const vector< bool > & ReactionRecord::getButtonStates  )  const
 

Get the button states of the reaction.

Returns:
button states of reaction
Definition at line 50 of file reactionrecord.cpp.

References buttonStates.

Referenced by SimpleReactionHandler::handle().

const TimeInterval & ReactionRecord::getTimestamp  )  const
 

Get the ime interval in which the reaction has happened .

Returns:
time interval in which the reaction has happened
Definition at line 42 of file reactionrecord.cpp.

References timestamp.

Referenced by SimpleReactionHandler::handle().


Member Data Documentation

vector<bool>* ReactionRecord::buttonStates [protected]
 

button states of reaction

Definition at line 40 of file reactionrecord.hpp.

Referenced by getButtonStates(), ReactionRecord(), and ~ReactionRecord().

TimeInterval* ReactionRecord::timestamp [protected]
 

time interval in which the reaction has happened

Definition at line 39 of file reactionrecord.hpp.

Referenced by getTimestamp(), ReactionRecord(), and ~ReactionRecord().


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