# 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  

NLAISCRIPT::CAgentClass Class Reference

Class CAgentClass. More...

#include <interpret_object_agent.h>

Inheritance diagram for NLAISCRIPT::CAgentClass:

NLAISCRIPT::IAgentMultiClass NLAISCRIPT::IClassInterpret NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAISCRIPT::CActorClass NLAISCRIPT::CGoalPathClass NLAISCRIPT::CManagerClass NLAISCRIPT::CMessageClass NLAISCRIPT::COperatorClass NLAISCRIPT::CFsmClass NLAISCRIPT::CCancelGoalMsgClass NLAISCRIPT::CConnectObjectValueMsgClass NLAISCRIPT::CDebugMsgClass NLAISCRIPT::CFactMsgClass NLAISCRIPT::CFailureMsgClass NLAISCRIPT::CGetValueMsgClass NLAISCRIPT::CGoalMsgClass NLAISCRIPT::CMsgNotifyParentClass NLAISCRIPT::COnChangeMsgClass NLAISCRIPT::CSetValueMsgClass NLAISCRIPT::CSuccessMsgClass List of all members.

Public Methods

 CAgentClass (const NLAIAGENT::IVarName &)
 CAgentClass (const NLAIAGENT::IVarName &, const NLAIAGENT::IVarName &)
 CAgentClass (const CAgentClass &)
 CAgentClass (const NLAIC::CIdentType &)
 CAgentClass ()
virtual ~CAgentClass ()
virtual NLAIAGENT::IObjectIAbuildNewInstance () const
 Instanciates an object of the class. 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 &) 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 void save (NLMISC::IStream &)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &)
 Load the class from a stream. More...

virtual const NLAIAGENT::IObjectIA::CProcessResultrun ()
 Some where Run method define the process of the agen. More...

virtual bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
virtual void classIsMounted ()
 Registers a new static component. More...

virtual sint32 registerComponent (const NLAIAGENT::IVarName &type_name)
 Adds a static component to an agent. More...

virtual sint32 registerComponent (const NLAIAGENT::IVarName &type_name, const NLAIAGENT::CStringVarName &field_name)
 Adds a static component to an agent. More...

virtual CComponentgetComponent (sint32 i) const
 Returns a CComponent struct describing a static component from its index in the class Only the class's own static members are considered, not the inherited ones. More...

virtual CComponentgetComponent (const NLAIAGENT::IVarName &name) const
 Returns a CComponent struct describing a static component from its name in the class Only the class's own static members are considered, not the inherited ones. More...

virtual sint32 getComponentIndex (const NLAIAGENT::IVarName &) const
virtual sint32 getStaticMemberIndex (const NLAIAGENT::IVarName &) const
 Returns a CComponent struct describing a static component from its name in the class Only the class's own static members are considered, not the inherited ones. More...

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

virtual sint32 getStaticMemberSize () const
 returns the number of static members specific to the class (not the inherited ones). More...

sint32 getInheritedStaticMemberIndex (const NLAIAGENT::IVarName &) const
virtual void createComponents (std::list< NLAIAGENT::IObjectIA * > &) const
 Build the class static components for a new instance, including inherited ones. More...

virtual void createBaseClassComponents (std::list< NLAIAGENT::IObjectIA * > &) const
 Build the bases classes for a new instance, including inherited ones. More...

virtual const char * getComponentName (sint32) const
 Gets the name of the components with an offset reference. More...

virtual const IClassInterpretgetInheritance (sint32 n) const
 Return a pointer represent the inheritance range n, the inheritance graph are represented by a vector. More...

sint32 findMethod (const NLAIAGENT::IVarName &name, const CParam &CParam) const
virtual sint32 getChildMessageIndex (const NLAIAGENT::IMessageBase *, sint32)
virtual void initStatics ()
virtual bool setStaticMember (sint32, NLAIAGENT::IObjectIA *)
 to cahnge a given components given by a string. More...

virtual void updateStaticMember (sint32, NLAIAGENT::IObjectIA *)
virtual NLAIAGENT::IObjectIAgetStaticComponentValue (std::string &)
virtual NLAIC::CTypeOfObject getTypeClass () const
sint32 getConstructorIndex ()
Methods.
virtual sint32 addBrancheCode (const NLAIAGENT::IVarName &, const CParam &)
virtual CMethodeNamegetBrancheCode () const
virtual CMethodeNamegetBrancheCode (sint32) const
 throw NLAIE::CExceptionUnReference;. More...

virtual CMethodeNamegetBrancheCode (sint32, sint32) const
 get method in the base class. where h is the base class offset m is the method offset. More...

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

virtual sint32 getRunMethod () const
 return the absolut index of the run() method of this class. More...

virtual void setRunMethod (sint32 index)
 set the absolut index of the run() method of this class. More...

virtual sint32 getConstroctorMethod () const
virtual void setConstroctorMethod (sint32 index)
Builds the v_table.
virtual void buildVTable ()
 Builds the v_table. More...

virtual void buildVMethode ()
virtual sint32 sizeVTable () const
 Get the size of the v_table. More...

void buildChildsMessageMap ()
 Build the table that translates an agent's message processing function index into it's child equivalent message processing function index. More...

Classes.
virtual sint32 isClassInheritedFrom (const NLAIAGENT::IVarName &) const
const NLAIAGENT::IVarNamegetInheritanceName () const
 Returns the name of the base class in the registry. More...

void setInheritanceName (const NLAIAGENT::IVarName &name)
 Returns the name of the base class of this class. More...

virtual const IClassInterpretgetBaseClass () const
 Defines the base class of this class. More...

const CAgentClass * getSuperClass () const
 Returns the base class of this class. More...

const void getClassPath (std::vector< const CAgentClass * > &path) const
 Builds a vector with the path from the super class to this class. More...

sint32 getNbBaseClass () const
 Returns the number of base classes (the distance to the super class). More...

virtual const IClassInterpretgetComputeBaseClass ()
 Returns the number of base classes. More...


Static Public Attributes

const NLAIC::CIdentType IdAgentClass

Private Types

typedef std::vector< CMethodTypetVectorMethode

Private Methods

bool isMessageFunc (const CParam &) const
void clearIndirectMsgTable ()

Private Attributes

std::vector< CComponent * > _Components
std::map< std::string, uint_ComponentMap
std::vector< NLAIAGENT::IObjectIA * > _StaticComponents
tVectorMethode _Methode
std::vector< const CAgentClass * > _VTable
std::vector< sint32 * > _MsgIndirectTable
sint32 _lastRef
sint32 _RunIndex
const IClassInterpret_Base_class
sint32 _ConstructorIndex
NLAIAGENT::IVarName_Inheritance

Detailed Description

Class CAgentClass.

This class is an concret class use to define an scripted agent.

Author:
Chafik sameh , Portier Pierre. , Nevrax France
Date:
2000

Definition at line 101 of file interpret_object_agent.h.


Member Typedef Documentation

typedef std::vector<CMethodType> NLAISCRIPT::CAgentClass::tVectorMethode [private]
 

Definition at line 158 of file interpret_object_agent.h.


Constructor & Destructor Documentation

NLAISCRIPT::CAgentClass::CAgentClass const NLAIAGENT::IVarName  
 

Definition at line 39 of file interpret_object_agent.cpp.

References _Base_class, _ConstructorIndex, _lastRef, _RunIndex, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::CAgentScript::IdAgentScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance, and NLAISCRIPT::IClassInterpret::setType.

Referenced by buildChildsMessageMap, buildNewInstance, createBaseClassComponents, getClassPath, getNbBaseClass, getSuperClass, isEqual, and isMessageFunc.

NLAISCRIPT::CAgentClass::CAgentClass const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  
 

Definition at line 51 of file interpret_object_agent.cpp.

References _Base_class, _ConstructorIndex, _lastRef, _RunIndex, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::CAgentScript::IdAgentScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance, and NLAISCRIPT::IClassInterpret::setType.

NLAISCRIPT::CAgentClass::CAgentClass const CAgentClass &   
 

Definition at line 65 of file interpret_object_agent.cpp.

References _Base_class, _ConstructorIndex, _lastRef, _RunIndex, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::CAgentScript::IdAgentScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance, and NLAISCRIPT::IClassInterpret::setType.

NLAISCRIPT::CAgentClass::CAgentClass const NLAIC::CIdentType  
 

Definition at line 78 of file interpret_object_agent.cpp.

References _Base_class, _ConstructorIndex, _lastRef, _RunIndex, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::CAgentScript::IdAgentScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance, and NLAISCRIPT::IClassInterpret::setType.

NLAISCRIPT::CAgentClass::CAgentClass  
 

Definition at line 91 of file interpret_object_agent.cpp.

References _Base_class, _ConstructorIndex, _lastRef, _Methode, _RunIndex, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::CAgentScript::IdAgentScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, and NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance.

Referenced by clone, and newInstance.

NLAISCRIPT::CAgentClass::~CAgentClass   [virtual]
 

Definition at line 105 of file interpret_object_agent.cpp.

References _Components, _Inheritance, _StaticComponents, clearIndirectMsgTable, and NLAIC::IPointerGestion::release.


Member Function Documentation

sint32 NLAISCRIPT::CAgentClass::addBrancheCode const NLAIAGENT::IVarName  ,
const CParam  
[virtual]
 

Implements NLAISCRIPT::IClassInterpret.

Definition at line 458 of file interpret_object_agent.cpp.

References _ConstructorIndex, _lastRef, _Methode, findMethod, NLAISCRIPT::IClassInterpret::getClassName, NLAIAGENT::IVarName::getString, param, and NLAIC::stringGetBuild.

Referenced by buildChildsMessageMap.

void NLAISCRIPT::CAgentClass::buildChildsMessageMap  
 

Build the table that translates an agent's message processing function index into it's child equivalent message processing function index.

Definition at line 150 of file interpret_object_agent.cpp.

References _Components, _Methode, _MsgIndirectTable, _VTable, addBrancheCode, CAgentClass, clearIndirectMsgTable, components, findMethod, getBrancheCode, NLAISCRIPT::IClassInterpret::getClassName, NLAIC::CIdentType::getFactory, NLAIAGENT::IVarName::getString, isMessageFunc, NLAIC::CTypeOfObject::tInterpret, and x.

NLAIAGENT::IObjectIA * NLAISCRIPT::CAgentClass::buildNewInstance   const [virtual]
 

Instanciates an object of the class.

Implements NLAISCRIPT::IClassInterpret.

Reimplemented in NLAISCRIPT::COperatorClass.

Definition at line 726 of file interpret_object_agent.cpp.

References CAgentClass, components, and createBaseClassComponents.

Referenced by NLAIAGENT::COperatorScript::newInstance, NLAIAGENT::CSeqFsmScript::newInstance, NLAIAGENT::CFsmScript::newInstance, NLAIAGENT::CAgentScript::newInstance, and NLAIAGENT::CActorScript::newInstance.

void NLAISCRIPT::CAgentClass::buildVMethode   [virtual]
 

Definition at line 649 of file interpret_object_agent.cpp.

References _Methode, _VTable, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAISCRIPT::IClassInterpret::getClassName, NLAISCRIPT::IClassInterpret::IClassInterpret, sizeVTable, and t.

Referenced by buildVTable.

void NLAISCRIPT::CAgentClass::buildVTable   [virtual]
 

Builds the v_table.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 641 of file interpret_object_agent.cpp.

References _VTable, buildVMethode, and getClassPath.

Referenced by NLAISCRIPT::CCancelGoalMsgClass::CCancelGoalMsgClass, NLAISCRIPT::CConnectObjectValueMsgClass::CConnectObjectValueMsgClass, NLAISCRIPT::CDebugMsgClass::CDebugMsgClass, NLAISCRIPT::CFactMsgClass::CFactMsgClass, NLAISCRIPT::CFailureMsgClass::CFailureMsgClass, NLAISCRIPT::CGetValueMsgClass::CGetValueMsgClass, NLAISCRIPT::CGoalMsgClass::CGoalMsgClass, NLAISCRIPT::CMsgNotifyParentClass::CMsgNotifyParentClass, NLAISCRIPT::CSetValueMsgClass::CSetValueMsgClass, and NLAISCRIPT::CSuccessMsgClass::CSuccessMsgClass.

void NLAISCRIPT::CAgentClass::classIsMounted   [virtual]
 

Registers a new static component.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 259 of file interpret_object_agent.cpp.

void NLAISCRIPT::CAgentClass::clearIndirectMsgTable   [private]
 

Definition at line 126 of file interpret_object_agent.cpp.

References _MsgIndirectTable.

Referenced by buildChildsMessageMap, and ~CAgentClass.

const NLAIC::IBasicType * NLAISCRIPT::CAgentClass::clone   const [virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::COperatorClass.

Definition at line 743 of file interpret_object_agent.cpp.

References CAgentClass, and x.

void NLAISCRIPT::CAgentClass::createBaseClassComponents std::list< NLAIAGENT::IObjectIA * > &    const [virtual]
 

Build the bases classes for a new instance, including inherited ones.

Definition at line 592 of file interpret_object_agent.cpp.

References CAgentClass, createComponents, getBaseClass, NLAISCRIPT::IClassInterpret::getName, and NLAIAGENT::IVarName::getString.

Referenced by NLAISCRIPT::COperatorClass::buildNewInstance, NLAISCRIPT::COnChangeMsgClass::buildNewInstance, NLAISCRIPT::CDebugMsgClass::buildNewInstance, NLAISCRIPT::CFactMsgClass::buildNewInstance, NLAISCRIPT::CCancelGoalMsgClass::buildNewInstance, NLAISCRIPT::CGoalMsgClass::buildNewInstance, NLAISCRIPT::CMsgNotifyParentClass::buildNewInstance, NLAISCRIPT::CMessageClass::buildNewInstance, buildNewInstance, NLAISCRIPT::CSetValueMsgClass::buildNewInstance, NLAISCRIPT::CGetValueMsgClass::buildNewInstance, NLAISCRIPT::CConnectObjectValueMsgClass::buildNewInstance, NLAISCRIPT::CFailureMsgClass::buildNewInstance, NLAISCRIPT::CSuccessMsgClass::buildNewInstance, NLAISCRIPT::CSeqFsmClass::buildNewInstance, NLAISCRIPT::CFsmClass::buildNewInstance, NLAISCRIPT::CActorClass::buildNewInstance, and NLAISCRIPT::CGoalPathClass::buildNewInstance.

void NLAISCRIPT::CAgentClass::createComponents std::list< NLAIAGENT::IObjectIA * > &    const [virtual]
 

Build the class static components for a new instance, including inherited ones.

Definition at line 609 of file interpret_object_agent.cpp.

References _Components, NLAIC::CIdentType::getIndex, NLAIC::getRegistry, id, and NLAIC::IPointerGestion::incRef.

Referenced by createBaseClassComponents.

sint32 NLAISCRIPT::CAgentClass::findMethod const NLAIAGENT::IVarName   name,
const CParam   CParam
const
 

Definition at line 577 of file interpret_object_agent.cpp.

References _Methode, and param.

Referenced by addBrancheCode, buildChildsMessageMap, NLAIAGENT::CAgentScript::callConstructor, NLAIAGENT::CAgentScript::callFunction, and initStatics.

const IClassInterpret * NLAISCRIPT::CAgentClass::getBaseClass   const [virtual]
 

Defines the base class of this class.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 866 of file interpret_object_agent.cpp.

References _Base_class, _Inheritance, NLAIC::getRegistry, NLAIAGENT::IVarName::getString, and NLAISCRIPT::IClassInterpret::IClassInterpret.

Referenced by createBaseClassComponents, getClassPath, getStaticMember, and getStaticMemberIndex.

CMethodeName & NLAISCRIPT::CAgentClass::getBrancheCode sint32   ,
sint32   
const [virtual]
 

get method in the base class. where h is the base class offset m is the method offset.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 438 of file interpret_object_agent.cpp.

References _VTable.

CMethodeName & NLAISCRIPT::CAgentClass::getBrancheCode sint32    const [virtual]
 

throw NLAIE::CExceptionUnReference;.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 424 of file interpret_object_agent.cpp.

References _Methode.

CMethodeName & NLAISCRIPT::CAgentClass::getBrancheCode   const [virtual]
 

Implements NLAISCRIPT::IClassInterpret.

Definition at line 447 of file interpret_object_agent.cpp.

References _lastRef, and _Methode.

Referenced by buildChildsMessageMap, NLAIAGENT::CAgentScript::callConstructor, NLAIAGENT::CAgentScript::callFunction, NLAIAGENT::CMessageScript::getMethode, NLAIAGENT::CAgentScript::getMethode, NLAIAGENT::CAgentScript::getMethodeMemberDebugString, initStatics, and NLAIAGENT::CAgentScript::runMethodeMember.

sint32 NLAISCRIPT::CAgentClass::getBrancheCodeSize   const [virtual]
 

Definition at line 433 of file interpret_object_agent.cpp.

References _Methode.

sint32 NLAISCRIPT::CAgentClass::getChildMessageIndex const NLAIAGENT::IMessageBase  ,
sint32   
[virtual]
 

Definition at line 254 of file interpret_object_agent.cpp.

References _MsgIndirectTable, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, and NLAIAGENT::IMessageBase::getMethodIndex.

Referenced by NLAIAGENT::CAgentScript::getChildMessageIndex.

const void NLAISCRIPT::CAgentClass::getClassPath std::vector< const CAgentClass * > &    path const
 

Builds a vector with the path from the super class to this class.

Definition at line 896 of file interpret_object_agent.cpp.

References CAgentClass, getBaseClass, NLAISCRIPT::IClassInterpret::getName, and NLAIAGENT::IVarName::getString.

Referenced by buildVTable.

CComponent * NLAISCRIPT::CAgentClass::getComponent const NLAIAGENT::IVarName   name const [virtual]
 

Returns a CComponent struct describing a static component from its name in the class Only the class's own static members are considered, not the inherited ones.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 307 of file interpret_object_agent.cpp.

References _Components.

CComponent * NLAISCRIPT::CAgentClass::getComponent sint32    i const [virtual]
 

Returns a CComponent struct describing a static component from its index in the class Only the class's own static members are considered, not the inherited ones.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 416 of file interpret_object_agent.cpp.

References _Components.

Referenced by NLAIAGENT::CMessageScript::getDebugString, and getStaticComponentValue.

sint32 NLAISCRIPT::CAgentClass::getComponentIndex const NLAIAGENT::IVarName   const [virtual]
 

Definition at line 290 of file interpret_object_agent.cpp.

References _Components, and NLAIC::IBasicType::getDebugString.

Referenced by NLAISCRIPT::COperatorClass::compileFactPattern, NLAIAGENT::CAgentScript::runMethodBase, and NLAISCRIPT::COperatorClass::setGoal.

const char * NLAISCRIPT::CAgentClass::getComponentName sint32    const [virtual]
 

Gets the name of the components with an offset reference.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 924 of file interpret_object_agent.cpp.

References _VTable.

Referenced by NLAIAGENT::CMessageScript::getDebugString, and NLAIAGENT::CAgentScript::getDebugString.

const IClassInterpret * NLAISCRIPT::CAgentClass::getComputeBaseClass   [virtual]
 

Returns the number of base classes.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 846 of file interpret_object_agent.cpp.

References _Base_class, _Inheritance, NLAIC::getRegistry, NLAIAGENT::IVarName::getString, and NLAISCRIPT::IClassInterpret::IClassInterpret.

sint32 NLAISCRIPT::CAgentClass::getConstroctorMethod   const [virtual]
 

Definition at line 948 of file interpret_object_agent.cpp.

References _ConstructorIndex.

sint32 NLAISCRIPT::CAgentClass::getConstructorIndex  
 

void NLAISCRIPT::CAgentClass::getDebugString std::string &    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.

Implements NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::COperatorClass.

Definition at line 755 of file interpret_object_agent.cpp.

References NLAISCRIPT::IClassInterpret::getClassName, NLAIC::stringGetBuild, and t.

Referenced by NLAIAGENT::COperatorScript::getDebugString, NLAIAGENT::CSeqFsmScript::getDebugString, and NLAIAGENT::CFsmScript::getDebugString.

const IClassInterpret * NLAISCRIPT::CAgentClass::getInheritance sint32    n const [virtual]
 

Return a pointer represent the inheritance range n, the inheritance graph are represented by a vector.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 716 of file interpret_object_agent.cpp.

References _VTable.

const NLAIAGENT::IVarName * NLAISCRIPT::CAgentClass::getInheritanceName   const [virtual]
 

Returns the name of the base class in the registry.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 831 of file interpret_object_agent.cpp.

References _Inheritance.

sint32 NLAISCRIPT::CAgentClass::getInheritedStaticMemberIndex const NLAIAGENT::IVarName   const
 

Definition at line 344 of file interpret_object_agent.cpp.

References _VTable, NLAIC::IBasicType::getDebugString, NLAISCRIPT::IClassInterpret::getType, and index.

Referenced by NLAIAGENT::CAgentScript::getStaticMemberIndex, NLAISCRIPT::COperatorClass::RegisterMessage, NLAIAGENT::CAgentScript::runAskGetValue, and NLAIAGENT::CAgentScript::runMethodBase.

sint32 NLAISCRIPT::CAgentClass::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 453 of file interpret_object_agent.cpp.

References _Methode, and NLAISCRIPT::IAgentMultiClass::getBaseMethodCount.

Referenced by NLAIAGENT::CMessageScript::getMethode, NLAIAGENT::CAgentScript::getMethode, NLAIAGENT::CMessageScript::getMethodIndexSize, and getPrivateMember.

sint32 NLAISCRIPT::CAgentClass::getNbBaseClass   const
 

Returns the number of base classes (the distance to the super class).

Definition at line 912 of file interpret_object_agent.cpp.

References CAgentClass.

NLAIAGENT::tQueue NLAISCRIPT::CAgentClass::getPrivateMember const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  ,
const NLAIAGENT::IObjectIA  
const [virtual]
 

Implements NLAISCRIPT::IClassInterpret.

Definition at line 506 of file interpret_object_agent.cpp.

References NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, getMethodIndexSize, NLAIAGENT::IVarName::getString, NLAISCRIPT::IClassInterpret::IClassInterpret, NLAIAGENT::CIdMethod::Index, NLAIAGENT::CIdMethod::Method, param, q, NLAIAGENT::CIdMethod::ReturnType, t, and NLAIAGENT::CIdMethod::Weight.

Referenced by isMember, and NLAIAGENT::CAgentScript::isMember.

sint32 NLAISCRIPT::CAgentClass::getRunMethod   const [virtual]
 

return the absolut index of the run() method of this class.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 938 of file interpret_object_agent.cpp.

References _RunIndex.

Referenced by NLAIAGENT::CAgentScript::haveActivity, NLAIAGENT::CMainAgentScript::run, and NLAIAGENT::CAgentScript::runActivity.

NLAIAGENT::IObjectIA * NLAISCRIPT::CAgentClass::getStaticComponentValue std::string &    [virtual]
 

Definition at line 1024 of file interpret_object_agent.cpp.

References getComponent.

const NLAIAGENT::IObjectIA * NLAISCRIPT::CAgentClass::getStaticMember sint32    const [virtual]
 

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

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 369 of file interpret_object_agent.cpp.

References getBaseClass, NLAIC::CIdentType::getFactory, NLAISCRIPT::IClassInterpret::IClassInterpret, id, and index.

sint32 NLAISCRIPT::CAgentClass::getStaticMemberIndex const NLAIAGENT::IVarName   const [virtual]
 

Returns a CComponent struct describing a static component from its name in the class Only the class's own static members are considered, not the inherited ones.

Definition at line 318 of file interpret_object_agent.cpp.

References getBaseClass, and NLAISCRIPT::IClassInterpret::IClassInterpret.

Referenced by NLAIAGENT::CMessageScript::getStaticMemberIndex.

sint32 NLAISCRIPT::CAgentClass::getStaticMemberSize   const [virtual]
 

returns the number of static members specific to the class (not the inherited ones).

Implements NLAISCRIPT::IClassInterpret.

Definition at line 411 of file interpret_object_agent.cpp.

References _Components.

const CAgentClass * NLAISCRIPT::CAgentClass::getSuperClass   const
 

Returns the base class of this class.

Definition at line 884 of file interpret_object_agent.cpp.

References CAgentClass.

virtual NLAIC::CTypeOfObject NLAISCRIPT::CAgentClass::getTypeClass   const [inline, virtual]
 

Reimplemented from NLAISCRIPT::IClassInterpret.

Reimplemented in NLAISCRIPT::CMessageClass.

Definition at line 274 of file interpret_object_agent.h.

References NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tObject.

void NLAISCRIPT::CAgentClass::initStatics   [virtual]
 

Reimplemented from NLAISCRIPT::IClassInterpret.

Definition at line 958 of file interpret_object_agent.cpp.

References NLAISCRIPT::CCodeContext::Code, findMethod, getBrancheCode, NLAISCRIPT::CCallPrint::inputOutput, NLAISCRIPT::CCodeBrancheRun::run, and NLAISCRIPT::CCodeContext::Self.

sint32 NLAISCRIPT::CAgentClass::isClassInheritedFrom const NLAIAGENT::IVarName   const [virtual]
 

Definition at line 678 of file interpret_object_agent.cpp.

References _VTable, NLAISCRIPT::IClassInterpret::getClassName, NLAIC::IPointerGestion::getClassName, NLAIAGENT::IVarName::getString, NLAIC::IBasicType::getType, and id.

Referenced by NLAIAGENT::CMessageScript::isClassInheritedFrom, and NLAIAGENT::CAgentScript::isClassInheritedFrom.

bool NLAISCRIPT::CAgentClass::isEqual const NLAIAGENT::IBasicObjectIA   a const [virtual]
 

Definition at line 825 of file interpret_object_agent.cpp.

References CAgentClass, NLAIC::IPointerGestion::getClassName, and NLAISCRIPT::IClassInterpret::getClassName.

NLAIAGENT::tQueue NLAISCRIPT::CAgentClass::isMember const NLAIAGENT::IVarName   className,
const NLAIAGENT::IVarName   methodName,
const NLAIAGENT::IObjectIA   param
const [virtual]
 

Definition at line 540 of file interpret_object_agent.cpp.

References _VTable, NLAISCRIPT::IAgentMultiClass::getBaseObjectInstance, getPrivateMember, NLAIAGENT::IVarName::getString, NLAISCRIPT::IClassInterpret::IClassInterpret, NLAIAGENT::IObjectIA::isMember, param, and q.

Referenced by NLAIAGENT::CActorScript::activate, NLAIAGENT::CActorScript::failure, NLAIAGENT::CActorScript::pause, NLAIAGENT::CActorScript::restart, NLAIAGENT::CActorScript::success, and NLAIAGENT::CActorScript::unActivate.

bool NLAISCRIPT::CAgentClass::isMessageFunc const CParam   const [private]
 

Definition at line 134 of file interpret_object_agent.cpp.

References CAgentClass, NLAIC::CIdentType::getFactory, and param.

Referenced by buildChildsMessageMap.

void NLAISCRIPT::CAgentClass::load NLMISC::IStream   [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 783 of file interpret_object_agent.cpp.

References _Components, _Inheritance, _Methode, NLAIC::CIdentTypeAlloc::allocClass, id, NLAIC::IPointerGestion::incRef, NLAIC::IBasicInterface::load, and NLMISC::IStream::serial.

const NLAIC::IBasicType * NLAISCRIPT::CAgentClass::newInstance   const [virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::COperatorClass.

Definition at line 749 of file interpret_object_agent.cpp.

References CAgentClass, and x.

sint32 NLAISCRIPT::CAgentClass::registerComponent const NLAIAGENT::IVarName   type_name,
const NLAIAGENT::CStringVarName   field_name
[virtual]
 

Adds a static component to an agent.

Definition at line 280 of file interpret_object_agent.cpp.

References _Components, NLAIAGENT::CStringVarName::clone, and NLAIC::IBasicType::clone.

sint32 NLAISCRIPT::CAgentClass::registerComponent const NLAIAGENT::IVarName   type_name [virtual]
 

Adds a static component to an agent.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 264 of file interpret_object_agent.cpp.

References _Components, and NLAIC::IBasicType::clone.

Referenced by NLAISCRIPT::CCancelGoalMsgClass::CCancelGoalMsgClass, NLAISCRIPT::CConnectObjectValueMsgClass::CConnectObjectValueMsgClass, NLAISCRIPT::CDebugMsgClass::CDebugMsgClass, NLAISCRIPT::CFactMsgClass::CFactMsgClass, NLAISCRIPT::CFailureMsgClass::CFailureMsgClass, NLAISCRIPT::CGoalMsgClass::CGoalMsgClass, NLAISCRIPT::CMsgNotifyParentClass::CMsgNotifyParentClass, NLAISCRIPT::COperatorClass::compileFactPattern, NLAISCRIPT::CSuccessMsgClass::CSuccessMsgClass, NLAISCRIPT::COperatorClass::RegisterMessage, and NLAISCRIPT::COperatorClass::setGoal.

const NLAIAGENT::IObjectIA::CProcessResult & NLAISCRIPT::CAgentClass::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 34 of file interpret_object_agent.cpp.

References NLAIAGENT::IObjectIA::ProcessRun.

void NLAISCRIPT::CAgentClass::save NLMISC::IStream   [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 760 of file interpret_object_agent.cpp.

References _Components, _Inheritance, _Methode, NLAIC::IBasicType::getType, NLAIC::IBasicInterface::save, and NLMISC::IStream::serial.

void NLAISCRIPT::CAgentClass::setConstroctorMethod sint32    index [virtual]
 

Definition at line 953 of file interpret_object_agent.cpp.

References _ConstructorIndex, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, and index.

void NLAISCRIPT::CAgentClass::setInheritanceName const NLAIAGENT::IVarName   name [virtual]
 

Returns the name of the base class of this class.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 836 of file interpret_object_agent.cpp.

References _Inheritance, NLAIC::IBasicType::clone, and NLAIC::IPointerGestion::release.

Referenced by NLAISCRIPT::CCancelGoalMsgClass::CCancelGoalMsgClass, NLAISCRIPT::CConnectObjectValueMsgClass::CConnectObjectValueMsgClass, NLAISCRIPT::CDebugMsgClass::CDebugMsgClass, NLAISCRIPT::CFactMsgClass::CFactMsgClass, NLAISCRIPT::CFailureMsgClass::CFailureMsgClass, NLAISCRIPT::CFsmClass::CFsmClass, NLAISCRIPT::CGetValueMsgClass::CGetValueMsgClass, NLAISCRIPT::CGoalMsgClass::CGoalMsgClass, NLAISCRIPT::CMsgNotifyParentClass::CMsgNotifyParentClass, NLAISCRIPT::COnChangeMsgClass::COnChangeMsgClass, NLAISCRIPT::CSetValueMsgClass::CSetValueMsgClass, and NLAISCRIPT::CSuccessMsgClass::CSuccessMsgClass.

void NLAISCRIPT::CAgentClass::setRunMethod sint32    index [virtual]
 

set the absolut index of the run() method of this class.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 943 of file interpret_object_agent.cpp.

References _RunIndex, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, and index.

bool NLAISCRIPT::CAgentClass::setStaticMember sint32   ,
NLAIAGENT::IObjectIA  
[virtual]
 

to cahnge a given components given by a string.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 974 of file interpret_object_agent.cpp.

References _VTable, NLAIC::IBasicType::getDebugString, and index.

sint32 NLAISCRIPT::CAgentClass::sizeVTable   const [virtual]
 

Get the size of the v_table.

Implements NLAISCRIPT::IClassInterpret.

Definition at line 721 of file interpret_object_agent.cpp.

References _VTable.

Referenced by buildVMethode, NLAIAGENT::CMessageScript::getMethode, and NLAIAGENT::CAgentScript::getMethode.

void NLAISCRIPT::CAgentClass::updateStaticMember sint32   ,
NLAIAGENT::IObjectIA  
[virtual]
 

Definition at line 1000 of file interpret_object_agent.cpp.

References _VTable, NLAIC::IBasicType::getDebugString, and index.

Referenced by NLAIAGENT::CAgentScript::runMethodBase.


Member Data Documentation

const IClassInterpret* NLAISCRIPT::CAgentClass::_Base_class [private]
 

Definition at line 164 of file interpret_object_agent.h.

Referenced by CAgentClass, getBaseClass, and getComputeBaseClass.

std::map<std::string, uint> NLAISCRIPT::CAgentClass::_ComponentMap [private]
 

Definition at line 155 of file interpret_object_agent.h.

std::vector<CComponent *> NLAISCRIPT::CAgentClass::_Components [private]
 

Definition at line 154 of file interpret_object_agent.h.

Referenced by buildChildsMessageMap, createComponents, getComponent, getComponentIndex, getStaticMemberSize, load, registerComponent, save, and ~CAgentClass.

sint32 NLAISCRIPT::CAgentClass::_ConstructorIndex [private]
 

Definition at line 166 of file interpret_object_agent.h.

Referenced by addBrancheCode, CAgentClass, getConstroctorMethod, and setConstroctorMethod.

NLAIAGENT::IVarName* NLAISCRIPT::CAgentClass::_Inheritance [private]
 

Definition at line 169 of file interpret_object_agent.h.

Referenced by getBaseClass, getComputeBaseClass, getInheritanceName, load, save, setInheritanceName, and ~CAgentClass.

sint32 NLAISCRIPT::CAgentClass::_lastRef [private]
 

Definition at line 162 of file interpret_object_agent.h.

Referenced by addBrancheCode, CAgentClass, and getBrancheCode.

tVectorMethode NLAISCRIPT::CAgentClass::_Methode [private]
 

Definition at line 159 of file interpret_object_agent.h.

Referenced by addBrancheCode, buildChildsMessageMap, buildVMethode, CAgentClass, findMethod, getBrancheCode, getBrancheCodeSize, getMethodIndexSize, load, and save.

std::vector<sint32 *> NLAISCRIPT::CAgentClass::_MsgIndirectTable [private]
 

Definition at line 161 of file interpret_object_agent.h.

Referenced by buildChildsMessageMap, clearIndirectMsgTable, and getChildMessageIndex.

sint32 NLAISCRIPT::CAgentClass::_RunIndex [private]
 

Definition at line 163 of file interpret_object_agent.h.

Referenced by CAgentClass, getRunMethod, and setRunMethod.

std::vector<NLAIAGENT::IObjectIA *> NLAISCRIPT::CAgentClass::_StaticComponents [private]
 

Definition at line 156 of file interpret_object_agent.h.

Referenced by ~CAgentClass.

std::vector<const CAgentClass *> NLAISCRIPT::CAgentClass::_VTable [private]
 

Definition at line 160 of file interpret_object_agent.h.

Referenced by buildChildsMessageMap, buildVMethode, buildVTable, getBrancheCode, getComponentName, getInheritance, getInheritedStaticMemberIndex, isClassInheritedFrom, isMember, setStaticMember, sizeVTable, and updateStaticMember.

const NLAIC::CIdentType NLAISCRIPT::CAgentClass::IdAgentClass [static]
 


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