#include <ptfcore.hpp>
Inheritance diagram for PtfCore:
Public Member Functions | |
PtfCore (int, char **) | |
Constructor. | |
~PtfCore () | |
Destructor. | |
void | run () |
Runs the test. | |
void | setScheduler (Scheduler *) |
Sets the task scheduler. | |
void | setReactionHandler (ReactionHandler *) |
Sets the task reaction handler. | |
void | setSequenceIterator (SequenceIterator *) |
Sets the sequence iterator. | |
Scheduler & | getScheduler () |
Gets the sequence iterator. | |
ReactionHandler & | getReactionHandler () |
Gets the reaction handler. | |
SequenceIterator & | getSequenceIterator () |
Gets the sequence iterator. | |
vector< Sequence * > & | getSequences () |
Gets the vector storing the sequences. | |
vector< ReactionRecord * > & | getReactionRecords () |
Gets the vector storing the reaction records. | |
vector< TaskRecord * > & | getTaskRecords () |
Gets the vector storing the task records. | |
vector< InputDevice * > & | getInputDevices () |
Gets the vector storing the input devices. | |
Mutex & | getReactionRecordsMutex () |
Gets the mutex for syncronizing access to the reaction record vector. | |
Mutex & | getTaskRecordsMutex () |
Gets the mutex for syncronizing access to the task record vector. | |
void | taskRegistrationHelper (Task *) |
Adds a task to the task vector. | |
const vector< Task * > & | getTasks () const |
Gets the vector storing the tasks. | |
Log & | getMessageLog () |
Gets the message log object. | |
Log & | getHandlerLog () |
Gets the handler log object. | |
Log & | getTaskLog () |
Gets the task log object. | |
Log & | getEventLog () |
Gets the event log object. | |
Log & | getMachineLog () |
Gets the machine log object. | |
Protected Attributes | |
Scheduler * | scheduler |
task scheduler | |
ReactionHandler * | handler |
reaction handler | |
SequenceIterator * | iterator |
sequence iterator | |
vector< Sequence * > | sequences |
vector with all used sequences | |
vector< ReactionRecord * > | reactionRecords |
queue with reaction records | |
vector< TaskRecord * > | taskRecords |
queue with task records | |
vector< Task * > | tasks |
vector storing all tasks | |
vector< InputDevice * > | inputDevices |
vector storing all used input devices | |
Mutex | reactionRecordsMutex |
mutex for reaction record queue | |
Mutex | taskRecordsMutex |
mutex for task record queue | |
Log | messageLog |
message log | |
Log | handlerLog |
reaction handler log | |
Log | taskLog |
task log | |
Log | eventLog |
event log | |
Log | machineLog |
machine readable log |
Definition at line 39 of file ptfcore.hpp.
|
Constructor. Definition at line 29 of file ptfcore.cpp. References Graphic::createWindow(), ERROR, Singleton< Graphic >::getSingleton(), handler, iterator, MESSAGE, messageLog, and scheduler. Here is the call graph for this function: ![]() |
|
Destructor. Definition at line 72 of file ptfcore.cpp. References Singleton< Parallel >::getSingletonPtr(), Singleton< Clock >::getSingletonPtr(), Singleton< Audio >::getSingletonPtr(), and Singleton< Graphic >::getSingletonPtr(). Here is the call graph for this function: ![]() |
|
Gets the event log object.
References eventLog. Referenced by InputDevice::run(). |
|
Gets the handler log object.
References handlerLog. Referenced by SimpleReactionHandler::handle(). |
|
Gets the vector storing the input devices.
References inputDevices. |
|
Gets the machine log object.
References machineLog. Referenced by SimpleReactionHandler::handle(). |
|
Gets the message log object.
References messageLog. Referenced by Audio::addSample(), Graphic::addTexture(), Audio::Audio(), Clock::Clock(), Graphic::createWindow(), Graphic::drawTexturedRectangle(), Clock::getClock(), DefaultSequenceIterator::getNextTaskId(), JoystickInputDevice::JoystickInputDevice(), Sequence::loadFromFile(), Audio::playSample(), Scheduler::quit(), and Scheduler::schedule(). |
|
Gets the reaction handler. A pointer is returned here because the system has to run even with no reaction handler specified.
References handler. Referenced by Scheduler::schedule(). |
|
Gets the vector storing the reaction records.
References reactionRecords. Referenced by SimpleReactionHandler::handle(), SimulatedInputDevice::run(), and InputDevice::run(). |
|
Gets the mutex for syncronizing access to the reaction record vector.
References reactionRecordsMutex. Referenced by SimpleReactionHandler::handle(), SimulatedInputDevice::run(), and InputDevice::run(). |
|
Gets the sequence iterator.
References scheduler. Referenced by MouseInputDevice::poll(), KeyboardInputDevice::poll(), and JoystickInputDevice::poll(). |
|
Gets the sequence iterator.
References iterator. Referenced by Scheduler::schedule(). |
|
Gets the vector storing the sequences.
References sequences. Referenced by DefaultSequenceIterator::getNextTaskId(), and DefaultSequenceIterator::hasNextTaskId(). |
|
Gets the task log object.
References taskLog. Referenced by Scheduler::schedule(). |
|
Gets the vector storing the task records.
References taskRecords. Referenced by SimpleReactionHandler::handle(), and Scheduler::schedule(). |
|
Gets the mutex for syncronizing access to the task record vector.
References taskRecordsMutex. Referenced by Scheduler::schedule(). |
|
Gets the vector storing the tasks.
References tasks. Referenced by SimpleReactionHandler::handle(), and Scheduler::schedule(). |
|
Runs the test. Definition at line 88 of file ptfcore.cpp. References ERROR, eventLog, handler, handlerLog, inputDevices, iterator, machineLog, messageLog, Log::saveToFile(), Scheduler::schedule(), scheduler, Log::setSilent(), taskLog, and WARNING. Here is the call graph for this function: ![]() |
|
Sets the task reaction handler.
References handler. |
|
Sets the task scheduler.
References scheduler. |
|
Sets the sequence iterator.
References iterator. |
|
Adds a task to the task vector.
References Task::getId(), and tasks. Here is the call graph for this function: ![]() |
|
event log Definition at line 77 of file ptfcore.hpp. Referenced by getEventLog(), and run(). |
|
reaction handler Definition at line 65 of file ptfcore.hpp. Referenced by getReactionHandler(), PtfCore(), run(), and setReactionHandler(). |
|
reaction handler log Definition at line 75 of file ptfcore.hpp. Referenced by getHandlerLog(), and run(). |
|
vector storing all used input devices Definition at line 71 of file ptfcore.hpp. Referenced by getInputDevices(), and run(). |
|
sequence iterator Definition at line 66 of file ptfcore.hpp. Referenced by getSequenceIterator(), PtfCore(), run(), and setSequenceIterator(). |
|
machine readable log Definition at line 78 of file ptfcore.hpp. Referenced by getMachineLog(), and run(). |
|
message log Definition at line 74 of file ptfcore.hpp. Referenced by getMessageLog(), PtfCore(), and run(). |
|
queue with reaction records Definition at line 68 of file ptfcore.hpp. Referenced by getReactionRecords(). |
|
mutex for reaction record queue Definition at line 72 of file ptfcore.hpp. Referenced by getReactionRecordsMutex(). |
|
task scheduler Definition at line 64 of file ptfcore.hpp. Referenced by getScheduler(), PtfCore(), run(), and setScheduler(). |
|
vector with all used sequences Definition at line 67 of file ptfcore.hpp. Referenced by getSequences(). |
|
task log Definition at line 76 of file ptfcore.hpp. Referenced by getTaskLog(), and run(). |
|
queue with task records Definition at line 69 of file ptfcore.hpp. Referenced by getTaskRecords(). |
|
mutex for task record queue Definition at line 73 of file ptfcore.hpp. Referenced by getTaskRecordsMutex(). |
|
vector storing all tasks Definition at line 70 of file ptfcore.hpp. Referenced by getTasks(), and taskRegistrationHelper(). |