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

concrete IMainAgent class. More...

#include <main_agent_script.h>

Inheritance diagram for NLAIAGENT::CMainAgentScript:

NLAIAGENT::IMainAgent NLAIAGENT::CAgentScript NLAIAGENT::IAgentManager NLAIAGENT::IAgent NLAIAGENT::IAgentComposite 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 Methods

virtual int getBaseMethodCount () const
 Return the nomber of internal C++ hard coded method that the class can process. More...

virtual const IObjectIAgetAgentContext () const
 Get an valid context for this instance. More...

 CMainAgentScript (const CMainAgentScript &)
 CMainAgentScript (IAgentManager *a, NLAIC::IIO *io, IBasicAgent *b, std::list< IObjectIA * > &v, NLAISCRIPT::CAgentClass *c)
 CMainAgentScript (IAgentManager *, NLAIC::IIO *io)
 CMainAgentScript (NLAIC::IIO *io)
virtual ~CMainAgentScript ()
const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual IMessageBaserunExec (const IMessageBase &)
 RunExec is to processing reltative to PExec Performatif. More...

virtual IObjectIA::CProcessResult addDynamicAgent (IBaseGroupType *g)
 Add an agent to the dynamic agent child. 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 const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

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

virtual IObjectIA::CProcessResult sendMessage (const CAgentNumber &, IObjectIA *)
virtual IObjectIA::CProcessResult sendMessage (const CAgentNumber &, const IVarName &, IObjectIA *)
virtual const IObjectIA::CProcessResultrun ()
 The work of an agent. More...


Static Public Attributes

const NLAIC::CIdentType IdMainAgentScript

Protected Attributes

NLAISCRIPT::CCodeContext_CodeContext
 Context for the script. More...

NLAISCRIPT::CStackPointer_Stack
 Heap and stack for the script. More...

NLAISCRIPT::CStackPointer_Heap
 Heap and stack for the script. More...


Detailed Description

concrete IMainAgent class.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 76 of file main_agent_script.h.


Constructor & Destructor Documentation

NLAIAGENT::CMainAgentScript::CMainAgentScript const CMainAgentScript &   
 

Definition at line 32 of file main_agent_script.cpp.

References _CodeContext, _Heap, _Stack, and NLAIAGENT::StackMemSize.

Referenced by clone, and newInstance.

NLAIAGENT::CMainAgentScript::CMainAgentScript IAgentManager   a,
NLAIC::IIO   io,
IBasicAgent   b,
std::list< IObjectIA * > &    v,
NLAISCRIPT::CAgentClass   c
 

Definition at line 47 of file main_agent_script.cpp.

References _CodeContext, _Heap, _Stack, NLAIAGENT::StackMemSize, and v.

NLAIAGENT::CMainAgentScript::CMainAgentScript IAgentManager  ,
NLAIC::IIO   io
 

Definition at line 40 of file main_agent_script.cpp.

References _CodeContext, _Heap, _Stack, and NLAIAGENT::StackMemSize.

NLAIAGENT::CMainAgentScript::CMainAgentScript NLAIC::IIO   io
 

Definition at line 54 of file main_agent_script.cpp.

References _CodeContext, _Heap, _Stack, and NLAIAGENT::StackMemSize.

NLAIAGENT::CMainAgentScript::~CMainAgentScript   [virtual]
 

Definition at line 61 of file main_agent_script.cpp.

References _CodeContext, _Heap, _Stack, NLAIAGENT::IAgent::Kill, and NLAIC::IPointerGestion::release.


Member Function Documentation

IObjectIA::CProcessResult NLAIAGENT::CMainAgentScript::addDynamicAgent IBaseGroupType   g [virtual]
 

Add an agent to the dynamic agent child.

Method have an IBaseGroupType argument, this argument must store an CStringType first and an IObjectIA pointer memory next. The CStringType is the name of the agent. The IObjectIA pointer memory is the agent.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 164 of file main_agent_script.cpp.

References NLAIAGENT::CAgentScript::CAgentScript, NLAIC::CBinaryType::getValue, NLAIAGENT::IBasicAgent::IBasicAgent, t, NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tInterpret.

const NLAIC::IBasicType * NLAIAGENT::CMainAgentScript::clone   const [virtual]
 

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 84 of file main_agent_script.cpp.

References CMainAgentScript, and x.

virtual void NLAIAGENT::CMainAgentScript::CMainAgentScript::processMessages   [virtual]
 

const IObjectIA * NLAIAGENT::CMainAgentScript::getAgentContext   const [virtual]
 

Get an valid context for this instance.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 69 of file main_agent_script.cpp.

References _CodeContext.

int NLAIAGENT::CMainAgentScript::getBaseMethodCount   const [virtual]
 

Return the nomber of internal C++ hard coded method that the class can process.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 74 of file main_agent_script.cpp.

const NLAIC::CIdentType& NLAIAGENT::CMainAgentScript::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::CAgentScript.

Definition at line 100 of file main_agent_script.h.

Referenced by sendMessage.

const NLAIC::IBasicType * NLAIAGENT::CMainAgentScript::newInstance   const [virtual]
 

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 90 of file main_agent_script.cpp.

References _CodeContext, CMainAgentScript, NLAISCRIPT::CCodeContext::InputOutput, and x.

const IObjectIA::CProcessResult & NLAIAGENT::CMainAgentScript::run   [virtual]
 

The work of an agent.

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 145 of file main_agent_script.cpp.

References _CodeContext, NLAIAGENT::CAgentScript::getFactoryClass, NLAIAGENT::IBasicAgent::getMail, NLAISCRIPT::CAgentClass::getRunMethod, NLAIAGENT::IBasicAgent::getState, NLAIAGENT::CAgentScript::haveActivity, NLAIAGENT::processIdle, NLAIAGENT::CAgentScript::processMessages, NLAIAGENT::CAgentScript::runActivity, NLAIAGENT::CAgentScript::runChildren, and NLAIAGENT::CAgentScript::runMethodeMember.

IMessageBase * NLAIAGENT::CMainAgentScript::runExec const IMessageBase   m [virtual]
 

RunExec is to processing reltative to PExec Performatif.

its call from the IObjectIA *run(const IMessageBase &m) method.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 96 of file main_agent_script.cpp.

References _CodeContext, NLAISCRIPT::CCodeContext::Code, NLAIC::IPointerGestion::incRef, NLAISCRIPT::CCodeContext::InputOutput, NLAISCRIPT::CCodeBrancheRun::run, and NLAISCRIPT::CCodeContext::Self.

virtual IObjectIA::CProcessResult NLAIAGENT::CMainAgentScript::sendMessage const CAgentNumber  ,
const IVarName  ,
IObjectIA  
[inline, virtual]
 

Implements NLAIAGENT::IMainAgent.

Definition at line 121 of file main_agent_script.h.

References getType, and NLAIAGENT::IObjectIA::IObjectIA.

virtual IObjectIA::CProcessResult NLAIAGENT::CMainAgentScript::sendMessage const CAgentNumber  ,
IObjectIA  
[inline, virtual]
 

Implements NLAIAGENT::IMainAgent.

Definition at line 114 of file main_agent_script.h.

References getType, and NLAIAGENT::IObjectIA::IObjectIA.

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

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 79 of file main_agent_script.cpp.


Member Data Documentation

NLAISCRIPT::CCodeContext* NLAIAGENT::CMainAgentScript::_CodeContext [protected]
 

Context for the script.

Definition at line 82 of file main_agent_script.h.

Referenced by CMainAgentScript, getAgentContext, newInstance, run, runExec, and ~CMainAgentScript.

NLAISCRIPT::CStackPointer * NLAIAGENT::CMainAgentScript::_Heap [protected]
 

Heap and stack for the script.

Definition at line 84 of file main_agent_script.h.

Referenced by CMainAgentScript, and ~CMainAgentScript.

NLAISCRIPT::CStackPointer* NLAIAGENT::CMainAgentScript::_Stack [protected]
 

Heap and stack for the script.

Definition at line 84 of file main_agent_script.h.

Referenced by CMainAgentScript, and ~CMainAgentScript.

const NLAIC::CIdentType CMainAgentScript::IdMainAgentScript [static]
 

Referenced by NLAISCRIPT::CManagerClass::CManagerClass.


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