>xabsl |
The Extensible Agent Behavior Specification Language |
XabslEngine Class Library Reference |
  |
xabsl::CapacityState Class Reference#include <XabslCoopState.h>
Inheritance diagram for xabsl::CapacityState:
[legend]Collaboration diagram for xabsl::CapacityState:
[legend]List of all members.
Detailed Description
Represents a state which can only be entered by at most the given number of agents simultaneously.
- Author:
- Max Risler
Definition at line 143 of file XabslCoopState.h.
|
Public Member Functions |
| CapacityState (const char *name, ErrorHandler &errorHandler, const unsigned &time, int optionIndex, int index, const int &agentPriority, const int &synchronizationTicks, int capacity) |
| Constructor.
|
virtual bool | getConflict () |
| Whether this state is currently conflicted, i.e.
|
virtual State * | getNextState () |
| Executes the decision tree and determines the next active state (can be the same).
|
virtual bool | coopCheck () |
| Check whether this state can be entered, or whether entering is blocked due to cooperating agents.
|
Public Attributes |
int | capacity |
| Number of agents that can enter the state simultaneously.
|
bool | conflict |
| Whether this state is currently conflicted, i.e.
|
Constructor & Destructor Documentation
xabsl::CapacityState::CapacityState |
( |
const char * |
name, |
|
|
ErrorHandler & |
errorHandler, |
|
|
const unsigned & |
time, |
|
|
int |
optionIndex, |
|
|
int |
index, |
|
|
const int & |
agentPriority, |
|
|
const int & |
synchronizationTicks, |
|
|
int |
capacity |
|
) |
[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 |
capacity | Number of agents that can enter the state simultaneously |
Definition at line 157 of file XabslCoopState.h.
References conflict. |
Member Function Documentation
virtual bool xabsl::CapacityState::getConflict |
( |
|
) |
[inline, virtual] |
|
|
Whether this state is currently conflicted, i.e.
there are more robots executing than the given capacity.
Reimplemented from xabsl::State.
Definition at line 175 of file XabslCoopState.h.
References conflict. |
virtual State* xabsl::CapacityState::getNextState |
( |
|
) |
[inline, virtual] |
|
virtual bool xabsl::CapacityState::coopCheck |
( |
|
) |
[inline, virtual] |
|
Here is the call graph for this function:
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.
|
|
|