#include <simplereactionhandler.hpp>
Inheritance diagram for SimpleReactionHandler:
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 |
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.
|
Default constructor. Definition at line 29 of file simplereactionhandler.cpp. References lastRRec. |
|
Destructor. Definition at line 36 of file simplereactionhandler.cpp. |
|
Little helper for converting a bool vector into a string. Definition at line 305 of file simplereactionhandler.cpp. Referenced by handle(). |
|
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: ![]() |
|
last handled reaction record Definition at line 36 of file simplereactionhandler.hpp. Referenced by handle(), and SimpleReactionHandler(). |