|
|
|
|
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 ReferenceClass for managing script agent.
More...
#include <agent_script.h>
Inheritance diagram for NLAIAGENT::CAgentScript:
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::CFactBase * | getFactBase () |
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::CAgentClass * | getClass () const |
virtual const NLAIAGENT::IVarName * | getClassName () const |
| Returns the name of the class in the registry. More...
|
virtual NLAILOGIC::CGoal * | getTopGoal () |
virtual const std::vector<
NLAILOGIC::CGoal * > * | getGoalStack () |
virtual void | callConstructor () |
|
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::IOpCode * | getMethode (sint32 inheritance, sint32 index) |
| get the closure correspondent of the method indexed by index in the base class inheritance. More...
|
NLAISCRIPT::IOpCode * | getMethode (sint32 index) |
| get the closure correspondent of the method indexed by index. More...
|
const IAgentManager * | getAgentManager () const |
| Get the manager of the instance. More...
|
const NLAISCRIPT::CAgentClass * | getFactoryClass () 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...
|
|
virtual int | getBaseMethodCount () const |
| Return the nomber of internal C++ hard coded method that the class can process. More...
|
virtual const IObjectIA * | getAgentContext () const |
| Get an valid context for this instance. More...
|
|
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 IObjectIA * | getStaticMember (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::CProcessResult & | run () |
| The work of an agent. More...
|
virtual const CProcessResult & | runStep () |
| Some where Run method define the process of the agen. More...
|
|
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::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 const NLAIC::IBasicType * | newInstance () 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::CIdentType & | getType () 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::COperandSimpleListOr * | msgType = NULL |
NLAISCRIPT::COperandSimpleListOr * | msgPerf = NULL |
NLAISCRIPT::CParam * | SendParamMessageScript = NULL |
NLAISCRIPT::CParam * | ParamSetStatic |
NLAISCRIPT::CParam * | SendCompParamMessageScript = NULL |
NLAISCRIPT::COperandSimple * | IdMsgNotifyParentClass = NULL |
NLAISCRIPT::COperandSimpleListOr * | ParamIdGetValueMsg = NULL |
NLAISCRIPT::CParam * | ParamGetValueMsg = NULL |
NLAISCRIPT::COperandSimpleListOr * | ParamIdSetValueMsg = NULL |
NLAISCRIPT::CParam * | ParamSetValueMsg = NULL |
NLAISCRIPT::COperandSimpleListOr * | ParamIdTellComponentMsg = NULL |
NLAISCRIPT::CParam * | ParamTellComponentMsg = NULL |
NLAISCRIPT::COperandSimpleListOr * | ParamIdInitComponentMsg = NULL |
NLAISCRIPT::CParam * | ParamInitComponentMsg = NULL |
NLAISCRIPT::COperandSimpleListOr * | IdMsgNotifyParent = NULL |
NLAISCRIPT::CParam * | ParamRunParentNotify = 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< CKeyAgent > | tsetDefNameAgent |
| 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 |
( |
|
) |
[virtual] |
|
Member Function Documentation
|
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::addSet |
( |
const std::string & |
|
) |
[virtual] |
|
virtual std::set<std::string>::const_iterator NLAIAGENT::CAgentScript::beginSet |
( |
|
) |
const [inline, virtual] |
|
void NLAIAGENT::CAgentScript::callConstructor |
( |
|
) |
[virtual] |
|
void NLAIAGENT::CAgentScript::callFunction |
( |
std::string & |
, |
|
|
NLAIAGENT::IObjectIA * |
p = NULL |
|
) |
[virtual] |
|
virtual std::set<std::string>::const_iterator NLAIAGENT::CAgentScript::endSet |
( |
|
) |
const [inline, virtual] |
|
virtual const IObjectIA* NLAIAGENT::CAgentScript::getAgentContext |
( |
|
) |
const [inline, virtual] |
|
const IAgentManager* NLAIAGENT::CAgentScript::getAgentManager |
( |
|
) |
const [inline] |
|
int NLAIAGENT::CAgentScript::getBaseMethodCount |
( |
|
) |
const [virtual] |
|
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. |
virtual const std::vector<NLAILOGIC::CGoal *>* NLAIAGENT::CAgentScript::getGoalStack |
( |
|
) |
[inline, virtual] |
|
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] |
|
const IObjectIA * NLAIAGENT::CAgentScript::getStaticMember |
( |
sint32 |
|
) |
const [virtual] |
|
sint32 NLAIAGENT::CAgentScript::getStaticMemberIndex |
( |
const IVarName & |
|
) |
const [virtual] |
|
sint32 NLAIAGENT::CAgentScript::getStaticMemberSize |
( |
|
) |
const [virtual] |
|
virtual NLAILOGIC::CGoal* NLAIAGENT::CAgentScript::getTopGoal |
( |
|
) |
[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.
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] |
|
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] |
|
bool NLAIAGENT::CAgentScript::isEqual |
( |
const IBasicObjectIA & |
a |
) |
const [virtual] |
|
void NLAIAGENT::CAgentScript::onKill |
( |
IConnectIA * |
A |
) |
[virtual] |
|
void NLAIAGENT::CAgentScript::processMessages |
( |
|
) |
[virtual] |
|
void NLAIAGENT::CAgentScript::releaseAgentScript |
( |
|
) |
[static] |
|
virtual void NLAIAGENT::CAgentScript::removeGoal |
( |
NLAILOGIC::CGoal * |
|
) |
[inline, virtual] |
|
|
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. |
void NLAIAGENT::CAgentScript::runChildren |
( |
|
) |
[virtual] |
|
bool NLAIAGENT::CAgentScript::runChildrenStepByStep |
( |
|
) |
[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. |
|
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. |
|
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. |
|
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. |
|
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. |
void NLAIAGENT::CAgentScript::setAgentManager |
( |
IAgentManager * |
manager |
) |
[virtual] |
|
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] |
|
Member Data Documentation
|
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]
|
|
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. |
sint NLAIAGENT::CAgentScript::_iComponents [protected]
|
|
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. |
std::set<std::string> NLAIAGENT::CAgentScript::mapSet [protected]
|
|
The documentation for this class was generated from the following files:
|
|