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

TaskRecord Class Reference

Record in the task queue which contains all important informations about a task. More...

#include <taskrecord.hpp>

Collaboration diagram for TaskRecord:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TaskRecord (int, TimeInterval *, TimeInterval *, TimeInterval *)
 Constructor in which the id of the task, the preparation, execution, finish and offset time plus reaction time and the correct reaction of the task is stored.
 ~TaskRecord ()
 Destructor.
int getId () const
const TimeInterval & getTimestampP () const
const TimeInterval & getTimestampE () const
const TimeInterval & getTimestampF () const

Protected Attributes

int id
 task id
TimeInterval * timestampP
 time interval for preparation time
TimeInterval * timestampE
 time interval for execution time
TimeInterval * timestampF
 time interval for finish time

Detailed Description

Record in the task queue which contains all important informations about a task.

Definition at line 29 of file taskrecord.hpp.


Constructor & Destructor Documentation

TaskRecord::TaskRecord (  int  taskId,
TimeInterval *  tprepare,
TimeInterval *  texecute,
TimeInterval *  tfinish
) 
 

Constructor in which the id of the task, the preparation, execution, finish and offset time plus reaction time and the correct reaction of the task is stored.

Warning:
Do not supply Null pointers. The argument variables will be cleaned up by this class's destructor.
Parameters:
taskId id of the task
tprepare preparation time
texecute execution time
tfinish finish time
Definition at line 31 of file taskrecord.cpp.

References timestampE, timestampF, and timestampP.

TaskRecord::~TaskRecord (   ) 
 

Destructor.

Definition at line 41 of file taskrecord.cpp.

References timestampE, timestampF, and timestampP.


Member Function Documentation

int TaskRecord::getId (   )  const
 

Returns:
id of the task to which the record belongs
Definition at line 50 of file taskrecord.cpp.

Referenced by SimpleReactionHandler::handle().

const TimeInterval & TaskRecord::getTimestampE (   )  const
 

Returns:
time interval of the execution time
Definition at line 57 of file taskrecord.cpp.

References timestampE.

Referenced by SimpleReactionHandler::handle().

const TimeInterval & TaskRecord::getTimestampF (   )  const
 

Returns:
time interval of the finish time
Definition at line 64 of file taskrecord.cpp.

References timestampF.

Referenced by SimpleReactionHandler::handle().

const TimeInterval & TaskRecord::getTimestampP (   )  const
 

Returns:
time interval of the preparation time
Definition at line 71 of file taskrecord.cpp.

References timestampP.

Referenced by SimpleReactionHandler::handle().


Member Data Documentation

int TaskRecord::id [protected]
 

task id

Definition at line 38 of file taskrecord.hpp.

TimeInterval* TaskRecord::timestampE [protected]
 

time interval for execution time

Definition at line 40 of file taskrecord.hpp.

Referenced by getTimestampE(), TaskRecord(), and ~TaskRecord().

TimeInterval* TaskRecord::timestampF [protected]
 

time interval for finish time

Definition at line 41 of file taskrecord.hpp.

Referenced by getTimestampF(), TaskRecord(), and ~TaskRecord().

TimeInterval* TaskRecord::timestampP [protected]
 

time interval for preparation time

Definition at line 39 of file taskrecord.hpp.

Referenced by getTimestampP(), TaskRecord(), and ~TaskRecord().


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