|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAIAGENT::CMessageScript Class ReferenceClass for managing message agent script.
More...
#include <message_script.h>
Inheritance diagram for NLAIAGENT::CMessageScript:
List of all members.
Public Methods |
| CMessageScript (const CMessageScript &) |
| CMessageScript (NLAISCRIPT::CMessageClass *b=NULL) |
| CMessageScript (std::list< IObjectIA * > &, NLAISCRIPT::CMessageClass *) |
virtual | ~CMessageScript () |
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...
|
virtual sint32 | getBaseMethodCount () const |
| Return the nomber of internal C++ hard coded method that the class can process. More...
|
const NLAISCRIPT::CMessageClass * | getCreatorClass () const |
virtual void | setAgentManager (IAgentManager *) |
|
virtual sint32 | getMethodIndexSize () const |
| getMethodIndexSize define the nomber of method define in the class. More...
|
virtual tQueue | isMember (const IVarName *, const IVarName *, const IObjectIA &) const |
| The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. More...
|
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
| isClassInheritedFrom(className) allow us to known if this class have a base class with the name className. More...
|
virtual IObjectIA::CProcessResult | runMethodeMember (sint32, sint32, 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 bool | setStaticMember (sint32, IObjectIA *) |
| to cahnge a given components given by a string. More...
|
virtual const IObjectIA * | getStaticMember (sint32) const |
| to get the pointer of a given components referened by an index. 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 CProcessResult & | run () |
| Some where Run method define the process of the agen. More...
|
|
virtual bool | isEqual (const IBasicObjectIA &a) const |
| The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. 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 Attributes |
const NLAIC::CIdentType | IdMessageScript |
Protected Attributes |
NLAISCRIPT::CMessageClass * | _MessageClass |
Detailed Description
Class for managing message agent script.
Note that it is write with the same model of CAgentScript but don't have the same base class, because message is not an agent and message must be very light. Remember agent have connection list, child list and a mail boxe, this is incompatible with spirit of message.
-
Author:
-
Chafik sameh , Nevrax France
-
Date:
-
2000
Definition at line 48 of file message_script.h.
Constructor & Destructor Documentation
NLAIAGENT::CMessageScript::CMessageScript |
( |
const CMessageScript & |
|
) |
|
|
NLAIAGENT::CMessageScript::~CMessageScript |
( |
|
) |
[virtual] |
|
Member Function Documentation
sint32 NLAIAGENT::CMessageScript::getBaseMethodCount |
( |
|
) |
const [virtual] |
|
|
Definition at line 102 of file message_script.h.
Referenced by NLAIAGENT::CSetValueMsg::getType, NLAIAGENT::COnChangeMsg::getType, NLAIAGENT::CNotifyParentScript::getType, NLAIAGENT::CCancelGoalMsg::getType, NLAIAGENT::CGoalMsg::getType, NLAIAGENT::CGetValueMsg::getType, NLAIAGENT::CFactMsg::getType, NLAIAGENT::CMsgDebug::getType, NLAIAGENT::CConnectObjectValueMsg::getType, NLAIAGENT::CFailureMsg::getType, and NLAIAGENT::CSuccessMsg::getType. |
void NLAIAGENT::CMessageScript::getDebugString |
( |
std::string & |
t |
) |
const [virtual] |
|
sint32 NLAIAGENT::CMessageScript::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
const IObjectIA * NLAIAGENT::CMessageScript::getStaticMember |
( |
sint32 |
|
) |
const [virtual] |
|
sint32 NLAIAGENT::CMessageScript::getStaticMemberIndex |
( |
const IVarName & |
|
) |
const [virtual] |
|
sint32 NLAIAGENT::CMessageScript::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 296 of file message_script.cpp. |
sint32 NLAIAGENT::CMessageScript::isClassInheritedFrom |
( |
const IVarName & |
|
) |
const [virtual] |
|
bool NLAIAGENT::CMessageScript::isEqual |
( |
const IBasicObjectIA & |
a |
) |
const [virtual] |
|
|
The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.
Reimplemented from NLAIAGENT::IMessageBase.
Definition at line 380 of file message_script.cpp.
References isEqual. |
|
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::IMessageBase.
Reimplemented in NLAIAGENT::CSuccessMsg.
Definition at line 188 of file message_script.cpp.
References NLAISCRIPT::CCodeContext::Code, NLAISCRIPT::CCodeContext::ContextDebug, getBaseMethodCount, getMethode, NLAISCRIPT::CCodeContext::IdCodeContext, index, NLAIAGENT::IObjectIA::IObjectIA, NLAISCRIPT::CCodeContext::Param, r, 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::IMessageBase.
Reimplemented in NLAIAGENT::CSuccessMsg.
Definition at line 117 of file message_script.cpp.
References NLAISCRIPT::CCodeContext::Code, NLAISCRIPT::CCodeContext::ContextDebug, getBaseMethodCount, getMethode, NLAISCRIPT::CCodeContext::IdCodeContext, index, NLAIAGENT::IObjectIA::IObjectIA, NLAISCRIPT::CCodeContext::Param, r, and NLAISCRIPT::CCodeContext::Stack. |
virtual void NLAIAGENT::CMessageScript::setAgentManager |
( |
IAgentManager * |
|
) |
[inline, virtual] |
|
bool NLAIAGENT::CMessageScript::setStaticMember |
( |
sint32 |
, |
|
|
IObjectIA * |
|
|
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|
|