#include <GTXabsl2EngineExecutor.h>
Inheritance diagram for GTXabsl2EngineExecutor:
Debug interface to the Xabsl2 Dialog | |
enum | Xabsl2DebugMode { executeRootOption, executeOption, executeBasicBehavior } |
The requested debug mode. More... | |
void | sendDebugMessage () |
Sends a debug message to the Xabsl2 dialog depending on the last request. | |
enum GTXabsl2EngineExecutor::Xabsl2DebugMode | debugMode |
The requested debug mode. | |
Xabsl2Array< Xabsl2DecimalInputSymbol * > | watchedDecimalInputSymbols |
The decimal input symbols that are watched by the Xabsl2 Dialog. | |
Xabsl2Array< Xabsl2BooleanInputSymbol * > | watchedBooleanInputSymbols |
The boolean input symbols that are watched by the Xabsl2 Dialog. | |
Xabsl2Array< Xabsl2EnumeratedInputSymbol * > | watchedEnumeratedInputSymbols |
The enumerated input symbols that are watched by the Xabsl2 Dialog. | |
Xabsl2Array< Xabsl2EnumeratedOutputSymbol * > | watchedEnumeratedOutputSymbols |
The enumerated output symbols that are watched by the Xabsl2 Dialog. | |
Xabsl2Array< Xabsl2EnumeratedOutputSymbol * > | setEnumeratedOutputSymbols |
The output symbols that are set from the Xabsl2 Dialog. | |
Xabsl2Array< int > | setEnumeratedOutputSymbolValues |
The values for the set output symbols. | |
Public Member Functions | |
GTXabsl2EngineExecutor (SolutionRequest::xabsl2EngineID id, SolutionRequest::ModuleID module, const unsigned long &frameNumber) | |
Constructor. | |
~GTXabsl2EngineExecutor () | |
destructor | |
void | init (Xabsl2InputSource &input) |
Creates a new engine. | |
void | executeEngine () |
Executes the engine. | |
virtual void | registerSymbolsAndBasicBehaviors ()=0 |
Registers symbols and basic behaviors at the engine. | |
void | setSelectedAgent (const char *name) |
Sets the selected Agent. | |
virtual bool | handleMessage (InMessage &message) |
Is called for every incoming debug message. | |
Protected Member Functions | |
virtual void | executeIfEngineCouldNotBeCreated ()=0 |
Is called if the engine could not be created. | |
virtual void | printGeneratedMainActionToString (char *buf)=0 |
Prints the main action that was generated by the execution of the engine to a string. | |
Protected Attributes | |
Xabsl2Engine * | pEngine |
An engine that executes the XML formalized behaviors. | |
GTXabsl2ErrorHandler | errorHandler |
Is invoked when errors occur. | |
GTXabsl2Profiler | profiler |
The profiler. | |
Private Types | |
Private Attributes | |
SolutionRequest::xabsl2EngineID | id |
The id of the Xabsl2Engine derivate. | |
SolutionRequest::ModuleID | module |
The id of the module (not the solution) that embeds the engine. |
Definition at line 122 of file GTXabsl2EngineExecutor.h.
|
The requested debug mode.
Definition at line 196 of file GTXabsl2EngineExecutor.h. |
|
Constructor.
Definition at line 14 of file GTXabsl2EngineExecutor.cpp. |
|
destructor
Definition at line 22 of file GTXabsl2EngineExecutor.cpp. References pEngine. |
|
Here is the call graph for this function:
|
Executes the engine.
Definition at line 61 of file GTXabsl2EngineExecutor.cpp. References ASSERT, debugMode, GTXabsl2Profiler::doProfiling(), errorHandler, Xabsl2ErrorHandler::errorsOccurred, Xabsl2Engine::execute(), executeBasicBehavior, executeIfEngineCouldNotBeCreated(), executeOption, executeRootOption, Xabsl2Engine::executeSelectedBasicBehavior(), getDebugKeyTable(), Xabsl2Array< Xabsl2EnumeratedOutputSymbol * >::getSize(), DebugKeyTable::isActive(), module, pEngine, profiler, GTXabsl2Profiler::profilerCollectMode, GTXabsl2Profiler::profilerWriteMode, GTXabsl2Profiler::recordCollectedLogs(), GTXabsl2Profiler::recordCompleteLog(), sendDebugMessage(), setEnumeratedOutputSymbols, setEnumeratedOutputSymbolValues, Xabsl2Symbols::setOutputSymbols(), Xabsl2Engine::setRootOption(), and GTXabsl2Profiler::size(). Referenced by GT2004HeadControl::execute(), and GT2004BehaviorControl::execute(). |
Here is the call graph for this function:
|
Registers symbols and basic behaviors at the engine.
Implemented in GT2004BehaviorControl, and GT2004HeadControl. Referenced by init(). |
|
Sets the selected Agent. If the last selected agent was different from the new one, the root option is changed depending on the new agent.
Definition at line 407 of file GTXabsl2EngineExecutor.cpp. References pEngine, and Xabsl2Engine::setSelectedAgent(). |
Here is the call graph for this function:
|
Is called for every incoming debug message.
Reimplemented in GT2004BehaviorControl, Xabsl2BehaviorControl, GT2004HeadControl, and Xabsl2HeadControl. Definition at line 251 of file GTXabsl2EngineExecutor.cpp. References Xabsl2Array< int >::append(), Xabsl2Array< Xabsl2EnumeratedOutputSymbol * >::append(), Xabsl2Array< Xabsl2EnumeratedInputSymbol * >::append(), Xabsl2Array< Xabsl2BooleanInputSymbol * >::append(), Xabsl2Array< Xabsl2DecimalInputSymbol * >::append(), InMessage::bin, Xabsl2Array< int >::clear(), Xabsl2Array< Xabsl2EnumeratedOutputSymbol * >::clear(), Xabsl2Array< Xabsl2EnumeratedInputSymbol * >::clear(), Xabsl2Array< Xabsl2BooleanInputSymbol * >::clear(), Xabsl2Array< Xabsl2DecimalInputSymbol * >::clear(), InMessage::config, debugMode, Xabsl2EnumeratedOutputSymbol::enumElements, executeBasicBehavior, executeOption, executeRootOption, Xabsl2Array< Xabsl2EnumElement * >::exists(), Xabsl2Symbols::existsBooleanInputSymbol(), Xabsl2Symbols::existsDecimalInputSymbol(), Xabsl2Symbols::existsEnumeratedInputSymbol(), Xabsl2Symbols::existsEnumeratedOutputSymbol(), Xabsl2Symbols::getBooleanInputSymbol(), Xabsl2Symbols::getDecimalInputSymbol(), Xabsl2Array< Xabsl2EnumElement * >::getElement(), Xabsl2Symbols::getEnumeratedInputSymbol(), Xabsl2Symbols::getEnumeratedOutputSymbol(), InMessage::getMessageID(), idText, idXabsl2DebugRequest, idXabsl2IntermediateCode, init(), OUTPUT, pEngine, Xabsl2Engine::setBasicBehaviorParameter(), setEnumeratedOutputSymbols, setEnumeratedOutputSymbolValues, Xabsl2Engine::setOptionParameter(), Xabsl2Engine::setRootOption(), Xabsl2Engine::setSelectedBasicBehavior(), Xabsl2EnumElement::v, watchedBooleanInputSymbols, watchedDecimalInputSymbols, watchedEnumeratedInputSymbols, and watchedEnumeratedOutputSymbols. Referenced by Xabsl2HeadControl::handleMessage(), and Xabsl2BehaviorControl::handleMessage(). |
Here is the call graph for this function:
|
Is called if the engine could not be created.
Implemented in Xabsl2BehaviorControl, and Xabsl2HeadControl. Referenced by executeEngine(). |
|
Prints the main action that was generated by the execution of the engine to a string.
Implemented in Xabsl2BehaviorControl, and Xabsl2HeadControl. Referenced by sendDebugMessage(). |
|
Sends a debug message to the Xabsl2 dialog depending on the last request.
Definition at line 124 of file GTXabsl2EngineExecutor.cpp. References Xabsl2Option::activeState, Xabsl2EnumeratedOutputSymbol::activeValue, OutMessage::bin, debugMode, Xabsl2EnumeratedOutputSymbol::enumElements, Xabsl2EnumeratedInputSymbol::enumElements, executeOption, executeRootOption, OutMessage::finishMessage(), getDebugOut(), Xabsl2Array< double & >::getName(), Xabsl2Array< double >::getName(), Xabsl2Engine::getRootOption(), Xabsl2Engine::getSelectedAgentName(), Xabsl2Engine::getSelectedBasicBehavior(), Xabsl2Array< double & >::getSize(), Xabsl2Array< double >::getSize(), Xabsl2Array< Xabsl2EnumeratedOutputSymbol * >::getSize(), Xabsl2Array< Xabsl2EnumElement * >::getSize(), Xabsl2Array< Xabsl2EnumeratedInputSymbol * >::getSize(), Xabsl2Array< Xabsl2BooleanInputSymbol * >::getSize(), Xabsl2Array< Xabsl2DecimalInputSymbol * >::getSize(), Xabsl2InputSymbol< int >::getValue(), idXabsl2DebugMessage, Xabsl2NamedItem::n, Xabsl2BasicBehavior::parameters, Xabsl2Option::parameters, pEngine, printGeneratedMainActionToString(), Xabsl2State::subsequentOption, Xabsl2Option::timeOfOptionExecution, Xabsl2State::timeOfStateExecution, watchedBooleanInputSymbols, watchedDecimalInputSymbols, watchedEnumeratedInputSymbols, and watchedEnumeratedOutputSymbols. Referenced by executeEngine(). |
Here is the call graph for this function:
|
An engine that executes the XML formalized behaviors.
Definition at line 167 of file GTXabsl2EngineExecutor.h. Referenced by executeEngine(), handleMessage(), init(), sendDebugMessage(), setSelectedAgent(), and ~GTXabsl2EngineExecutor(). |
|
Is invoked when errors occur.
Definition at line 170 of file GTXabsl2EngineExecutor.h. Referenced by executeEngine(), and init(). |
|
The profiler.
Definition at line 182 of file GTXabsl2EngineExecutor.h. Referenced by executeEngine(), and init(). |
|
The id of the Xabsl2Engine derivate.
Definition at line 187 of file GTXabsl2EngineExecutor.h. |
|
The id of the module (not the solution) that embeds the engine.
Definition at line 190 of file GTXabsl2EngineExecutor.h. Referenced by executeEngine(). |
|
The requested debug mode.
Referenced by executeEngine(), handleMessage(), init(), and sendDebugMessage(). |
|
The decimal input symbols that are watched by the Xabsl2 Dialog.
Definition at line 202 of file GTXabsl2EngineExecutor.h. Referenced by handleMessage(), init(), and sendDebugMessage(). |
|
The boolean input symbols that are watched by the Xabsl2 Dialog.
Definition at line 205 of file GTXabsl2EngineExecutor.h. Referenced by handleMessage(), init(), and sendDebugMessage(). |
|
The enumerated input symbols that are watched by the Xabsl2 Dialog.
Definition at line 208 of file GTXabsl2EngineExecutor.h. Referenced by handleMessage(), init(), and sendDebugMessage(). |
|
The enumerated output symbols that are watched by the Xabsl2 Dialog.
Definition at line 211 of file GTXabsl2EngineExecutor.h. Referenced by handleMessage(), init(), and sendDebugMessage(). |
|
The output symbols that are set from the Xabsl2 Dialog.
Definition at line 214 of file GTXabsl2EngineExecutor.h. Referenced by executeEngine(), handleMessage(), and init(). |
|
The values for the set output symbols.
Definition at line 217 of file GTXabsl2EngineExecutor.h. Referenced by executeEngine(), handleMessage(), and init(). |