# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIAGENT::IAgentComposite Class Reference

Base class for child working in an agent. More...

#include <agent.h>

Inheritance diagram for NLAIAGENT::IAgentComposite

Inheritance graph
[legend]
Collaboration diagram for NLAIAGENT::IAgentComposite:

Collaboration graph
[legend]
List of all members.

Public Methods

 IAgentComposite (IBasicAgent *parent)
 Contruct agent with an parent. More...

 IAgentComposite (IBasicAgent *parent,IMailBox *m)
 Contruct agent with an parent and an mail box. More...

virtual ~IAgentComposite ()
Some IBasicAgent method.
virtual std::list<IBasicAgent
*>::iterator 
addChild (IBasicAgent *p)
 Add a child to the agent. More...

void cpyChild (const IBasicAgent &p)
void removeChild (const IBasicAgent &p)
virtual void removeChild (const IBasicAgent *p)
 Remove a child from the std::list<IBasicAgent *> child list. More...

virtual void removeChild (std::list<IBasicAgent *>::iterator &iter)
 Remove a child from the std::list<IBasicAgent *> child list. More...

Some IBasicInterface method.
virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. More...


Protected Methods

 IAgentComposite (const IAgentComposite &a)

Protected Attributes

tBasicList _AgentList

Private Types

typedef std::list<IBasicAgent *> tBasicList

Private Methods

void deleteListe ()

Detailed Description

Base class for child working in an agent.

This class manage a child list.

Author(s):
Portier Pierre , Nevrax France
Date:
2000

Definition at line 273 of file agent.h.


Member Typedef Documentation

typedef std::list<IBasicAgent *> NLAIAGENT::IAgentComposite::tBasicList [private]
 

Definition at line 276 of file agent.h.


Constructor & Destructor Documentation

NLAIAGENT::IAgentComposite::IAgentComposite ( const IAgentComposite & a ) [protected]
 

Definition at line 30 of file basic_agent.cpp.

NLAIAGENT::IAgentComposite::IAgentComposite ( IBasicAgent * parent )
 

Contruct agent with an parent.

Definition at line 40 of file basic_agent.cpp.

NLAIAGENT::IAgentComposite::IAgentComposite ( IBasicAgent * parent,
IMailBox * m )
 

Contruct agent with an parent and an mail box.

Definition at line 45 of file basic_agent.cpp.

NLAIAGENT::IAgentComposite::~IAgentComposite ( ) [virtual]
 

Definition at line 50 of file basic_agent.cpp.


Member Function Documentation

std::list< IBasicAgent *>::iterator NLAIAGENT::IAgentComposite::addChild ( IBasicAgent * p ) [virtual]
 

Add a child to the agent.

Child is added in a std::list<IBasicAgent *>. The method return the range of the child in the list.

Reimplemented from NLAIAGENT::IBasicAgent.

Reimplemented in NLAIAGENT::CLocalAgentMail.

Definition at line 61 of file basic_agent.cpp.

void NLAIAGENT::IAgentComposite::cpyChild ( const IBasicAgent & p )
 

Definition at line 70 of file basic_agent.cpp.

void NLAIAGENT::IAgentComposite::deleteListe ( ) [private]
 

Definition at line 132 of file basic_agent.cpp.

void NLAIAGENT::IAgentComposite::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIAGENT::IBasicAgent.

Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IAgent, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentManagerTimer, NLAIAGENT::CGDAgentScript, NLAIAGENT::CFsmScript, NLAIAGENT::CSeqFsmScript, and NLAIAGENT::COperatorScript.

Definition at line 158 of file basic_agent.cpp.

void NLAIAGENT::IAgentComposite::removeChild ( std::list< IBasicAgent *>::iterator & iter ) [virtual]
 

Remove a child from the std::list<IBasicAgent *> child list.

Reimplemented from NLAIAGENT::IBasicAgent.

Reimplemented in NLAIAGENT::CLocalAgentMail.

Definition at line 75 of file basic_agent.cpp.

void NLAIAGENT::IAgentComposite::removeChild ( const IBasicAgent * p ) [virtual]
 

Remove a child from the std::list<IBasicAgent *> child list.

Reimplemented from NLAIAGENT::IBasicAgent.

Reimplemented in NLAIAGENT::CLocalAgentMail.

Definition at line 106 of file basic_agent.cpp.

void NLAIAGENT::IAgentComposite::removeChild ( const IBasicAgent & p )
 

Definition at line 80 of file basic_agent.cpp.

void NLAIAGENT::IAgentComposite::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIAGENT::IBasicAgent.

Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IAgent, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentManagerTimer, NLAIAGENT::CGDAgentScript, NLAIAGENT::CFsmScript, NLAIAGENT::CSeqFsmScript, and NLAIAGENT::COperatorScript.

Definition at line 143 of file basic_agent.cpp.


Member Data Documentation

tBasicList NLAIAGENT::IAgentComposite::_AgentList [protected]
 

Definition at line 281 of file agent.h.


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