|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAIAGENT::IBasicAgent Class ReferenceBase class for an agent.Basicly an agent is an IConnectIA that we can communicate with it and an basic agent can assume the operation of an children.
More...
#include <agent.h>
Inheritance diagram for NLAIAGENT::IBasicAgent
[legend]Collaboration diagram for NLAIAGENT::IBasicAgent:
[legend]List of all members.
Public Methods |
| IBasicAgent (const IWordNumRef *parent) |
| Contruct agent with an parent. More...
|
| IBasicAgent (const IWordNumRef *parent,IMailBox *m) |
| Contruct agent with an parent and an mail box. More...
|
virtual | ~IBasicAgent () |
virtual const CProcessResult& | getState () const |
| Get the curent state of the agent. More...
|
virtual void | setState (TProcessStatement s, IObjectIA *result) |
| Set the state of an agent. More...
|
virtual IObjectIA::CProcessResult | sendMessage (IMessageBase *msg) |
| Send a message to the agent. More...
|
virtual IObjectIA::CProcessResult | sendMessage (IMessageBase *msg, IBasicAgent &receiver) |
| Send message to an receiver agent. More...
|
virtual IObjectIA::CProcessResult | runActivity () = 0 |
| Run the activity process an agent.
|
virtual bool | haveActivity () const = 0 |
| allow to know if the agent have an activity process to run.
|
IMailBox* | getMail () const |
| Get the mail box letter. More...
|
virtual std::list<IBasicAgent
*>::iterator | addChild (IBasicAgent *p) = 0 |
| Add a child to the agent. More...
|
virtual void | removeChild (const IBasicAgent *p) = 0 |
| Remove a child from the std::list<IBasicAgent *> child list.
|
virtual void | removeChild (std::list<IBasicAgent *>::iterator &iter) = 0 |
| Remove a child from the std::list<IBasicAgent *> child list.
|
virtual void | runChildren () = 0 |
| Run all child.
|
virtual void | processMessages () = 0 |
| The processMessages method, process the loop/Run message.
|
virtual const CProcessResult& | run () = 0 |
| The work of an agent. 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 sint32 | getMethodIndexSize () const |
| getMethodIndexSize define the nomber of external method. More...
|
virtual tQueue | isMember (const IVarName *,const IVarName *,const IObjectIA &) const |
| The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. More...
|
virtual CProcessResult | runMethodeMember (sint32, sint32, IObjectIA *) |
| The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...
|
virtual CProcessResult | runMethodeMember (sint32 index,IObjectIA *) |
| The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...
|
Protected Methods |
| IBasicAgent (const IBasicAgent &a) |
| Copy constructor we protect it because agent need an unique ident, and we don't wont to give this possibility to all programmer because it is dangerous. More...
|
virtual IObjectIA* | run (const IMessageBase &m) |
| Run message is the message processing. More...
|
virtual IMessageBase* | runExec (const IMessageBase &m) |
| RunExec is to processing reltative to PExec Performatif. More...
|
virtual IMessageBase* | runEven (const IMessageBase &m) |
| RunExec is to processing reltative to PExec Performatif. More...
|
virtual IMessageBase* | runAchieve (const IMessageBase &m) |
| runAchieve ist to processing reltative to PAchieve Performatif. More...
|
virtual IMessageBase* | runAsk (const IMessageBase &m) |
| runAsk is to processing reltative to PAsk Performatif. More...
|
virtual IMessageBase* | runTell (const IMessageBase &m) |
| runTell is to processing reltative to PTell Performatif. More...
|
virtual IMessageBase* | runBreak (const IMessageBase &m) |
| runBreak is to processing reltative to PBreak Performatif. More...
|
virtual IMessageBase* | runKill (const IMessageBase &m) |
| runKill is to processing reltative to PKill Performatif. More...
|
virtual IMessageBase* | runError (const IMessageBase &m) |
| runError is to processing reltative to PError Performatif. More...
|
virtual IMessageBase* | runService (const IMessageBase &m) |
| runService is to processing reltative to PService Performatif. More...
|
Protected Attributes |
CProcessResult | _RunState |
| Internal state of the agent. More...
|
IMailBox* | _Mail |
| Box letter for communication service. More...
|
Static Private Attributes |
CMethodCall | _Method [] |
Detailed Description
Base class for an agent.Basicly an agent is an IConnectIA that we can communicate with it and an basic agent can assume the operation of an children.
-
Author(s):
-
Chafik sameh , Portier Pierre , Nevrax France
-
Date:
-
2000
Definition at line 45 of file agent.h.
Constructor & Destructor Documentation
NLAIAGENT::IBasicAgent::IBasicAgent (
|
const IBasicAgent & a ) [protected]
|
|
|
Copy constructor we protect it because agent need an unique ident, and we don't wont to give this possibility to all programmer because it is dangerous.
Definition at line 200 of file agents.cpp. |
NLAIAGENT::IBasicAgent::IBasicAgent (
|
const IWordNumRef * parent )
|
|
|
Contruct agent with an parent.
Definition at line 205 of file agents.cpp. |
|
Contruct agent with an parent and an mail box.
Definition at line 210 of file agents.cpp. |
NLAIAGENT::IBasicAgent::~IBasicAgent (
|
) [virtual]
|
|
Member Function Documentation
std::list< IBasicAgent *>::iterator NLAIAGENT::IBasicAgent::addChild (
|
IBasicAgent * p ) [pure virtual]
|
|
IMailBox * NLAIAGENT::IBasicAgent::getMail (
|
) const
|
|
|
Get the mail box letter.
Definition at line 244 of file agents.cpp. |
sint32 NLAIAGENT::IBasicAgent::getMethodIndexSize (
|
) const [virtual]
|
|
bool NLAIAGENT::IBasicAgent::haveActivity (
|
) const [pure virtual]
|
|
|
Load the class from a stream.
Reimplemented from NLAIAGENT::IConnectIA.
Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IAgentComposite, NLAIAGENT::IAgent, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentManagerTimer, NLAIAGENT::CGDAgentScript, NLAIAGENT::CFsmScript, NLAIAGENT::CSeqFsmScript, and NLAIAGENT::COperatorScript.
Definition at line 255 of file agents.cpp. |
void NLAIAGENT::IBasicAgent::processMessages (
|
) [pure virtual]
|
|
void NLAIAGENT::IBasicAgent::removeChild (
|
std::list< IBasicAgent *>::iterator & iter ) [pure virtual]
|
|
void NLAIAGENT::IBasicAgent::removeChild (
|
const IBasicAgent * p ) [pure virtual]
|
|
const CProcessResult & NLAIAGENT::IBasicAgent::run (
|
void ) [pure virtual]
|
|
|
The work of an agent.
Typically agent process child message, process its message and run its activity.
Reimplemented from NLAIAGENT::IObjectIA.
Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IAgent, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CGDAgentScript, NLAIAGENT::CMainAgentScript, NLAIAGENT::CFsmScript, and NLAIAGENT::COperatorScript.
Referenced by NLAIAGENT::CAgentScript::runChildren(). |
|
Run message is the message processing.
Definition at line 272 of file agents.cpp. |
|
runAchieve ist to processing reltative to PAchieve Performatif.
its call from the IObjectIA *run(const IMessageBase &m) method.
Definition at line 107 of file agent.h. |
|
runAsk is to processing reltative to PAsk Performatif.
its call from the IObjectIA *run(const IMessageBase &m) method.
Definition at line 453 of file agents.cpp. |
|
runBreak is to processing reltative to PBreak Performatif.
its call from the IObjectIA *run(const IMessageBase &m) method.
Definition at line 130 of file agent.h. |
void NLAIAGENT::IBasicAgent::runChildren (
|
) [pure virtual]
|
|
|
runError is to processing reltative to PError Performatif.
its call from the IObjectIA *run(const IMessageBase &m) method.
Definition at line 156 of file agent.h. |
|
RunExec is to processing reltative to PExec Performatif.
its call from the IObjectIA *run(const IMessageBase &m) method.
Definition at line 94 of file agent.h. |
|
runService is to processing reltative to PService Performatif.
its call from the IObjectIA *run(const IMessageBase &m) method.
Definition at line 169 of file agent.h. |
|
Save the class in a stream.
Reimplemented from NLAIAGENT::IConnectIA.
Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IAgentComposite, NLAIAGENT::IAgent, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentManagerTimer, NLAIAGENT::CGDAgentScript, NLAIAGENT::CFsmScript, NLAIAGENT::CSeqFsmScript, and NLAIAGENT::COperatorScript.
Definition at line 249 of file agents.cpp. |
|
Send message to an receiver agent.
Definition at line 238 of file agents.cpp. |
Member Data Documentation
IMailBox * NLAIAGENT::IBasicAgent::_Mail [protected]
|
|
|
Box letter for communication service.
Definition at line 63 of file agent.h. |
|
Initializer: {
IBasicAgent::CMethodCall(_MAILER_,_GetMailer),
IBasicAgent::CMethodCall(_FATHER_,_Father),
IBasicAgent::CMethodCall(_RUNTEL_,_RunTel),
IBasicAgent::CMethodCall(_RUNASK_,_RunAsk),
IBasicAgent::CMethodCall(_GETNUMID_,_GetNumId)
}
Definition at line 344 of file agents.cpp. |
CProcessResult NLAIAGENT::IBasicAgent::_RunState [protected]
|
|
|
Internal state of the agent.
Definition at line 61 of file agent.h. |
The documentation for this class was generated from the following files:
|
|