Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Xabsl2BehaviorControlAgentInterface Class Reference

Allows to register the same Xabsl2BehaviorControl instance more than once at a ModuleHandler to be able to switch between different agents using the GT Module mechanism. More...

#include <Xabsl2BehaviorControl.h>

Inheritance diagram for Xabsl2BehaviorControlAgentInterface:

Inheritance graph
[legend]
Collaboration diagram for Xabsl2BehaviorControlAgentInterface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Xabsl2BehaviorControlAgentInterface (const char *name, Xabsl2BehaviorControl *behaviorControl, const BehaviorControlInterfaces &interfaces)
 Constructor.

 ~Xabsl2BehaviorControlAgentInterface ()
 Destructor.

virtual void execute ()
 Executes the agent.

virtual bool handleMessage (InMessage &message)
 Is called for every incoming debug message.


Private Attributes

Xabsl2BehaviorControlbehaviorControl
 A pointer to the Xabsl2BehaviorControl can contains the agent.


Detailed Description

Allows to register the same Xabsl2BehaviorControl instance more than once at a ModuleHandler to be able to switch between different agents using the GT Module mechanism.

Definition at line 64 of file Xabsl2BehaviorControl.h.


Constructor & Destructor Documentation

Xabsl2BehaviorControlAgentInterface::Xabsl2BehaviorControlAgentInterface const char *  name,
Xabsl2BehaviorControl behaviorControl,
const BehaviorControlInterfaces interfaces
 

Constructor.

Parameters:
name The name of the agent
behaviorControl A newly created Xabsl2BehaviorControl can contains the agent.
interfaces The paramters of the BehaviorControl module.

Definition at line 41 of file Xabsl2BehaviorControl.cpp.

References ASSERT.

Xabsl2BehaviorControlAgentInterface::~Xabsl2BehaviorControlAgentInterface  ) 
 

Destructor.

Deletes the Xabsl2BehaviorControl

Definition at line 50 of file Xabsl2BehaviorControl.cpp.


Member Function Documentation

void Xabsl2BehaviorControlAgentInterface::execute  )  [virtual]
 

Executes the agent.

Implements Module.

Definition at line 55 of file Xabsl2BehaviorControl.cpp.

References ASSERT.

bool Xabsl2BehaviorControlAgentInterface::handleMessage InMessage message  )  [virtual]
 

Is called for every incoming debug message.

Parameters:
message An interface to read the message from the queue
Returns:
if the messag was read

Reimplemented from Module.

Definition at line 62 of file Xabsl2BehaviorControl.cpp.

References ASSERT.


Member Data Documentation

Xabsl2BehaviorControl* Xabsl2BehaviorControlAgentInterface::behaviorControl [private]
 

A pointer to the Xabsl2BehaviorControl can contains the agent.

Definition at line 92 of file Xabsl2BehaviorControl.h.


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:12:19 2004 for GT2004 by doxygen 1.3.6