From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNLAIAGENT_1_1CAgentScript.html | 4293 ++++++++++++++++++++ 1 file changed, 4293 insertions(+) create mode 100644 docs/doxygen/nel/classNLAIAGENT_1_1CAgentScript.html (limited to 'docs/doxygen/nel/classNLAIAGENT_1_1CAgentScript.html') diff --git a/docs/doxygen/nel/classNLAIAGENT_1_1CAgentScript.html b/docs/doxygen/nel/classNLAIAGENT_1_1CAgentScript.html new file mode 100644 index 00000000..cfa53a02 --- /dev/null +++ b/docs/doxygen/nel/classNLAIAGENT_1_1CAgentScript.html @@ -0,0 +1,4293 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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::CAgentScript Class Reference

Class for managing script agent. +More... +

+#include <agent_script.h> +

+

Inheritance diagram for 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 +NLAIAGENT::CActorScript +NLAIAGENT::CAgentManagerTimer +NLAIAGENT::CAgentOperation +NLAIAGENT::CAgentWatchTimer +NLAIAGENT::IMainAgent +NLAIAGENT::CFsmScript +NLAIAGENT::COperatorScript +NLAILOGIC::CGoalPath +NLAIAGENT::CAgentClockTimer +NLAIAGENT::CMainAgentScript +NLAIAGENT::CSeqFsmScript + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Types

enum  TMethodNumDef {
+  TSend, +TSendComponent, +TGetChildTag, +TAddChildTag, +
+  TRemoveChild, +TFather, +TSelf, +TGetName, +
+  TIsInherited, +TGetClassName, +TRunTellComponent, +TRunAskComponent, +
+  TRunAskParentNotify, +TRunTellParentNotify, +TSetStatic, +TGetValue, +
+  TSetValue, +TDeflautProccessMsg, +TInitComponent, +TIsEUU, +
+  TAddSet, +TLastM +
+ }
 This enum define ident for hard coded method that we have to import its under the script. More...

enum  TTypeCheck { CheckAll, +CheckCount, +DoNotCheck + }

Public Methods

virtual void callFunction (std::string &, NLAIAGENT::IObjectIA *p=NULL)
 CAgentScript (const CAgentScript &)
 Construct with copy constructor. More...

 CAgentScript (IAgentManager *)
 Build with an knowning manager. More...

 CAgentScript (IAgentManager *, IBasicAgent *, std::list< IObjectIA * > &, NLAISCRIPT::CAgentClass *)
 Build with an knowning manager and a list of static compoment. More...

virtual ~CAgentScript ()
virtual bool isa (const std::string &) const
 Test the set of the agent. More...

virtual void addSet (const std::string &)
 Add a set for the agent. More...

virtual std::set< std::string
+>::const_iterator 
beginSet () const
virtual std::set< std::string
+>::const_iterator 
endSet () const
virtual const NLAILOGIC::CFactBasegetFactBase ()
virtual IObjectIA::CProcessResult runGoalMsg (IBaseGroupType *)
virtual IObjectIA::CProcessResult runCancelGoalMsg (IBaseGroupType *)
virtual IObjectIA::CProcessResult runFactMsg (IBaseGroupType *)
virtual void removeGoal (NLAILOGIC::CGoal *)
virtual void setTopLevel (NLAIAGENT::CAgentScript *)
const NLAISCRIPT::CAgentClassgetClass () const
virtual const NLAIAGENT::IVarNamegetClassName () const
 Returns the name of the class in the registry. More...

virtual NLAILOGIC::CGoalgetTopGoal ()
virtual const std::vector<
+ NLAILOGIC::CGoal * > * 
getGoalStack ()
virtual void callConstructor ()
CAgentScript member methods.
virtual void addOperator (NLAILOGIC::IBaseOperator *)
 Method for adding operator. More...

virtual void remOperator (NLAILOGIC::IBaseOperator *p)
 Removing operator from th agent. More...

virtual IObjectIA::CProcessResult addDynamicAgent (NLAIAGENT::IBaseGroupType *g)
 Add an agent to the dynamic agent child. More...

virtual IObjectIA::CProcessResult addDynamicAgent (CStringType &, IBasicAgent *)
virtual IObjectIA::CProcessResult getDynamicAgent (NLAIAGENT::IBaseGroupType *g)
 Get agent from the dynamic agent child. More...

virtual IObjectIA::CProcessResult getDynamicName (NLAIAGENT::IBaseGroupType *g)
 Get the instance name of the agent in its manager. More...

virtual void removeDynamic (NLAIAGENT::IBasicAgent *ag)
 remove an agent from the manager. More...

virtual IObjectIA::CProcessResult removeDynamic (NLAIAGENT::IBaseGroupType *g)
virtual IObjectIA::CProcessResult runAskParentNotify (IBaseGroupType *)
 This function process the message CNotifyParentScript for the runAsk. More...

virtual IObjectIA::CProcessResult runTellComponent (IBaseGroupType *)
 This function process the message MsgTellCompoment the result is to transmit a Message to an compoment. More...

IObjectIA::CProcessResult runAskGetValue (IBaseGroupType *)
IObjectIA::CProcessResult runTellSetValue (IBaseGroupType *)
virtual IObjectIA::CProcessResult runInitComponent (IBaseGroupType *)
virtual IObjectIA::CProcessResult runInitClass (IBaseGroupType *)
virtual IObjectIA::CProcessResult runTellParentNotify (IBaseGroupType *)
 This function process the message CNotifyParentScript for the runTell. More...

NLAISCRIPT::IOpCodegetMethode (sint32 inheritance, sint32 index)
 get the closure correspondent of the method indexed by index in the base class inheritance. More...

NLAISCRIPT::IOpCodegetMethode (sint32 index)
 get the closure correspondent of the method indexed by index. More...

const IAgentManagergetAgentManager () const
 Get the manager of the instance. More...

const NLAISCRIPT::CAgentClassgetFactoryClass () const
 Get the creator of this instance. More...

virtual sint32 getChildMessageIndex (const IMessageBase *, sint32)
 get the mail boxe for scripted message. More...

virtual void setAgentManager (IAgentManager *manager)
 Set the manager for this instance. More...

IAgentManager member method.
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...

Base class member method.
virtual void runChildren ()
 Run all child. More...

virtual bool runChildrenStepByStep ()
 Activates the child agents. More...

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

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

virtual void processMessages (IMessageBase *, IObjectIA *)
virtual void processContinuation (IMessageBase *, IMessageBase *)
virtual IObjectIA::CProcessResult runActivity ()
 Mailer do'nt have own activity. More...

virtual bool isEqual (const IBasicObjectIA &a) const
 Implementation of the isEqual of the IBasicObjectIA. More...

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

IObjectIA::CProcessResult sendMethod (IObjectIA *)
IObjectIA::CProcessResult sendMethodCompoment (IObjectIA *)
virtual IObjectIA::CProcessResult runMethodBase (int heritance, int index, IObjectIA *)
virtual IObjectIA::CProcessResult runMethodBase (int index, IObjectIA *)
virtual std::string getMethodeMemberDebugString (sint32, sint32) const
 The methode getMethodeMemberDebugString(sint32 heritance, sint32 index) return a string that define the name and the argument of the method. More...

virtual sint32 getStaticMemberSize () const
 Static member is the component that the agent is create and die with. More...

virtual sint32 getStaticMemberIndex (const IVarName &) const
 to get the index of a given components name. More...

virtual const IObjectIAgetStaticMember (sint32) const
 to get the pointer of a given components referened by an index. More...

virtual bool setStaticMember (sint32, IObjectIA *)
 to cahnge a given components given by a string. More...

virtual tQueue getPrivateMember (const IVarName *, const NLAIAGENT::IVarName *, const IObjectIA &) const
virtual tQueue isMember (const IVarName *, const NLAIAGENT::IVarName *, const IObjectIA &) const
virtual tQueue isDeflautProccessMsg (const IVarName *, const NLAIAGENT::IVarName *, const IObjectIA &) const
virtual sint32 isClassInheritedFrom (const NLAIAGENT::IVarName &) const
virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...

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

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

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

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

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

virtual const CProcessResult & runStep ()
 Some where Run method define the process of the agen. More...

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

virtual void save (NLMISC::IStream &os)
 Save the class in a stream. 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 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 NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...


Static Public Methods

void initAgentScript ()
void releaseAgentScript ()

Static Public Attributes

CMethodCall ** StaticMethod = NULL
NLAISCRIPT::COperandSimpleListOrmsgType = NULL
NLAISCRIPT::COperandSimpleListOrmsgPerf = NULL
NLAISCRIPT::CParamSendParamMessageScript = NULL
NLAISCRIPT::CParamParamSetStatic
NLAISCRIPT::CParamSendCompParamMessageScript = NULL
NLAISCRIPT::COperandSimpleIdMsgNotifyParentClass = NULL
NLAISCRIPT::COperandSimpleListOrParamIdGetValueMsg = NULL
NLAISCRIPT::CParamParamGetValueMsg = NULL
NLAISCRIPT::COperandSimpleListOrParamIdSetValueMsg = NULL
NLAISCRIPT::CParamParamSetValueMsg = NULL
NLAISCRIPT::COperandSimpleListOrParamIdTellComponentMsg = NULL
NLAISCRIPT::CParamParamTellComponentMsg = NULL
NLAISCRIPT::COperandSimpleListOrParamIdInitComponentMsg = NULL
NLAISCRIPT::CParamParamInitComponentMsg = NULL
NLAISCRIPT::COperandSimpleListOrIdMsgNotifyParent = NULL
NLAISCRIPT::CParamParamRunParentNotify = NULL
const NLAIC::CIdentType IdAgentScript

Protected Methods

void createComponents (std::list< IObjectIA * > &)
virtual CProcessResult sendBroadCast (IObjectIA *)

Protected Attributes

IObjectIA ** _Components
 Table of static compoments. More...

int _NbComponents
 Nomber of static compoment. More...

IAgentManager_AgentManager
 The manager where the agent is run this manager have the agent script context. More...

tsetDefNameAgent _DynamicAgentName
 Map for store agent added in the dynamic child container. More...

NLAISCRIPT::CAgentClass_AgentClass
 The creator of this instance. This useful for find scripted method entry point. More...

sint _iComponents
std::set< std::string > mapSet

Private Types

typedef std::multiset< CKeyAgenttsetDefNameAgent
 Type def for the map witch store the name of dynamic agent store in the agent. More...

+

Detailed Description

+Class for managing script agent. +

+

+Author:
+Chafik sameh , Nevrax France
+Date:
+2000
+

+ +

+Definition at line 64 of file agent_script.h.


Member Typedef Documentation

+

+ + + + +
+ + +
typedef std::multiset<CKeyAgent> NLAIAGENT::CAgentScript::tsetDefNameAgent [private] +
+
+ + + + + +
+   + + +

+Type def for the map witch store the name of dynamic agent store in the agent. +

+ +

+Definition at line 158 of file agent_script.h.

+


Member Enumeration Documentation

+

+ + + + +
+ + +
enum NLAIAGENT::CAgentScript::TMethodNumDef +
+
+ + + + + +
+   + + +

+This enum define ident for hard coded method that we have to import its under the script. +

+

+Enumeration values:
+ + + + + + + + + + + + + + + + + + + + + + + +
TSend  +
TSendComponent  +Index of the send method.
TGetChildTag  +Index of the send with continuation method.
TAddChildTag  +Index of the getChild method.
TRemoveChild  +Index of the addChild method.
TFather  +Index of the removeDynamic method.
TSelf  +Get the father of the agent.
TGetName  +Get The self pointer.
TIsInherited  +Get the name of the agent in the manager child list.
TGetClassName  +
TRunTellComponent  +Returns the name of the class in the registry.
TRunAskComponent  +transmit Message to an compoment.
TRunAskParentNotify  +transmit Message to an compoment.
TRunTellParentNotify  +the offest of the runAskParentNotify method.
TSetStatic  +the offest of the runTellParentNotify method.
TGetValue  +Method to assign a new value to a static component.
TSetValue  +Processes the "Ask(GetValueMsg)" msg to obtain a public value of the agent.
TDeflautProccessMsg  +Processes the "Tell(SetValueMsg)" msg to connect to the value of a distant object.
TInitComponent  +
TIsEUU  +
TAddSet  +
TLastM  +The count of export method.
+
+ +

+Definition at line 69 of file agent_script.h.

+

+ + + + +
+ + +
enum NLAIAGENT::CAgentScript::TTypeCheck +
+
+ + + + + +
+   + + +

+

+Enumeration values:
+ + + + +
CheckAll  +
CheckCount  +
DoNotCheck  +
+
+ +

+Definition at line 95 of file agent_script.h.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NLAIAGENT::CAgentScript::CAgentScript const CAgentScript &  
+
+ + + + + +
+   + + +

+Construct with copy constructor. +

+ +

+Definition at line 353 of file agent_script.cpp. +

+References _AgentClass, _AgentManager, _Components, _iComponents, _NbComponents, CAgentScript, NLAIC::CBinaryType::getValue, NLAIAGENT::IObjectIA::IObjectIA, mapSet, t, NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tInterpret. +

+Referenced by NLAIAGENT::CActorScript::activate, NLAIAGENT::CMainAgentScript::addDynamicAgent, addDynamicAgent, CAgentScript, NLAIAGENT::CAgentOperation::clone, clone, createComponents, NLAIAGENT::CAgentOperation::initClass, NLAIAGENT::CAgentOperation::isEqual, NLAIAGENT::COperatorScript::lookForGoals, NLAIAGENT::CAgentOperation::newInstance, newInstance, runMethodBase, sendMessageToDynmaicChild, setAgentManager, setStaticMember, NLAIAGENT::CActorScript::unActivate, and NLAIAGENT::CAgentOperation::update.

+

+ + + + +
+ + + + + + + + + + +
NLAIAGENT::CAgentScript::CAgentScript IAgentManager 
+
+ + + + + +
+   + + +

+Build with an knowning manager. +

+ +

+Definition at line 397 of file agent_script.cpp. +

+References _AgentManager, _Components, _iComponents, and _NbComponents.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NLAIAGENT::CAgentScript::CAgentScript IAgentManager ,
IBasicAgent ,
std::list< IObjectIA * > &  ,
NLAISCRIPT::CAgentClass 
+
+ + + + + +
+   + + +

+Build with an knowning manager and a list of static compoment. +

+ +

+Definition at line 405 of file agent_script.cpp. +

+References components.

+

+ + + + +
+ + + + + + + + + +
NLAIAGENT::CAgentScript::~CAgentScript   [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 452 of file agent_script.cpp. +

+References _Components, _NbComponents, NLAIAGENT::IObjectIA::IObjectIA, and NLAIAGENT::IAgent::Kill.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::addDynamicAgent CStringType ,
IBasicAgent 
[virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 787 of file agent_script.cpp. +

+References _DynamicAgentName, NLAIAGENT::IAgentComposite::addChild, CAgentScript, NLAIC::CBinaryType::getValue, NLAIAGENT::IObjectIA::IObjectIA, r, t, NLAIC::CTypeOfObject::tAgent, NLAIC::CTypeOfObject::tInterpret, and type.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::addDynamicAgent NLAIAGENT::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 in NLAIAGENT::CMainAgentScript. +

+Definition at line 737 of file agent_script.cpp. +

+References _DynamicAgentName, NLAIAGENT::IAgentComposite::addChild, CAgentScript, NLAIC::CBinaryType::getValue, NLAIAGENT::IBasicAgent::IBasicAgent, NLAIAGENT::IObjectIA::IObjectIA, r, s, t, NLAIC::CTypeOfObject::tAgent, NLAIC::CTypeOfObject::tInterpret, and type. +

+Referenced by NLAIAGENT::CActorScript::Launch, and runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::addOperator NLAILOGIC::IBaseOperator  [virtual]
+
+ + + + + +
+   + + +

+Method for adding operator. +

+ +

+Definition at line 1613 of file agent_script.cpp.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::addSet const std::string &   [virtual]
+
+ + + + + +
+   + + +

+Add a set for the agent. +

+ +

+Definition at line 732 of file agent_script.cpp. +

+References mapSet, and s. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + +
virtual std::set<std::string>::const_iterator NLAIAGENT::CAgentScript::beginSet   const [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 351 of file agent_script.h. +

+References mapSet.

+

+ + + + +
+ + + + + + + + + +
void NLAIAGENT::CAgentScript::callConstructor   [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 2356 of file agent_script.cpp. +

+References NLAISCRIPT::CCodeContext::Code, NLAISCRIPT::CAgentClass::findMethod, NLAISCRIPT::CAgentClass::getBrancheCode, getClass, getType, NLAISCRIPT::CCallPrint::inputOutput, NLAISCRIPT::CCodeBrancheRun::run, and NLAISCRIPT::CCodeContext::Self.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLAIAGENT::CAgentScript::callFunction std::string &  ,
NLAIAGENT::IObjectIA  p = NULL
[virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 2386 of file agent_script.cpp. +

+References NLAISCRIPT::CCodeContext::Code, NLAISCRIPT::CAgentClass::findMethod, NLAISCRIPT::CAgentClass::getBrancheCode, getClass, getType, NLAISCRIPT::CCallPrint::inputOutput, NLAISCRIPT::CCodeBrancheRun::run, and NLAISCRIPT::CCodeContext::Self.

+

+ + + + +
+ + + + + + + + + +
const NLAIC::IBasicType * NLAIAGENT::CAgentScript::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::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 620 of file agent_script.cpp. +

+References CAgentScript.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::createComponents std::list< IObjectIA * > &   [protected]
+
+ + + + + +
+   + + +

+ +

+Definition at line 2327 of file agent_script.cpp. +

+References _Components, _NbComponents, CAgentScript, components, NLAIC::CBinaryType::getValue, NLAIAGENT::IObjectIA::IObjectIA, t, NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tInterpret.

+

+ + + + +
+ + + + + + + + + +
virtual std::set<std::string>::const_iterator NLAIAGENT::CAgentScript::endSet   const [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 356 of file agent_script.h. +

+References mapSet.

+

+ + + + +
+ + + + + + + + + +
virtual const IObjectIA* NLAIAGENT::CAgentScript::getAgentContext   const [inline, virtual]
+
+ + + + + +
+   + + +

+Get an valid context for this instance. +

+ +

+Implements NLAIAGENT::IAgentManager. +

+Reimplemented in NLAIAGENT::CMainAgentScript. +

+Definition at line 285 of file agent_script.h. +

+References getAgentManager, and NLAIAGENT::IObjectIA::IObjectIA.

+

+ + + + +
+ + + + + + + + + +
const IAgentManager* NLAIAGENT::CAgentScript::getAgentManager   const [inline]
+
+ + + + + +
+   + + +

+Get the manager of the instance. +

+ +

+Definition at line 260 of file agent_script.h. +

+References _AgentManager, and NLAIAGENT::IAgentManager::IAgentManager. +

+Referenced by NLAIAGENT::COperatorScript::checkPreconditions, NLAIAGENT::COperatorScript::execOnActivate, NLAIAGENT::CActorScript::failure, getAgentContext, NLAIAGENT::CActorScript::pause, NLAIAGENT::CActorScript::restart, NLAIAGENT::CActorScript::run, NLAIAGENT::CActorScript::success, and NLAIAGENT::CActorScript::unActivate.

+

+ + + + +
+ + + + + + + + + +
int NLAIAGENT::CAgentScript::getBaseMethodCount   const [virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NLAIAGENT::IAgentManager. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 2043 of file agent_script.cpp. +

+Referenced by getMethodeMemberDebugString, processMessages, and runMethodeMember.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
sint32 NLAIAGENT::CAgentScript::getChildMessageIndex const IMessageBase ,
sint32  
[virtual]
+
+ + + + + +
+   + + +

+get the mail boxe for scripted message. +

+ +

+Definition at line 488 of file agent_script.cpp. +

+References _AgentClass, and NLAISCRIPT::CAgentClass::getChildMessageIndex.

+

+ + + + +
+ + + + + + + + + +
const NLAISCRIPT::CAgentClass* NLAIAGENT::CAgentScript::getClass   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 408 of file agent_script.h. +

+Referenced by callConstructor, and callFunction.

+

+ + + + +
+ + + + + + + + + +
const NLAIAGENT::IVarName * NLAIAGENT::CAgentScript::getClassName   const [virtual]
+
+ + + + + +
+   + + +

+Returns the name of the class in the registry. +

+ +

+Definition at line 79 of file agent_script.cpp. +

+References _AgentClass, and NLAISCRIPT::IClassInterpret::getClassName. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::getDebugString std::string &   t const [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. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 640 of file agent_script.cpp. +

+References _AgentClass, _AgentManager, _Components, _NbComponents, NLAISCRIPT::CAgentClass::getComponentName, NLAIAGENT::CStringType::getStr, NLAISCRIPT::IClassInterpret::getType, getType, NLAIAGENT::CIdMethod::Index, isMember, param, r, NLAIC::IPointerGestion::release, NLAISCRIPT::CCallMethod::runOpCode, NLAISCRIPT::CCodeContext::Self, NLAISCRIPT::CCodeContext::Stack, NLAIC::stringGetBuild, t, and NLAIAGENT::tQueue.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::getDynamicAgent NLAIAGENT::IBaseGroupType  g [virtual]
+
+ + + + + +
+   + + +

+Get agent from the dynamic agent child. +

+Method have an IBaseGroupType argument where he must store an CStringType representative of the name of the agent. +

+Definition at line 860 of file agent_script.cpp. +

+References _DynamicAgentName, r, s, and x. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::getDynamicName NLAIAGENT::IBaseGroupType  g [virtual]
+
+ + + + + +
+   + + +

+Get the instance name of the agent in its manager. +

+ +

+Definition at line 1101 of file agent_script.cpp. +

+References _DynamicAgentName, NLAIAGENT::IBaseGroupType::get, NLAIAGENT::IObjectIA::IObjectIA, r, and s.

+

+ + + + +
+ + + + + + + + + +
virtual const NLAILOGIC::CFactBase* NLAIAGENT::CAgentScript::getFactBase   [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 379 of file agent_script.h.

+

+ + + + +
+ + + + + + + + + +
const NLAISCRIPT::CAgentClass* NLAIAGENT::CAgentScript::getFactoryClass   const [inline]
+
+ + + + + +
+   + + +

+Get the creator of this instance. +

+ +

+Definition at line 266 of file agent_script.h. +

+Referenced by NLAIAGENT::COperatorScript::getType, and NLAIAGENT::CMainAgentScript::run.

+

+ + + + +
+ + + + + + + + + +
virtual const std::vector<NLAILOGIC::CGoal *>* NLAIAGENT::CAgentScript::getGoalStack   [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 421 of file agent_script.h.

+

+ + + + +
+ + + + + + + + + + +
NLAISCRIPT::IOpCode * NLAIAGENT::CAgentScript::getMethode sint32   index
+
+ + + + + +
+   + + +

+get the closure correspondent of the method indexed by index. +

+ +

+Definition at line 550 of file agent_script.cpp. +

+References _AgentClass, NLAISCRIPT::CAgentClass::getBrancheCode, NLAISCRIPT::CAgentClass::getMethodIndexSize, NLAISCRIPT::IClassInterpret::getType, getType, and index.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
NLAISCRIPT::IOpCode * NLAIAGENT::CAgentScript::getMethode sint32   inheritance,
sint32   index
+
+ + + + + +
+   + + +

+get the closure correspondent of the method indexed by index in the base class inheritance. +

+ +

+Definition at line 534 of file agent_script.cpp. +

+References _AgentClass, NLAISCRIPT::CAgentClass::getBrancheCode, NLAISCRIPT::CAgentClass::getMethodIndexSize, index, and NLAISCRIPT::CAgentClass::sizeVTable. +

+Referenced by processMessages, and runMethodeMember.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
std::string NLAIAGENT::CAgentScript::getMethodeMemberDebugString sint32  ,
sint32  
const [virtual]
+
+ + + + + +
+   + + +

+The methode getMethodeMemberDebugString(sint32 heritance, sint32 index) return a string that define the name and the argument of the method. +

+ +

+Reimplemented from NLAIAGENT::IObjectIA. +

+Definition at line 1948 of file agent_script.cpp. +

+References _AgentClass, getBaseMethodCount, NLAISCRIPT::CAgentClass::getBrancheCode, id, TAddChildTag, TFather, TGetChildTag, TGetName, TGetValue, TInitComponent, TRunAskComponent, TRunAskParentNotify, TRunTellComponent, TRunTellParentNotify, TSelf, TSend, TSendComponent, TSetStatic, and TSetValue.

+

+ + + + +
+ + + + + + + + + +
sint32 NLAIAGENT::CAgentScript::getMethodIndexSize   const [virtual]
+
+ + + + + +
+   + + +

+getMethodIndexSize define the nomber of method define in the class. +

+ +

+Reimplemented from NLAIAGENT::IBasicAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 608 of file agent_script.cpp. +

+References TLastM.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
tQueue NLAIAGENT::CAgentScript::getPrivateMember const IVarName ,
const NLAIAGENT::IVarName ,
const IObjectIA 
const [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 2164 of file agent_script.cpp. +

+References NLAIAGENT::isTemplateMember, param, and NLAIAGENT::tQueue. +

+Referenced by isMember.

+

+ + + + +
+ + + + + + + + + + +
const IObjectIA * NLAIAGENT::CAgentScript::getStaticMember sint32   const [virtual]
+
+ + + + + +
+   + + +

+to get the pointer of a given components referened by an index. +

+ +

+Reimplemented from NLAIAGENT::IObjectIA. +

+Definition at line 523 of file agent_script.cpp. +

+References _Components, _NbComponents, and index. +

+Referenced by sendMessage.

+

+ + + + +
+ + + + + + + + + + +
sint32 NLAIAGENT::CAgentScript::getStaticMemberIndex const IVarName  const [virtual]
+
+ + + + + +
+   + + +

+to get the index of a given components name. +

+ +

+Reimplemented from NLAIAGENT::IObjectIA. +

+Definition at line 2255 of file agent_script.cpp. +

+References _AgentClass, and NLAISCRIPT::CAgentClass::getInheritedStaticMemberIndex. +

+Referenced by runInitComponent, runTellSetValue, and sendMessage.

+

+ + + + +
+ + + + + + + + + +
sint32 NLAIAGENT::CAgentScript::getStaticMemberSize   const [virtual]
+
+ + + + + +
+   + + +

+Static member is the component that the agent is create and die with. +

+getStaticMemberSize to get the size of the static member components +

+Reimplemented from NLAIAGENT::IObjectIA. +

+Definition at line 518 of file agent_script.cpp. +

+References _NbComponents.

+

+ + + + +
+ + + + + + + + + +
virtual NLAILOGIC::CGoal* NLAIAGENT::CAgentScript::getTopGoal   [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 416 of file agent_script.h.

+

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

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 1636 of file agent_script.cpp. +

+References _AgentClass, NLAISCRIPT::IClassInterpret::getType, and IdAgentScript. +

+Referenced by callConstructor, callFunction, getDebugString, getMethode, isa, processMessages, run, runChildren, runStep, runTellParentNotify, save, and sendMessage.

+

+ + + + +
+ + + + + + + + + +
bool NLAIAGENT::CAgentScript::haveActivity   const [virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CAgentManagerTimer. +

+Definition at line 1563 of file agent_script.cpp. +

+References _AgentClass, and NLAISCRIPT::CAgentClass::getRunMethod. +

+Referenced by NLAIAGENT::CMainAgentScript::run.

+

+ + + + +
+ + + + + + + + + +
void NLAIAGENT::CAgentScript::initAgentScript   [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 92 of file agent_script.cpp. +

+References _ADD_SET_, _ADDCHILD_, _FATHER_, _GETCHILD_, _GETNAME_, _ISA_, _REMOVECHILD_, _RUNASK_, _RUNTEL_, _SELF_, _SEND_, _SETSTATIC_, NLAILINK::buildScript, NLAILOGIC::CBoolType::IdBoolType, NLAIAGENT::CGetValueMsg::IdGetValueMsg, NLAISCRIPT::CGetValueMsgClass::IdGetValueMsgClass, NLAISCRIPT::CMessageClass::IdMessageClass, IdMsgNotifyParent, NLAISCRIPT::CMsgNotifyParentClass::IdMsgNotifyParentClass, IdMsgNotifyParentClass, NLAIAGENT::CSetValueMsg::IdSetValueMsg, NLAISCRIPT::CSetValueMsgClass::IdSetValueMsgClass, NLAIAGENT::UInt32Type::IdUInt32Type, NLAIC::IPointerGestion::incRef, msgPerf, msgType, ParamGetValueMsg, ParamIdGetValueMsg, ParamIdInitComponentMsg, ParamIdSetValueMsg, ParamInitComponentMsg, ParamRunParentNotify, ParamSetValueMsg, ParamTellComponentMsg, SendCompParamMessageScript, SendParamMessageScript, and StaticMethod.

+

+ + + + +
+ + + + + + + + + + +
bool NLAIAGENT::CAgentScript::isa const std::string &   const [virtual]
+
+ + + + + +
+   + + +

+Test the set of the agent. +

+ +

+Definition at line 717 of file agent_script.cpp. +

+References getType, isClassInheritedFrom, mapSet, and s. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
sint32 NLAIAGENT::CAgentScript::isClassInheritedFrom const NLAIAGENT::IVarName  const [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 2250 of file agent_script.cpp. +

+References _AgentClass, and NLAISCRIPT::CAgentClass::isClassInheritedFrom. +

+Referenced by isa, and runMethodBase.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
tQueue NLAIAGENT::CAgentScript::isDeflautProccessMsg const IVarName ,
const NLAIAGENT::IVarName ,
const IObjectIA 
const [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 2228 of file agent_script.cpp. +

+References param, r, TDeflautProccessMsg, NLAIAGENT::tQueue, and NLAIC::CIdentType::VoidType. +

+Referenced by isMember.

+

+ + + + +
+ + + + + + + + + + +
bool NLAIAGENT::CAgentScript::isEqual const IBasicObjectIA  a const [virtual]
+
+ + + + + +
+   + + +

+Implementation of the isEqual of the IBasicObjectIA. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 696 of file agent_script.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
tQueue NLAIAGENT::CAgentScript::isMember const IVarName ,
const NLAIAGENT::IVarName ,
const IObjectIA 
const [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 2173 of file agent_script.cpp. +

+References _AgentClass, getPrivateMember, NLAISCRIPT::CAgentClass::getPrivateMember, isDeflautProccessMsg, param, r, and NLAIAGENT::tQueue. +

+Referenced by NLAIAGENT::COperatorScript::getDebugString, getDebugString, and sendMessage.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::load NLMISC::IStream  is [virtual]
+
+ + + + + +
+   + + +

+Load the class from a stream. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 581 of file agent_script.cpp. +

+References _Components, _NbComponents, NLAIC::CIdentTypeAlloc::allocClass, id, NLAIAGENT::IObjectIA::IObjectIA, and NLMISC::IStream::serial.

+

+ + + + +
+ + + + + + + + + +
const NLAIC::IBasicType * NLAIAGENT::CAgentScript::newInstance   const [virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 626 of file agent_script.cpp. +

+References _AgentClass, NLAISCRIPT::CAgentClass::buildNewInstance, and CAgentScript.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::onKill IConnectIA  A [virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CAgentWatchTimer. +

+Definition at line 701 of file agent_script.cpp. +

+References _DynamicAgentName.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLAIAGENT::CAgentScript::processContinuation IMessageBase ,
IMessageBase 
[virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1407 of file agent_script.cpp. +

+References NLAIAGENT::IObjectIA::IObjectIA. +

+Referenced by processMessages.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLAIAGENT::CAgentScript::processMessages IMessageBase ,
IObjectIA 
[virtual]
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAIAGENT::COperatorScript. +

+Definition at line 1358 of file agent_script.cpp. +

+References NLAISCRIPT::CCodeContext::ContextDebug, getBaseMethodCount, NLAIAGENT::IBasicAgent::getMail, getMethode, NLAIAGENT::IObjectIA::IObjectIA, param, processContinuation, NLAISCRIPT::CCallMethod::runOpCode, NLAISCRIPT::CCodeContext::Self, and NLAISCRIPT::CCodeContext::Stack.

+

+ + + + +
+ + + + + + + + + +
void NLAIAGENT::CAgentScript::processMessages   [virtual]
+
+ + + + + +
+   + + +

+The processMessages method, process the loop/Run message. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 1500 of file agent_script.cpp. +

+References _AgentManager, NLAIAGENT::IBasicAgent::getMail, getType, and NLAIAGENT::IObjectIA::IObjectIA. +

+Referenced by NLAIAGENT::CMainAgentScript::run.

+

+ + + + +
+ + + + + + + + + +
void NLAIAGENT::CAgentScript::releaseAgentScript   [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 331 of file agent_script.cpp. +

+References StaticMethod.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::remOperator NLAILOGIC::IBaseOperator  p [virtual]
+
+ + + + + +
+   + + +

+Removing operator from th agent. +

+ +

+Definition at line 1618 of file agent_script.cpp.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::removeDynamic NLAIAGENT::IBaseGroupType  g [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 816 of file agent_script.cpp. +

+References _DynamicAgentName, NLAIAGENT::IBaseGroupType::getFront, r, NLAIAGENT::IAgentComposite::removeChild, and s.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::removeDynamic NLAIAGENT::IBasicAgent  ag [virtual]
+
+ + + + + +
+   + + +

+remove an agent from the manager. +

+The rgument g must store an CStringType. This string is the name of the agent to remove. The methode return the state of the operation, an digital at 1.0 if the remove is done an digital at 0.0 is the method did'nt find the agent. +

+Definition at line 843 of file agent_script.cpp. +

+References _DynamicAgentName, and NLAIAGENT::IAgentComposite::removeChild. +

+Referenced by runMethodBase, and NLAIAGENT::CActorScript::unActivate.

+

+ + + + +
+ + + + + + + + + + +
virtual void NLAIAGENT::CAgentScript::removeGoal NLAILOGIC::CGoal  [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 399 of file agent_script.h. +

+Referenced by NLAILOGIC::CGoal::operatorSuccess.

+

+ + + + +
+ + + + + + + + + +
const IObjectIA::CProcessResult & NLAIAGENT::CAgentScript::run   [virtual]
+
+ + + + + +
+   + + +

+The work of an agent. +

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

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 1574 of file agent_script.cpp. +

+References NLMISC::CTime::getPerformanceTime, getType, and r.

+

+ + + + +
+ + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runActivity   [virtual]
+
+ + + + + +
+   + + +

+Mailer do'nt have own activity. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CAgentManagerTimer. +

+Definition at line 1553 of file agent_script.cpp. +

+References _AgentClass, _AgentManager, NLAISCRIPT::CAgentClass::getRunMethod, NLAIAGENT::IObjectIA::ProcessRun, runMethodeMember, and NLAISCRIPT::CCodeContext::Self. +

+Referenced by NLAIAGENT::CMainAgentScript::run.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runAskGetValue IBaseGroupType 
+
+ + + + + +
+   + + +

+ +

+Definition at line 952 of file agent_script.cpp. +

+References _AgentClass, _Components, NLAISCRIPT::CAgentClass::getInheritedStaticMemberIndex, NLAIAGENT::IMessageBase::getSender, NLAIC::IPointerGestion::incRef, index, NLAIAGENT::IObjectIA::IObjectIA, r, NLAIAGENT::IListBasicManager::set, NLAIAGENT::IMessageBase::setContinuation, NLAIAGENT::IMessageBase::setMethodIndex, and NLAIAGENT::IMessageBase::setPerformatif. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runAskParentNotify IBaseGroupType  [virtual]
+
+ + + + + +
+   + + +

+This function process the message CNotifyParentScript for the runAsk. +

+ +

+Definition at line 888 of file agent_script.cpp. +

+References NLAIAGENT::IConnectIA::getParent, NLAIAGENT::IBasicAgent::IBasicAgent, and r. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
virtual IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runCancelGoalMsg IBaseGroupType  [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 389 of file agent_script.h.

+

+ + + + +
+ + + + + + + + + +
void NLAIAGENT::CAgentScript::runChildren   [virtual]
+
+ + + + + +
+   + + +

+Run all child. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CFsmScript. +

+Definition at line 1323 of file agent_script.cpp. +

+References _Components, _NbComponents, getType, and NLAIAGENT::IObjectIA::IObjectIA. +

+Referenced by NLAIAGENT::CMainAgentScript::run.

+

+ + + + +
+ + + + + + + + + +
bool NLAIAGENT::CAgentScript::runChildrenStepByStep   [virtual]
+
+ + + + + +
+   + + +

+Activates the child agents. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Definition at line 1340 of file agent_script.cpp. +

+References _Components, _iComponents, _NbComponents, and NLAIAGENT::IObjectIA::IObjectIA.

+

+ + + + +
+ + + + + + + + + + +
virtual IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runFactMsg IBaseGroupType  [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 394 of file agent_script.h.

+

+ + + + +
+ + + + + + + + + + +
virtual IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runGoalMsg IBaseGroupType  [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 384 of file agent_script.h.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runInitClass IBaseGroupType  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1049 of file agent_script.cpp. +

+References r.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runInitComponent IBaseGroupType  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1006 of file agent_script.cpp. +

+References _Components, _NbComponents, getStaticMemberIndex, NLAIC::IPointerGestion::incRef, index, NLAIAGENT::IObjectIA::IObjectIA, r, setStaticMember, and NLAIAGENT::IListBasicManager::size. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runMethodBase int   index,
IObjectIA 
[virtual]
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 1790 of file agent_script.cpp. +

+References _AgentClass, addDynamicAgent, addSet, CAgentScript, getClassName, getDynamicAgent, NLAISCRIPT::CAgentClass::getInheritedStaticMemberIndex, NLAIAGENT::IConnectIA::getParent, index, NLAIAGENT::IObjectIA::IObjectIA, isa, isClassInheritedFrom, param, r, NLAIAGENT::IObjectIA::CProcessResult::Result, runAskGetValue, runAskParentNotify, runInitComponent, runTellComponent, runTellParentNotify, runTellSetValue, s, sendMethod, sendMethodCompoment, TAddChildTag, TAddSet, TFather, TGetChildTag, TGetClassName, TGetName, TGetValue, TInitComponent, TIsEUU, TIsInherited, TRunAskComponent, TRunAskParentNotify, TRunTellComponent, TRunTellParentNotify, TSelf, TSend, TSendComponent, TSetStatic, TSetValue, NLAISCRIPT::CAgentClass::updateStaticMember, and value.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runMethodBase int   heritance,
int   index,
IObjectIA 
[virtual]
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 1644 of file agent_script.cpp. +

+References _AgentClass, addDynamicAgent, CAgentScript, getClassName, NLAISCRIPT::CAgentClass::getComponentIndex, getDynamicAgent, NLAIAGENT::IConnectIA::getParent, index, NLAIAGENT::IObjectIA::IObjectIA, isClassInheritedFrom, param, r, removeDynamic, runAskGetValue, runAskParentNotify, runInitComponent, runTellComponent, runTellParentNotify, runTellSetValue, s, sendMethod, sendMethodCompoment, TAddChildTag, TFather, TGetChildTag, TGetClassName, TGetName, TGetValue, TInitComponent, TIsInherited, TRemoveChild, TRunAskComponent, TRunAskParentNotify, TRunTellComponent, TRunTellParentNotify, TSelf, TSend, TSendComponent, TSetStatic, TSetValue, NLAISCRIPT::CAgentClass::updateStaticMember, and value. +

+Referenced by runMethodeMember.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runMethodeMember sint32   index,
IObjectIA 
[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. +

+Reimplemented in NLAIAGENT::CAgentWatchTimer. +

+Definition at line 2108 of file agent_script.cpp. +

+References NLAISCRIPT::CCodeContext::Code, NLAISCRIPT::CCodeContext::ContextDebug, getBaseMethodCount, getMethode, NLAISCRIPT::CCodeContext::IdCodeContext, index, NLAIAGENT::IObjectIA::IObjectIA, NLAISCRIPT::CCodeContext::Param, r, runMethodBase, and NLAISCRIPT::CCodeContext::Stack.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runMethodeMember sint32   heritance,
sint32   index,
IObjectIA 
[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 2048 of file agent_script.cpp. +

+References _AgentClass, NLAISCRIPT::CCodeContext::Code, NLAISCRIPT::CCodeContext::ContextDebug, getBaseMethodCount, NLAISCRIPT::CAgentClass::getBrancheCode, getMethode, NLAISCRIPT::CCodeContext::IdCodeContext, index, NLAIAGENT::IObjectIA::IObjectIA, NLAISCRIPT::CCodeContext::Param, r, runMethodBase, and NLAISCRIPT::CCodeContext::Stack. +

+Referenced by NLAIAGENT::COperatorScript::execOnActivate, NLAIAGENT::CActorScript::failure, NLAIAGENT::CActorScript::pause, NLAIAGENT::CActorScript::restart, NLAIAGENT::CMainAgentScript::run, NLAIAGENT::CActorScript::run, runActivity, NLAIAGENT::CActorScript::success, and NLAIAGENT::CActorScript::unActivate.

+

+ + + + +
+ + + + + + + + + +
const IObjectIA::CProcessResult & NLAIAGENT::CAgentScript::runStep   [virtual]
+
+ + + + + +
+   + + +

+Some where Run method define the process of the agen. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Definition at line 1601 of file agent_script.cpp. +

+References getType.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runTellComponent IBaseGroupType  [virtual]
+
+ + + + + +
+   + + +

+This function process the message MsgTellCompoment the result is to transmit a Message to an compoment. +

+ +

+Definition at line 935 of file agent_script.cpp. +

+References NLAIAGENT::IMessageBase::getPerformatif, NLAIAGENT::IMessageBase::getSender, NLAIC::IPointerGestion::incRef, NLAIAGENT::IObjectIA::IObjectIA, r, sendMessage, NLAIAGENT::IMessageBase::setPerformatif, and NLAIAGENT::IMessageBase::setSender. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runTellParentNotify IBaseGroupType  [virtual]
+
+ + + + + +
+   + + +

+This function process the message CNotifyParentScript for the runTell. +

+ +

+Definition at line 899 of file agent_script.cpp. +

+References _Components, _NbComponents, NLAIAGENT::IConnectIA::getParent, getType, NLAIC::CBinaryType::getValue, r, t, NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tInterpret. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::runTellSetValue IBaseGroupType 
+
+ + + + + +
+   + + +

+ +

+Definition at line 978 of file agent_script.cpp. +

+References getStaticMemberIndex, NLAIC::IPointerGestion::incRef, index, NLAIAGENT::IObjectIA::IObjectIA, r, setStaticMember, and NLAIAGENT::IListBasicManager::size. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::save NLMISC::IStream  os [virtual]
+
+ + + + + +
+   + + +

+Save the class in a stream. +

+ +

+Reimplemented from NLAIAGENT::IAgent. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 569 of file agent_script.cpp. +

+References _Components, _NbComponents, getType, and NLMISC::IStream::serial.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::sendBroadCast IObjectIA  [protected, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1143 of file agent_script.cpp. +

+References _DynamicAgentName, and NLAIAGENT::IObjectIA::IObjectIA.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::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 1196 of file agent_script.cpp. +

+References _AgentClass, getStaticMember, getStaticMemberIndex, NLAIAGENT::IObjectIA::IObjectIA, NLAIAGENT::processError, and sendMessageToDynmaicChild.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::sendMessage IObjectIA  m [virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NLAIAGENT::IConnectIA. +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 1230 of file agent_script.cpp. +

+References NLMISC::CTime::getPerformanceTime, getType, NLAIC::CBinaryType::getValue, NLAIAGENT::CIdMethod::Index, isMember, r, t, NLAIC::CTypeOfObject::tInterpret, NLAIC::CTypeOfObject::tMessage, and NLAIAGENT::tQueue. +

+Referenced by runTellComponent, sendMethod, and sendMethodCompoment.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::sendMessageToDynmaicChild const IVarName ,
IObjectIA 
+
+ + + + + +
+   + + +

+ +

+Definition at line 1164 of file agent_script.cpp. +

+References _DynamicAgentName, CAgentScript, NLAIAGENT::IObjectIA::IObjectIA, NLAIAGENT::processError, and r. +

+Referenced by sendMessage.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::sendMethod IObjectIA 
+
+ + + + + +
+   + + +

+ +

+Definition at line 1123 of file agent_script.cpp. +

+References param, and sendMessage. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
IObjectIA::CProcessResult NLAIAGENT::CAgentScript::sendMethodCompoment IObjectIA 
+
+ + + + + +
+   + + +

+ +

+Definition at line 1132 of file agent_script.cpp. +

+References param, and sendMessage. +

+Referenced by runMethodBase.

+

+ + + + +
+ + + + + + + + + + +
void NLAIAGENT::CAgentScript::setAgentManager IAgentManager  manager [virtual]
+
+ + + + + +
+   + + +

+Set the manager for this instance. +

+ +

+Definition at line 472 of file agent_script.cpp. +

+References _AgentManager, _Components, _NbComponents, CAgentScript, NLAIC::CBinaryType::getValue, t, NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tInterpret.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool NLAIAGENT::CAgentScript::setStaticMember sint32  ,
IObjectIA 
[virtual]
+
+ + + + + +
+   + + +

+to cahnge a given components given by a string. +

+ +

+Reimplemented from NLAIAGENT::IObjectIA. +

+Definition at line 493 of file agent_script.cpp. +

+References _Components, _NbComponents, CAgentScript, NLAIC::CBinaryType::getValue, index, NLAIAGENT::IObjectIA::IObjectIA, t, NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tInterpret. +

+Referenced by NLAIAGENT::COperatorScript::checkTrigMsg, NLAIAGENT::COperatorScript::linkGoalArgs, runInitComponent, and runTellSetValue.

+

+ + + + +
+ + + + + + + + + + +
virtual void NLAIAGENT::CAgentScript::setTopLevel NLAIAGENT::CAgentScript *   [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAIAGENT::CActorScript. +

+Definition at line 403 of file agent_script.h. +

+Referenced by NLAIAGENT::CFsmScript::setTopLevel.

+


Member Data Documentation

+

+ + + + +
+ + +
NLAISCRIPT::CAgentClass* NLAIAGENT::CAgentScript::_AgentClass [protected] +
+
+ + + + + +
+   + + +

+The creator of this instance. This useful for find scripted method entry point. +

+ +

+Definition at line 183 of file agent_script.h. +

+Referenced by NLAIAGENT::CActorScript::activate, CAgentScript, NLAIAGENT::COperatorScript::calcPriority, NLAIAGENT::COperatorScript::checkActivation, NLAIAGENT::COperatorScript::checkPreconditions, NLAIAGENT::COperatorScript::checkTrigMsg, NLAIAGENT::CActorScript::failure, getChildMessageIndex, getClassName, NLAIAGENT::COperatorScript::getDebugString, NLAIAGENT::CSeqFsmScript::getDebugString, NLAIAGENT::CFsmScript::getDebugString, getDebugString, getMethode, getMethodeMemberDebugString, getStaticMemberIndex, getType, haveActivity, isClassInheritedFrom, isMember, NLAIAGENT::COperatorScript::linkGoalArgs, NLAIAGENT::COperatorScript::lookForGoals, NLAIAGENT::COperatorScript::newInstance, NLAIAGENT::CSeqFsmScript::newInstance, NLAIAGENT::CFsmScript::newInstance, newInstance, NLAIAGENT::CActorScript::newInstance, NLAIAGENT::CActorScript::pause, NLAIAGENT::COperatorScript::propagate, NLAIAGENT::CActorScript::restart, NLAIAGENT::COperatorScript::run, runActivity, runAskGetValue, runMethodBase, runMethodeMember, sendMessage, NLAIAGENT::CActorScript::success, and NLAIAGENT::CActorScript::unActivate.

+

+ + + + +
+ + +
IAgentManager* NLAIAGENT::CAgentScript::_AgentManager [protected] +
+
+ + + + + +
+   + + +

+The manager where the agent is run this manager have the agent script context. +

+ +

+Definition at line 171 of file agent_script.h. +

+Referenced by CAgentScript, getAgentManager, NLAIAGENT::COperatorScript::getDebugString, getDebugString, processMessages, runActivity, and setAgentManager.

+

+ + + + +
+ + +
IObjectIA** NLAIAGENT::CAgentScript::_Components [protected] +
+
+ + + + + +
+   + + +

+Table of static compoments. +

+ +

+Definition at line 162 of file agent_script.h. +

+Referenced by CAgentScript, createComponents, getDebugString, getStaticMember, load, NLAIAGENT::CActorScript::pause, NLAIAGENT::CActorScript::restart, runAskGetValue, runChildren, runChildrenStepByStep, runInitComponent, runTellParentNotify, save, setAgentManager, setStaticMember, NLAIAGENT::CFsmScript::setTopLevel, NLAIAGENT::CActorScript::setTopLevel, and ~CAgentScript.

+

+ + + + +
+ + +
tsetDefNameAgent NLAIAGENT::CAgentScript::_DynamicAgentName [protected] +
+
+ + + + + +
+   + + +

+Map for store agent added in the dynamic child container. +

+Note that if message have a run message for prossing message, this message is achieve in this mail box, else he is achive in the base class mail box. +

+Definition at line 178 of file agent_script.h. +

+Referenced by addDynamicAgent, getDynamicAgent, getDynamicName, onKill, removeDynamic, sendBroadCast, and sendMessageToDynmaicChild.

+

+ + + + +
+ + +
sint NLAIAGENT::CAgentScript::_iComponents [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 184 of file agent_script.h. +

+Referenced by CAgentScript, and runChildrenStepByStep.

+

+ + + + +
+ + +
int NLAIAGENT::CAgentScript::_NbComponents [protected] +
+
+ + + + + +
+   + + +

+Nomber of static compoment. +

+ +

+Definition at line 167 of file agent_script.h. +

+Referenced by CAgentScript, createComponents, getDebugString, getStaticMember, getStaticMemberSize, load, NLAIAGENT::CActorScript::pause, NLAIAGENT::CActorScript::restart, runChildren, runChildrenStepByStep, runInitComponent, runTellParentNotify, save, setAgentManager, setStaticMember, NLAIAGENT::CFsmScript::setTopLevel, NLAIAGENT::CActorScript::setTopLevel, and ~CAgentScript.

+

+ + + + +
+ + +
const NLAIC::CIdentType CAgentScript::IdAgentScript [static] +
+
+ + + + + +
+   + + +

+ +

+Referenced by NLAISCRIPT::CAgentClass::CAgentClass, and getType.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimpleListOr * NLAIAGENT::CAgentScript::IdMsgNotifyParent = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 67 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimple * NLAIAGENT::CAgentScript::IdMsgNotifyParentClass = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 66 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
std::set<std::string> NLAIAGENT::CAgentScript::mapSet [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 186 of file agent_script.h. +

+Referenced by addSet, beginSet, CAgentScript, endSet, and isa.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimpleListOr * NLAIAGENT::CAgentScript::msgPerf = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 63 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimpleListOr * NLAIAGENT::CAgentScript::msgType = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 62 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::CParam * NLAIAGENT::CAgentScript::ParamGetValueMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 71 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimpleListOr * NLAIAGENT::CAgentScript::ParamIdGetValueMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimpleListOr * NLAIAGENT::CAgentScript::ParamIdInitComponentMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 76 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimpleListOr * NLAIAGENT::CAgentScript::ParamIdSetValueMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 72 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::COperandSimpleListOr * NLAIAGENT::CAgentScript::ParamIdTellComponentMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file agent_script.cpp.

+

+ + + + +
+ + +
NLAISCRIPT::CParam * NLAIAGENT::CAgentScript::ParamInitComponentMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 77 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::CParam * NLAIAGENT::CAgentScript::ParamRunParentNotify = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::CParam* NLAIAGENT::CAgentScript::ParamSetStatic [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 139 of file agent_script.h.

+

+ + + + +
+ + +
NLAISCRIPT::CParam * NLAIAGENT::CAgentScript::ParamSetValueMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::CParam * NLAIAGENT::CAgentScript::ParamTellComponentMsg = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::CParam * NLAIAGENT::CAgentScript::SendCompParamMessageScript = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 65 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

+ + + + +
+ + +
NLAISCRIPT::CParam * NLAIAGENT::CAgentScript::SendParamMessageScript = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 64 of file agent_script.cpp. +

+Referenced by initAgentScript.

+

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

+ +

+Reimplemented in NLAIAGENT::CAgentWatchTimer. +

+Definition at line 69 of file agent_script.cpp. +

+Referenced by initAgentScript, and releaseAgentScript.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1