#include <Xabsl2Option.h>
Inheritance diagram for Xabsl2State:
Public Member Functions | |
Xabsl2State (const char *name, Xabsl2ErrorHandler &errorHandler, unsigned long(*pTimeFunction)()) | |
Constructor. | |
~Xabsl2State () | |
Destructor. | |
void | create (Xabsl2InputSource &input, Xabsl2Array< Xabsl2Option * > &options, Xabsl2Array< Xabsl2BasicBehavior & > &basicBehaviors, Xabsl2Array< Xabsl2State * > &states, Xabsl2Array< double > ¶meters, Xabsl2Symbols &symbols, unsigned long &timeOfOptionExecution) |
Creates the state and it's subelements from the intermediate code. | |
Xabsl2State * | getNextState () |
Executes the decision tree and determines the next active state (can be the same). | |
void | setOutputSymbols () |
Sets the output symbols of the state. | |
void | reset () |
Sets the time when the state was activated to 0. | |
bool | isTargetState () const |
Returns wheter the state is a target state. | |
Public Attributes | |
Xabsl2Option * | subsequentOption |
The option that is executed after that option if the state is active. | |
Xabsl2BasicBehavior * | subsequentBasicBehavior |
The basic behavior that is executed after that option if the state is active. | |
unsigned long | timeOfStateExecution |
the time how long the state is already active | |
Xabsl2Array< double * > | parametersOfSubsequentBehavior |
Pointers to the parameters of a subsequent basic behavior or a subsequent option. | |
Xabsl2Array< Xabsl2DecimalExpression * > | parameterValues |
Decimal expressions for the parameters of a subsequent basic behavior or a subsequent option. | |
Private Attributes | |
unsigned long | timeWhenStateWasActivated |
The time, when the state was activated. | |
bool | targetState |
If true, the state is a target state. | |
Xabsl2ErrorHandler & | errorHandler |
Used for error handling. | |
Xabsl2Statement * | decisionTree |
The root element of the decision tree. | |
Xabsl2Array< Xabsl2EnumeratedOutputSymbol * > | outputSymbols |
The output symbols that are set if the state is active. | |
Xabsl2Array< int > | outputSymbolValues |
The for the output symbols that are set if the state is active. | |
unsigned long(* | pTimeFunction )() |
A pointer to a function that returns the system time in ms. |
Definition at line 149 of file Xabsl2Option.h.
|
Constructor. Does not create the state.
Definition at line 151 of file Xabsl2Option.cpp. |
|
Destructor.
Definition at line 158 of file Xabsl2Option.cpp. References decisionTree, and Xabsl2Array< Xabsl2DecimalExpression * >::getSize(). |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Executes the decision tree and determines the next active state (can be the same).
Definition at line 272 of file Xabsl2Option.cpp. References decisionTree, Xabsl2Statement::getNextState(), pTimeFunction, timeOfStateExecution, and timeWhenStateWasActivated. Referenced by Xabsl2Option::execute(). |
Here is the call graph for this function:
|
Sets the output symbols of the state.
Definition at line 281 of file Xabsl2Option.cpp. References Xabsl2Array< Xabsl2EnumeratedOutputSymbol * >::getSize(), Xabsl2Array< double * >::getSize(), Xabsl2Array< double >::getSize(), Xabsl2Array< double & >::getSize(), outputSymbols, outputSymbolValues, Xabsl2Option::parameters, Xabsl2BasicBehavior::parameters, parametersOfSubsequentBehavior, Xabsl2Array< double >::setElement(), and subsequentBasicBehavior. Referenced by Xabsl2Option::execute(). |
Here is the call graph for this function:
|
Sets the time when the state was activated to 0.
Definition at line 314 of file Xabsl2Option.cpp. References pTimeFunction, timeOfStateExecution, and timeWhenStateWasActivated. Referenced by Xabsl2Option::execute(). |
|
Returns wheter the state is a target state.
Definition at line 320 of file Xabsl2Option.cpp. References targetState. Referenced by Xabsl2Option::getOptionReachedATargetState(). |
|
The option that is executed after that option if the state is active. If 0, a basic behavior is executed after that option. Definition at line 196 of file Xabsl2Option.h. Referenced by GTXabsl2Profiler::doProfiling(), Xabsl2Engine::execute(), and GTXabsl2EngineExecutor::sendDebugMessage(). |
|
The basic behavior that is executed after that option if the state is active. If 0, an option is executed after that option. Definition at line 202 of file Xabsl2Option.h. Referenced by create(), Xabsl2Engine::execute(), and setOutputSymbols(). |
|
the time how long the state is already active
Definition at line 205 of file Xabsl2Option.h. Referenced by create(), getNextState(), reset(), and GTXabsl2EngineExecutor::sendDebugMessage(). |
|
Pointers to the parameters of a subsequent basic behavior or a subsequent option.
Definition at line 211 of file Xabsl2Option.h. Referenced by create(), and setOutputSymbols(). |
|
Decimal expressions for the parameters of a subsequent basic behavior or a subsequent option.
Definition at line 214 of file Xabsl2Option.h. |
|
The time, when the state was activated.
Definition at line 222 of file Xabsl2Option.h. Referenced by getNextState(), and reset(). |
|
If true, the state is a target state.
Definition at line 225 of file Xabsl2Option.h. Referenced by create(), and isTargetState(). |
|
Used for error handling.
Definition at line 228 of file Xabsl2Option.h. |
|
The root element of the decision tree.
Definition at line 231 of file Xabsl2Option.h. Referenced by create(), getNextState(), and ~Xabsl2State(). |
|
The output symbols that are set if the state is active.
Definition at line 234 of file Xabsl2Option.h. Referenced by create(), and setOutputSymbols(). |
|
The for the output symbols that are set if the state is active.
Definition at line 237 of file Xabsl2Option.h. Referenced by create(), and setOutputSymbols(). |
|
A pointer to a function that returns the system time in ms.
Referenced by getNextState(), and reset(). |