#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. | |
Static Public Member Functions | |
| unsigned long | getFrameNumber () |
| The function returns the current frame number. | |
Protected Attributes | |
| ModuleHandler | moduleHandler |
| A module handler for managing runtime exchangeable modules. | |
| DebugDataTable | debugDataTable |
| A datastructure for generic streaming of data. | |
| unsigned long | frameNumber |
| process wide framenumber | |
| MessageQueue & | debugIn |
| A queue for incoming debug messages. | |
| MessageQueue & | debugOut |
| A queue for outgoing debug messages. | |
| unsigned int | frameCounter |
| RunTime. | |
| double | averageRunTime |
| RunTime. | |
| unsigned long | maxRunTime |
| RunTime. | |
| unsigned long | minRunTime |
| RunTime. | |
Private Attributes | |
| bool | initialized |
| Determines if the process is already initialized. | |
| RobotConfiguration | robotConfiguration |
| The configuration of this robot. | |
| Player | player |
| The player configuration of this robot. | |
| DebugKeyTable | debugKeyTable |
| A table of debug keys for runtime debug requests. | |
| DebugRequestTable | debugRequestTable |
| A table wiith the debug requests. | |
| StreamHandler | streamHandler |
| A datastructure holding information about the streaming of datatypes. | |
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 38 of file Process.h.
|
||||||||||||
|
Constructor.
Definition at line 13 of file Process.cpp. References debugDataTable, debugKeyTable, debugOut, debugRequestTable, getRobotConfiguration(), initDebugDataTable(), initDebugging(), initialized, initStreamHandler(), RobotConfiguration::load(), Player::load(), player, processFrameNumberPtr, robotConfiguration, setPlayer(), setRobotConfiguration(), and streamHandler. |
Here is the call graph for this function:

|
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, 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 Motion. Definition at line 77 of file Process.h. Referenced by processMain(). |
|
|
Is called for every incoming debug message.
Implements MessageHandler. Reimplemented in Cognition, Debug, and Motion. Definition at line 120 of file Process.cpp. References DebugRequestTable::addRequest(), InMessage::bin, debugKeyTable, debugRequestTable, InMessage::getMessageID(), ModuleHandler::handleMessage(), idDebugKeyTable, idDebugRequest, idSolutionRequest, idText, moduleHandler, OUTPUT, and ModuleHandler::selectSolutions(). Referenced by Motion::handleMessage(), Debug::handleMessage(), and Cognition::handleMessage(). |
Here is the call graph for this function:

|
|
The function returns the current frame number.
Definition at line 155 of file Process.cpp. References processFrameNumberPtr. |
|
|
Determines if the process is already initialized. Becomes true short before the first call of main() Definition at line 97 of file Process.h. Referenced by Process(), and processMain(). |
|
|
The configuration of this robot.
Definition at line 102 of file Process.h. Referenced by Process(), and processMain(). |
|
|
The player configuration of this robot.
Definition at line 107 of file Process.h. Referenced by Process(), and processMain(). |
|
|
A table of debug keys for runtime debug requests.
Definition at line 110 of file Process.h. Referenced by handleMessage(), Process(), and processMain(). |
|
|
A table wiith the debug requests.
Definition at line 113 of file Process.h. Referenced by handleMessage(), Process(), and processMain(). |
|
|
A datastructure holding information about the streaming of datatypes.
Definition at line 116 of file Process.h. Referenced by Process(), and processMain(). |
|
|
A module handler for managing runtime exchangeable modules.
Definition at line 125 of file Process.h. Referenced by handleMessage(), and processMain(). |
|
|
A datastructure for generic streaming of data.
Definition at line 128 of file Process.h. Referenced by Motion::handleMessage(), Cognition::handleMessage(), Process(), and processMain(). |
|
|
process wide framenumber
|
|
|
A queue for incoming debug messages.
Definition at line 134 of file Process.h. Referenced by processMain(). |
|
|
A queue for outgoing debug messages.
Definition at line 137 of file Process.h. Referenced by Cognition::Cognition(), Debug::Debug(), Debug::handleMessage(), Cognition::handleMessage(), Motion::Motion(), and processMain(). |
|
|
RunTime.
|
|
|
RunTime.
|
|
|
RunTime.
|
|
|
RunTime.
|
1.3.6