# 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::CProxyAgentMail Class Reference

#include <agent_proxy_mailer.h>

Inheritance diagram for NLAIAGENT::CProxyAgentMail:

NLAIAGENT::IBasicAgent NLAIAGENT::IConnectIA NLAIAGENT::IRefrence NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Types

enum  TMethodNumDef { TConstructor, TLastM }

Public Methods

 CProxyAgentMail ()
 CProxyAgentMail (const CAgentNumber &agentRef)
 CProxyAgentMail (const CProxyAgentMail &mailer)
virtual ~CProxyAgentMail ()
const CAgentNumbergetAgentRef () const
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...

virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual void getDebugString (std::string &t) const
 This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...

IObjectIA method.
virtual const CProcessResult & run ()
 The work of an agent. More...

virtual bool isEqual (const IBasicObjectIA &a) const
 The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. More...

virtual tQueue isMember (const IVarName *h, const IVarName *m, const IObjectIA &p) const
 The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. More...

virtual CProcessResult runMethodeMember (sint32 h, sint32 m, IObjectIA *p)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

virtual CProcessResult runMethodeMember (sint32 m, IObjectIA *p)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...

IBasicAgent method.
virtual void onKill (IConnectIA *a)
 Called by an agent who's destroyed te remove its references. More...

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

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...

virtual void runChildren ()
 Run all child. More...

virtual void processMessages ()
 The processMessages method, process the loop/Run message. More...

virtual IObjectIA::CProcessResult sendMessage (IObjectIA *msg)
 sendMessage allow agent to send a message to an ather agent.The message is a IMessageBase. More...

virtual IObjectIA::CProcessResult sendMessage (const IVarName &, IObjectIA *)
 This method allow to send a message to an compoment given by an string IVarName. More...

virtual IObjectIA::CProcessResult runActivity ()
 Run the activity process an agent. More...

virtual bool haveActivity () const
 allow to know if the agent have an activity process to run. More...


Static Public Methods

void initClass ()
void releaseClass ()

Static Public Attributes

const NLAIC::CIdentType IdProxyAgentMail
IMainAgentMainAgent = NULL
CAgentScript::CMethodCall ** StaticMethod = NULL

Private Attributes

CAgentNumber_AgentRef

Member Enumeration Documentation

enum NLAIAGENT::CProxyAgentMail::TMethodNumDef
 

Enumeration values:
TConstructor 
TLastM 

Definition at line 41 of file agent_proxy_mailer.h.


Constructor & Destructor Documentation

NLAIAGENT::CProxyAgentMail::CProxyAgentMail  
 

Definition at line 68 of file agent_proxy_mailer.cpp.

Referenced by clone, isEqual, and newInstance.

NLAIAGENT::CProxyAgentMail::CProxyAgentMail const CAgentNumber   agentRef
 

Definition at line 71 of file agent_proxy_mailer.cpp.

NLAIAGENT::CProxyAgentMail::CProxyAgentMail const CProxyAgentMail &    mailer
 

NLAIAGENT::CProxyAgentMail::~CProxyAgentMail   [virtual]
 

Definition at line 74 of file agent_proxy_mailer.cpp.

References _AgentRef.


Member Function Documentation

std::list< IBasicAgent * >::iterator NLAIAGENT::CProxyAgentMail::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.

Implements NLAIAGENT::IBasicAgent.

Definition at line 84 of file agent_proxy_mailer.cpp.

virtual const NLAIC::IBasicType* NLAIAGENT::CProxyAgentMail::clone   const [inline, virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Implements NLAIC::IBasicType.

Definition at line 84 of file agent_proxy_mailer.h.

References _AgentRef, and CProxyAgentMail.

const CAgentNumber* NLAIAGENT::CProxyAgentMail::getAgentRef   const [inline]
 

Definition at line 148 of file agent_proxy_mailer.h.

References _AgentRef.

virtual void NLAIAGENT::CProxyAgentMail::getDebugString std::string &    t const [inline, virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Implements NLAIC::IBasicType.

Definition at line 91 of file agent_proxy_mailer.h.

References _AgentRef, NLAIC::stringGetBuild, and t.

sint32 NLAIAGENT::CProxyAgentMail::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 168 of file agent_proxy_mailer.cpp.

Referenced by isMember, and runMethodeMember.

virtual const NLAIC::CIdentType& NLAIAGENT::CProxyAgentMail::getType   const [inline, virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Implements NLAIC::IBasicType.

Definition at line 72 of file agent_proxy_mailer.h.

virtual bool NLAIAGENT::CProxyAgentMail::haveActivity   const [inline, virtual]
 

allow to know if the agent have an activity process to run.

Implements NLAIAGENT::IBasicAgent.

Definition at line 142 of file agent_proxy_mailer.h.

void NLAIAGENT::CProxyAgentMail::initClass   [static]
 

Definition at line 45 of file agent_proxy_mailer.cpp.

References _CONSTRUCTOR_, and TConstructor.

virtual bool NLAIAGENT::CProxyAgentMail::isEqual const IBasicObjectIA   a const [inline, virtual]
 

The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.

Implements NLAIAGENT::IBasicObjectIA.

Definition at line 109 of file agent_proxy_mailer.h.

References _AgentRef, CProxyAgentMail, NLAIAGENT::IBasicObjectIA::IBasicObjectIA, and NLAISCRIPT::l.

tQueue NLAIAGENT::CProxyAgentMail::isMember const IVarName   h,
const IVarName   m,
const IObjectIA   p
const [virtual]
 

The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search.

remember we use the overloadind method.

NameSubClass: if this pointer is not NULL then NameSubClass is the name of the base class were the method are defined.

methodName: is the name of the class.

param: is an IObjectIA where it defined the parametre of the method. lot of method use a IObjectIA vector object with an NLAIC::CIdentType as the the template argm.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 143 of file agent_proxy_mailer.cpp.

References getMethodIndexSize, NLAIAGENT::isTemplateMember, param, r, and NLAIAGENT::tQueue.

virtual void NLAIAGENT::CProxyAgentMail::load NLMISC::IStream   is [inline, virtual]
 

Load the class from a stream.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 66 of file agent_proxy_mailer.h.

References _AgentRef.

virtual const NLAIC::IBasicType* NLAIAGENT::CProxyAgentMail::newInstance   const [inline, virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Implements NLAIC::IBasicType.

Definition at line 77 of file agent_proxy_mailer.h.

References CProxyAgentMail, and x.

void NLAIAGENT::CProxyAgentMail::onKill IConnectIA   a [virtual]
 

Called by an agent who's destroyed te remove its references.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 79 of file agent_proxy_mailer.cpp.

void NLAIAGENT::CProxyAgentMail::processMessages   [virtual]
 

The processMessages method, process the loop/Run message.

Implements NLAIAGENT::IBasicAgent.

Definition at line 100 of file agent_proxy_mailer.cpp.

void NLAIAGENT::CProxyAgentMail::releaseClass   [static]
 

Definition at line 58 of file agent_proxy_mailer.cpp.

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

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

Implements NLAIAGENT::IBasicAgent.

Definition at line 93 of file agent_proxy_mailer.cpp.

void NLAIAGENT::CProxyAgentMail::removeChild const IBasicAgent   p [virtual]
 

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

Implements NLAIAGENT::IBasicAgent.

Definition at line 89 of file agent_proxy_mailer.cpp.

virtual const CProcessResult& NLAIAGENT::CProxyAgentMail::run   [inline, virtual]
 

The work of an agent.

Typically agent process child message, process its message and run its activity.

Implements NLAIAGENT::IBasicAgent.

Definition at line 104 of file agent_proxy_mailer.h.

virtual IObjectIA::CProcessResult NLAIAGENT::CProxyAgentMail::runActivity   [inline, virtual]
 

Run the activity process an agent.

Implements NLAIAGENT::IBasicAgent.

Definition at line 138 of file agent_proxy_mailer.h.

References NLAIAGENT::IObjectIA::ProcessRun.

void NLAIAGENT::CProxyAgentMail::runChildren   [virtual]
 

Run all child.

Implements NLAIAGENT::IBasicAgent.

Definition at line 97 of file agent_proxy_mailer.cpp.

IObjectIA::CProcessResult NLAIAGENT::CProxyAgentMail::runMethodeMember sint32    m,
IObjectIA   p
[virtual]
 

The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method.

index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 154 of file agent_proxy_mailer.cpp.

References _AgentRef, and getMethodIndexSize.

IObjectIA::CProcessResult NLAIAGENT::CProxyAgentMail::runMethodeMember sint32    h,
sint32    m,
IObjectIA   p
[virtual]
 

The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method.

heritance: is the id returned by the methodisClassInheritedFrom(const IVarName &). index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 150 of file agent_proxy_mailer.cpp.

virtual void NLAIAGENT::CProxyAgentMail::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 61 of file agent_proxy_mailer.h.

References _AgentRef.

IObjectIA::CProcessResult NLAIAGENT::CProxyAgentMail::sendMessage const IVarName  ,
IObjectIA  
[virtual]
 

This method allow to send a message to an compoment given by an string IVarName.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 104 of file agent_proxy_mailer.cpp.

References _AgentRef, MainAgent, and r.

IObjectIA::CProcessResult NLAIAGENT::CProxyAgentMail::sendMessage IObjectIA   m [virtual]
 

sendMessage allow agent to send a message to an ather agent.The message is a IMessageBase.

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 120 of file agent_proxy_mailer.cpp.

References _AgentRef, NLAISCRIPT::CMsgNotifyParentClass::IdMsgNotifyParentClass, MainAgent, and NLAIAGENT::IConnectIA::setParent.

Referenced by NLAILOGIC::CGoalPath::failure, NLAILOGIC::CGoalPath::onActivate, NLAILOGIC::CGoalPath::onUnActivate, NLAIAGENT::COperatorScript::order, and NLAILOGIC::CGoalPath::success.


Member Data Documentation

CAgentNumber* NLAIAGENT::CProxyAgentMail::_AgentRef [private]
 

Definition at line 52 of file agent_proxy_mailer.h.

Referenced by clone, getAgentRef, getDebugString, isEqual, load, runMethodeMember, save, sendMessage, and ~CProxyAgentMail.

const NLAIC::CIdentType CProxyAgentMail::IdProxyAgentMail [static]
 

Initial value:

Definition at line 534 of file static_def_init.cpp.

IMainAgent * NLAIAGENT::CProxyAgentMail::MainAgent = NULL [static]
 

Definition at line 40 of file agent_proxy_mailer.cpp.

Referenced by sendMessage.

CAgentScript::CMethodCall ** NLAIAGENT::CProxyAgentMail::StaticMethod = NULL [static]
 

Definition at line 42 of file agent_proxy_mailer.cpp.


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