Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

oxygen::AgentAspect Class Reference

#include <agentaspect.h>

Inheritance diagram for oxygen::AgentAspect:

Inheritance graph
[legend]
Collaboration diagram for oxygen::AgentAspect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AgentAspect ()
virtual ~AgentAspect ()
virtual bool Init (const std::string &createEffector)
 Initializes the AgentAspect.
virtual bool RealizeActions (boost::shared_ptr< ActionObject::TList > actions)
 RealizeActions realizes the actions described by.
virtual boost::shared_ptr<
PredicateList
QueryPerceptors ()
 QuerySensors collects data from all perceptors below this AgentAspect.
virtual void UpdateEffectorMap ()
 updates the map of Effectors below this AgentAspect
virtual boost::shared_ptr<
Effector
GetEffector (const std::string predicate) const
 looks up the effector corresponding to a predicate

Protected Types

typedef std::map< std::string,
boost::shared_ptr< Effector > > 
TEffectorMap

Protected Attributes

TEffectorMap mEffectorMap
 the map of effectors below this AgentAspect

Detailed Description

Definition at line 41 of file agentaspect.h.


Member Typedef Documentation

typedef std::map<std::string, boost::shared_ptr<Effector> > oxygen::AgentAspect::TEffectorMap [protected]
 

Definition at line 71 of file agentaspect.h.


Constructor & Destructor Documentation

AgentAspect::AgentAspect  ) 
 

Definition at line 30 of file agentaspect.cpp.

References zeitgeist::Leaf::SetName().

Here is the call graph for this function:

AgentAspect::~AgentAspect  )  [virtual]
 

Definition at line 35 of file agentaspect.cpp.


Member Function Documentation

shared_ptr< Effector > AgentAspect::GetEffector const std::string  predicate  )  const [virtual]
 

looks up the effector corresponding to a predicate

Definition at line 98 of file agentaspect.cpp.

References mEffectorMap.

Referenced by RealizeActions().

virtual bool oxygen::AgentAspect::Init const std::string &  createEffector  )  [virtual]
 

Initializes the AgentAspect.

Called immediately after the AgentAspect is created by the GameControlServer.

Parameters:
createEffector is the name of the initial effector class that the agent uses to construct all remaining parts

shared_ptr< PredicateList > AgentAspect::QueryPerceptors  )  [virtual]
 

QuerySensors collects data from all perceptors below this AgentAspect.

Definition at line 76 of file agentaspect.cpp.

bool AgentAspect::RealizeActions boost::shared_ptr< ActionObject::TList actions  )  [virtual]
 

RealizeActions realizes the actions described by.

Parameters:
actions using the corresponding effectors

Definition at line 40 of file agentaspect.cpp.

References GetEffector(), zeitgeist::Object::GetLog(), and UpdateEffectorMap().

Here is the call graph for this function:

void AgentAspect::UpdateEffectorMap  )  [virtual]
 

updates the map of Effectors below this AgentAspect

Definition at line 111 of file agentaspect.cpp.

References mEffectorMap.

Referenced by RealizeActions().


Member Data Documentation

TEffectorMap oxygen::AgentAspect::mEffectorMap [protected]
 

the map of effectors below this AgentAspect

Definition at line 74 of file agentaspect.h.

Referenced by GetEffector(), and UpdateEffectorMap().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:44:11 2006 for rcssserver3d by  doxygen 1.4.4