#include <Process.h>
Inheritance diagram for Process:
Public Member Functions | |
Process (MessageQueue &debugIn, MessageQueue &debugOut) | |
Constructor. | |
int | processMain () |
The main function is called from the process framework once in each frame. | |
virtual int | main ()=0 |
The main funtion is called once in each frame. | |
virtual void | init () |
That function is called once before the first main(). | |
virtual bool | handleMessage (InMessage &message) |
Is called for every incoming debug message. | |
Protected Attributes | |
ModuleHandler | moduleHandler |
A module handler for managing runtime exchangeable modules. | |
DebugKeyTable | debugKeyTable |
A table of debug keys for runtime debug requests. | |
MessageQueue & | debugIn |
A queue for incoming debug messages. | |
MessageQueue & | debugOut |
A queue for outgoing debug messages. | |
Private Attributes | |
bool | initialized |
Determines if the process is already initialized. |
Process is the common base for processes in the GT2002 Project. The embedding into the system environment is done by system dependent frameworks that use derivates of the Process class.
Definition at line 24 of file Process.h.
|
Constructor.
Definition at line 13 of file Process.cpp. References debugKeyTable, debugOut, getPlayer(), getRobotConfiguration(), initDebugging(), initialized, RobotConfiguration::load(), and Player::load(). |
Here is the call graph for this function:
|
The main function is called from the process framework once in each frame. It does the debug handling and calls the main function in the derivates.
Definition at line 26 of file Process.cpp. References DebugKeyTable::activate(), MessageQueue::clear(), debugIn, debugKeyTable, debugOut, getPlayer(), MessageQueue::handleAllMessages(), init(), initialized, main(), and MessageQueue::setPlayerForNewMessages(). |
Here is the call graph for this function:
|
The main funtion is called once in each frame. It must be implemented.
Implemented in Cognition, Debug, Logger, and Motion. Referenced by processMain(). |
|
That function is called once before the first main(). It can be used for things that can't be done in the constructor. Reimplemented in Cognition, Debug, and Logger. Definition at line 59 of file Process.h. Referenced by processMain(). |
|
Is called for every incoming debug message.
Implements MessageHandler. Reimplemented in Cognition, Debug, Logger, and Motion. Definition at line 46 of file Process.cpp. References InMessage::bin, debugKeyTable, InMessage::getMessageID(), ModuleHandler::handleMessage(), idDebugKeyTable, idSolutionRequest, idText, moduleHandler, OUTPUT, and ModuleHandler::selectSolutions(). Referenced by Motion::handleMessage(), Logger::handleMessage(), Debug::handleMessage(), and Cognition::handleMessage(). |
Here is the call graph for this function:
|
Determines if the process is already initialized. Becomes true short before the first call of main() Definition at line 73 of file Process.h. Referenced by Process(), and processMain(). |
|
A module handler for managing runtime exchangeable modules.
Definition at line 78 of file Process.h. Referenced by handleMessage(). |
|
A table of debug keys for runtime debug requests.
Definition at line 81 of file Process.h. Referenced by handleMessage(), Process(), and processMain(). |
|
A queue for incoming debug messages.
Definition at line 84 of file Process.h. Referenced by processMain(). |
|
A queue for outgoing debug messages.
Definition at line 87 of file Process.h. Referenced by Cognition::Cognition(), Debug::Debug(), Cognition::handleMessage(), Logger::Logger(), Logger::main(), Debug::main(), Motion::Motion(), and processMain(). |