|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAIAGENT::CLocalAgentMail Class ReferenceThis class define an agent that it can assume the local communication role of an ather agent.
More...
#include <agent_local_mailer.h>
Inheritance diagram for NLAIAGENT::CLocalAgentMail:
List of all members.
Public Methods |
| CLocalAgentMail () |
| host agent where we have to establish communication. More...
|
| CLocalAgentMail (IBasicAgent *host) |
virtual | ~CLocalAgentMail () |
const IBasicAgent * | getHost () const |
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 sint32 | isClassInheritedFrom (const IVarName &h) const |
| isClassInheritedFrom(className) allow us to known if this class have a base class with the name className. 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 tQueue | canProcessMessage (const IVarName &m) |
| The method canProcessMessage(const IVarName &msgName) allow us to know if agent can preocess given by msgName. More...
|
|
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::CIdentType & | getType () const |
| getType return a unique string how represente the class, it can be the name of the class. More...
|
virtual const NLAIC::IBasicType * | newInstance () const |
| This function allow a new instance, that mean that the class is a class factory. More...
|
virtual const NLAIC::IBasicType * | clone () 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...
|
|
virtual const CProcessResult & | run () |
| Have no run to do. More...
|
virtual sint32 | getStaticMemberSize () const |
| Member are th host member attribut. More...
|
virtual sint32 | getStaticMemberIndex (const IVarName &m) const |
| to get the index of a given components name. More...
|
virtual const IObjectIA * | getStaticMember (sint32 i) const |
| to get the pointer of a given components referened by an index. More...
|
virtual bool | setStaticMember (sint32 i, IObjectIA *o) |
| to cahnge a given components given by a string. More...
|
virtual sint32 | getMethodIndexSize () const |
| getMethodIndexSize define the nomber of method define in the class. More...
|
|
virtual bool | isEqual (const IBasicObjectIA &a) const |
| Implementation of the isEqual of the IBasicObjectIA. More...
|
|
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 | runActivity () |
| Mailer do'nt have own activity. More...
|
virtual bool | haveActivity () const |
| allow to know if the agent have an activity process to run. More...
|
Static Public Attributes |
const NLAIC::CIdentType | LocalAgentMail |
Private Attributes |
IBasicAgent * | _HostAgent |
Detailed Description
This class define an agent that it can assume the local communication role of an ather agent.
This agent can be considered as an mail box agent.
-
Author:
-
Chafik sameh , Nevrax France
-
Date:
-
2000
Definition at line 40 of file agent_local_mailer.h.
Constructor & Destructor Documentation
NLAIAGENT::CLocalAgentMail::CLocalAgentMail |
( |
|
) |
[inline] |
|
NLAIAGENT::CLocalAgentMail::CLocalAgentMail |
( |
IBasicAgent * |
host |
) |
|
|
NLAIAGENT::CLocalAgentMail::~CLocalAgentMail |
( |
|
) |
[virtual] |
|
Member Function Documentation
virtual tQueue NLAIAGENT::CLocalAgentMail::canProcessMessage |
( |
const IVarName & |
m |
) |
[inline, virtual] |
|
virtual const NLAIC::IBasicType* NLAIAGENT::CLocalAgentMail::clone |
( |
|
) |
const [inline, virtual] |
|
virtual void NLAIAGENT::CLocalAgentMail::getDebugString |
( |
std::string & |
t |
) |
const [inline, virtual] |
|
const IBasicAgent* NLAIAGENT::CLocalAgentMail::getHost |
( |
|
) |
const [inline] |
|
virtual sint32 NLAIAGENT::CLocalAgentMail::getMethodIndexSize |
( |
|
) |
const [inline, virtual] |
|
virtual const IObjectIA* NLAIAGENT::CLocalAgentMail::getStaticMember |
( |
sint32 |
i |
) |
const [inline, virtual] |
|
virtual sint32 NLAIAGENT::CLocalAgentMail::getStaticMemberIndex |
( |
const IVarName & |
m |
) |
const [inline, virtual] |
|
virtual sint32 NLAIAGENT::CLocalAgentMail::getStaticMemberSize |
( |
|
) |
const [inline, virtual] |
|
virtual const NLAIC::CIdentType& NLAIAGENT::CLocalAgentMail::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).
Reimplemented from NLAIAGENT::IAgent.
Definition at line 81 of file agent_local_mailer.h. |
virtual bool NLAIAGENT::CLocalAgentMail::haveActivity |
( |
|
) |
const [inline, virtual] |
|
virtual sint32 NLAIAGENT::CLocalAgentMail::isClassInheritedFrom |
( |
const IVarName & |
h |
) |
const [inline, virtual] |
|
|
isClassInheritedFrom(className) allow us to known if this class have a base class with the name className.
If true the method return the range of the base class, this range is an arbitrary reference id define by the programmer or bay the scrypt. the false return is define by -1.
Reimplemented from NLAIAGENT::IObjectIA.
Definition at line 145 of file agent_local_mailer.h.
References _HostAgent. |
virtual bool NLAIAGENT::CLocalAgentMail::isEqual |
( |
const IBasicObjectIA & |
a |
) |
const [inline, virtual] |
|
virtual void NLAIAGENT::CLocalAgentMail::load |
( |
NLMISC::IStream & |
is |
) |
[inline, virtual] |
|
virtual const NLAIC::IBasicType* NLAIAGENT::CLocalAgentMail::newInstance |
( |
|
) |
const [inline, virtual] |
|
void NLAIAGENT::CLocalAgentMail::onKill |
( |
IConnectIA * |
a |
) |
[virtual] |
|
void NLAIAGENT::CLocalAgentMail::processMessages |
( |
|
) |
[virtual] |
|
virtual void NLAIAGENT::CLocalAgentMail::removeChild |
( |
std::list< IBasicAgent * >::iterator & |
iter |
) |
[inline, virtual] |
|
virtual void NLAIAGENT::CLocalAgentMail::removeChild |
( |
const IBasicAgent * |
p |
) |
[inline, virtual] |
|
virtual const CProcessResult& NLAIAGENT::CLocalAgentMail::run |
( |
void |
|
) |
[inline, virtual] |
|
void NLAIAGENT::CLocalAgentMail::runChildren |
( |
|
) |
[virtual] |
|
virtual CProcessResult NLAIAGENT::CLocalAgentMail::runMethodeMember |
( |
sint32 |
m, |
|
|
IObjectIA * |
p |
|
) |
[inline, virtual] |
|
virtual CProcessResult NLAIAGENT::CLocalAgentMail::runMethodeMember |
( |
sint32 |
h, |
|
|
sint32 |
m, |
|
|
IObjectIA * |
p |
|
) |
[inline, virtual] |
|
virtual void NLAIAGENT::CLocalAgentMail::save |
( |
NLMISC::IStream & |
os |
) |
[inline, virtual] |
|
virtual bool NLAIAGENT::CLocalAgentMail::setStaticMember |
( |
sint32 |
i, |
|
|
IObjectIA * |
o |
|
) |
[inline, virtual] |
|
Member Data Documentation
IBasicAgent* NLAIAGENT::CLocalAgentMail::_HostAgent [private]
|
|
|
Definition at line 46 of file agent_local_mailer.h.
Referenced by addChild, canProcessMessage, CLocalAgentMail, clone, getDebugString, getHost, getMethodIndexSize, getStaticMember, getStaticMemberIndex, getStaticMemberSize, isClassInheritedFrom, isEqual, isMember, load, newInstance, onKill, removeChild, runMethodeMember, save, sendMessage, and setStaticMember. |
The documentation for this class was generated from the following files:
|
|