xabsl::Option Class Reference#include <XabslOption.h>
Inheritance diagram for xabsl::Option:
[legend]Collaboration diagram for xabsl::Option:
[legend]List of all members.
Detailed Description
Represents a single option written in.
- Author:
- Martin Loetzsch
Max Risler
Definition at line 53 of file XabslOption.h.
|
Public Member Functions |
| Option (const char *name, InputSource &input, ErrorHandler &errorHandler, Symbols &symbols, const unsigned &time, int index) |
| Constructor.
|
| ~Option () |
| Destructor.
|
void | create (InputSource &input, NamedArray< Option * > &options, NamedArray< BasicBehavior * > &basicBehaviors, Symbols &symbols, const int &agentPriority, const int &synchronizationTicks) |
| Creates the option and it's states from the intermediate code.
|
virtual void | execute () |
| Executes the option.
|
bool | getOptionReachedATargetState () const |
| Returns wheter the option reached a target state.
|
Public Attributes |
NamedArray< State * > | states |
| The states of the option.
|
State * | activeState |
| A pointer to the active state.
|
int | index |
| Index of the option in array options in corresponding engine.
|
Private Attributes |
State * | initialState |
| A pointer to the initial state.
|
ErrorHandler & | errorHandler |
| Used for error handling.
|
const unsigned & | time |
| The system time in ms.
|
Constructor & Destructor Documentation
|
Constructor.
Does not create the option. - Parameters:
-
name | The name of the option. For debugging purposes. |
input | An input source for the intermediate code. It must be opened and read until A position where an option starts. |
errorHandler | A reference to a ErrorHandler instance |
symbols | All available symbols |
time | The system time in ms. |
Index | of the option in array options in corresponding engine |
Definition at line 71 of file XabslOption.cpp. |
Here is the call graph for this function:
Member Function Documentation
|
Creates the option and it's states from the intermediate code.
- Parameters:
-
input | An input source for the intermediate code. It must be opened and read until A position where an option starts. |
options | All other options |
basicBehaviors | All basic behaviors |
symbols | All available symbols |
agentPriority | Priority value of the agent, used for solving conflicts in cooperative state assignment |
synchronizationTicks | Number of execution cycles that is required for synchonization with other agents, i.e time from sending a message until answer is received |
Definition at line 94 of file XabslOption.cpp.
References activeState, xabsl::NamedArray< State * >::append(), xabsl::ErrorHandler::error(), xabsl::ErrorHandler::errorsOccurred, initialState, xabsl::ErrorHandler::message(), xabsl::InputSource::readString(), xabsl::InputSource::readValue(), states, and XABSL_DEBUG_INIT. |
Here is the call graph for this function:
void xabsl::Option::execute |
( |
|
) |
[virtual] |
|
Here is the call graph for this function:
bool xabsl::Option::getOptionReachedATargetState |
( |
|
) |
const |
|
Here is the call graph for this function:
Member Data Documentation
|
Index of the option in array options in corresponding engine.
Definition at line 108 of file XabslOption.h. |
The documentation for this class was generated from the following files:
Up | Main Page | Generated at Wed Aug 19 17:32:31 2009.
|