>xabsl |
The Extensible Agent Behavior Specification Language |
XabslEngine Class Library Reference |
  |
xabsl::SynchronizedState Class Reference#include <XabslCoopState.h>
Inheritance diagram for xabsl::SynchronizedState:
[legend]Collaboration diagram for xabsl::SynchronizedState:
[legend]List of all members.
Detailed Description
Represents a state which can only be entered by all agents simultaneously.
- Author:
- Max Risler
Definition at line 99 of file XabslCoopState.h.
Constructor & Destructor Documentation
xabsl::SynchronizedState::SynchronizedState |
( |
const char * |
name, |
|
|
ErrorHandler & |
errorHandler, |
|
|
const unsigned & |
time, |
|
|
int |
optionIndex, |
|
|
int |
index, |
|
|
const int & |
agentPriority, |
|
|
const int & |
synchronizationTicks, |
|
|
int |
minAgents |
|
) |
[inline] |
|
|
Constructor.
Does not create the state. - Parameters:
-
name | The name of the state. For debugging purposes. |
errorHandler | A reference to a ErrorHandler instance |
time | The system time in ms. |
optionIndex | Index of the corresponding option this state belongs to |
index | Index of the state in array states in corresponding option |
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 112 of file XabslCoopState.h. |
Member Function Documentation
virtual bool xabsl::SynchronizedState::coopCheck |
( |
|
) |
[inline, virtual] |
|
|
Check whether this state can be entered, or whether entering is blocked due to cooperating agents.
Reimplemented from xabsl::State.
Definition at line 127 of file XabslCoopState.h.
References minAgents. |
Member Data Documentation
The documentation for this class was generated from the following file:
Up | Main Page | Generated at Wed Aug 19 17:32:30 2009.
|
|
|