>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference


xabsl::Agent Class Reference

#include <XabslAgent.h>

Inheritance diagram for xabsl::Agent:

Inheritance graph
Collaboration diagram for xabsl::Agent:

Collaboration graph
List of all members.

Detailed Description

Combines some options to an agent.

Martin Loetzsch

Definition at line 25 of file XabslAgent.h.

Public Member Functions

 Agent (const char *name, Behavior *rootOption, ErrorHandler &errorHandler, int index)

BehaviorgetRootOption () const
 Returns the root option.

Private Attributes

 A pointer to the root option.

 Is invoked when errors occur.

int index
 Index of the agent in array agents in corresponding engine.

Constructor & Destructor Documentation

xabsl::Agent::Agent const char *  name,
Behavior rootOption,
ErrorHandler errorHandler,
int  index


name The name of the agent
rootOption A pointer to the initial option of the agent
errorHandler Is invoked when errors occur
index Index of the agent in array agents in corresponding engine

Definition at line 14 of file XabslAgent.cpp.

References xabsl::ErrorHandler::message(), xabsl::NamedItem::n, and XABSL_DEBUG_INIT.

Here is the call graph for this function:

Member Function Documentation

Behavior * xabsl::Agent::getRootOption  )  const

Returns the root option.

Definition at line 21 of file XabslAgent.cpp.

References rootOption.

Referenced by xabsl::Engine::setRootAction().

Member Data Documentation

Behavior* xabsl::Agent::rootOption [private]

A pointer to the root option.

Definition at line 43 of file XabslAgent.h.

Referenced by getRootOption().

ErrorHandler& xabsl::Agent::errorHandler [private]

Is invoked when errors occur.

Definition at line 46 of file XabslAgent.h.

int xabsl::Agent::index [private]

Index of the agent in array agents in corresponding engine.

Definition at line 49 of file XabslAgent.h.

The documentation for this class was generated from the following files:

Up | Main Page | Generated at Wed Aug 19 17:32:29 2009.