|
|
|
|
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 ReferenceClass CAgentClass.
More...
#include <interpret_object_agent.h>
Inheritance diagram for NLAISCRIPT::CAgentClass:
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::IObjectIA * | buildNewInstance () const |
| Instanciates an object of the class. 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 &) 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::CProcessResult & | run () |
| 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 CComponent * | getComponent (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 CComponent * | getComponent (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::IObjectIA * | getStaticMember (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 IClassInterpret * | getInheritance (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::IObjectIA * | getStaticComponentValue (std::string &) |
virtual NLAIC::CTypeOfObject | getTypeClass () const |
sint32 | getConstructorIndex () |
|
virtual sint32 | addBrancheCode (const NLAIAGENT::IVarName &, const CParam &) |
virtual CMethodeName & | getBrancheCode () const |
virtual CMethodeName & | getBrancheCode (sint32) const |
| throw NLAIE::CExceptionUnReference;. More...
|
virtual CMethodeName & | getBrancheCode (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 ¶m) 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) |
|
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...
|
|
virtual sint32 | isClassInheritedFrom (const NLAIAGENT::IVarName &) const |
const NLAIAGENT::IVarName * | getInheritanceName () 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 IClassInterpret * | getBaseClass () 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 IClassInterpret * | getComputeBaseClass () |
| Returns the number of base classes. More...
|
Static Public Attributes |
const NLAIC::CIdentType | IdAgentClass |
Private Types |
typedef std::vector< CMethodType > | tVectorMethode |
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]
|
|
Constructor & Destructor Documentation
|
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 CAgentClass & |
|
) |
|
|
NLAISCRIPT::CAgentClass::CAgentClass |
( |
|
) |
|
|
NLAISCRIPT::CAgentClass::~CAgentClass |
( |
|
) |
[virtual] |
|
Member Function Documentation
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. |
void NLAISCRIPT::CAgentClass::buildVMethode |
( |
|
) |
[virtual] |
|
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] |
|
void NLAISCRIPT::CAgentClass::clearIndirectMsgTable |
( |
|
) |
[private] |
|
|
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. |
const IClassInterpret * NLAISCRIPT::CAgentClass::getBaseClass |
( |
|
) |
const [virtual] |
|
CMethodeName & NLAISCRIPT::CAgentClass::getBrancheCode |
( |
|
) |
const [virtual] |
|
sint32 NLAISCRIPT::CAgentClass::getBrancheCodeSize |
( |
|
) |
const [virtual] |
|
const void NLAISCRIPT::CAgentClass::getClassPath |
( |
std::vector< const CAgentClass * > & |
path |
) |
const |
|
const char * NLAISCRIPT::CAgentClass::getComponentName |
( |
sint32 |
|
) |
const [virtual] |
|
const IClassInterpret * NLAISCRIPT::CAgentClass::getComputeBaseClass |
( |
|
) |
[virtual] |
|
sint32 NLAISCRIPT::CAgentClass::getConstroctorMethod |
( |
|
) |
const [virtual] |
|
sint32 NLAISCRIPT::CAgentClass::getConstructorIndex |
( |
|
) |
|
|
void NLAISCRIPT::CAgentClass::getDebugString |
( |
std::string & |
|
) |
const [virtual] |
|
sint32 NLAISCRIPT::CAgentClass::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
sint32 NLAISCRIPT::CAgentClass::getNbBaseClass |
( |
|
) |
const |
|
|
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] |
|
sint32 NLAISCRIPT::CAgentClass::getStaticMemberSize |
( |
|
) |
const [virtual] |
|
const CAgentClass * NLAISCRIPT::CAgentClass::getSuperClass |
( |
|
) |
const |
|
void NLAISCRIPT::CAgentClass::initStatics |
( |
|
) |
[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] |
|
|
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. |
void NLAISCRIPT::CAgentClass::setConstroctorMethod |
( |
sint32 |
index |
) |
[virtual] |
|
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] |
|
sint32 NLAISCRIPT::CAgentClass::sizeVTable |
( |
|
) |
const [virtual] |
|
Member Data Documentation
std::map<std::string, uint> NLAISCRIPT::CAgentClass::_ComponentMap [private]
|
|
std::vector<CComponent *> NLAISCRIPT::CAgentClass::_Components [private]
|
|
sint32 NLAISCRIPT::CAgentClass::_ConstructorIndex [private]
|
|
sint32 NLAISCRIPT::CAgentClass::_lastRef [private]
|
|
std::vector<sint32 *> NLAISCRIPT::CAgentClass::_MsgIndirectTable [private]
|
|
sint32 NLAISCRIPT::CAgentClass::_RunIndex [private]
|
|
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. |
The documentation for this class was generated from the following files:
|
|