|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAIAGENT::IObjectIA Class ReferenceIObjectIA is the basic class for all IA surpport.
More...
#include <baseai.h>
Inheritance diagram for NLAIAGENT::IObjectIA
[legend]Collaboration diagram for NLAIAGENT::IObjectIA:
[legend]List of all members.
Public Methods |
| IObjectIA () |
virtual void | init (IObjectIA *) |
| Init method alows to init the attribut of an object. More...
|
virtual IObjectIA& | operator= (const IObjectIA &a) |
| Equality operator. More...
|
virtual const CProcessResult& | run () = 0 |
| Some where Run method define the process of the agen.
|
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...
|
const IObjectIA* | getStaticMember (const IVarName &compName) const |
| to get the pointer of a given components referened by an string. More...
|
void | setStaticMember (const IVarName &compName,IObjectIA *change) |
| to cahnge a given components given by an index. More...
|
virtual void | setStaticMember (sint32,IObjectIA *) |
| to cahnge a given components given by a string. More...
|
virtual sint32 | getMethodIndexSize () const |
| getMethodIndexSize define the nomber of external method. 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 CProcessResult | runMethodeMember (sint32, sint32, IObjectIA *) |
| The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...
|
virtual 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 *) |
| The method sendMessage(const IObjectIA &msg) allow us to achive a message defined in msg. More...
|
virtual CProcessResult | sendMessage (const IVarName &,IObjectIA *) |
| This method allow to send a message to an compoment given by an string IVarName. More...
|
virtual tQueue | canProcessMessage (const IVarName &) |
| The method canProcessMessage(const IVarName &msgName) allow us to know if agent can preocess given by msgName. More...
|
virtual bool | isLocal () |
| If the result is true the object is loclal else its a representation of an object on the server. By the method return true. More...
|
virtual | ~IObjectIA () |
Static Public Attributes |
CProcessResult | ProcessRun = IObjectIA::CProcessResult() |
TProcessStatement | ProcessIdle = processIdle |
| Define the an idle state for an agent all time in this state. More...
|
TProcessStatement | ProcessLocked = processLocked |
| Define the an locked state for an agent all time in this state. More...
|
TProcessStatement | ProcessBuzzy = processBuzzy |
| Define the an buzzy state for an agent all time in this state. More...
|
TProcessStatement | ProcessEnd = processEnd |
| Define the an end state for an agent all time in this state. More...
|
TProcessStatement | ProcessError = processError |
| Define the an error state for an agent all time in this state. More...
|
Protected Methods |
| IObjectIA (const IObjectIA &a) |
| The copy constructor for the object. More...
|
Detailed Description
IObjectIA is the basic class for all IA surpport.
In this level an IObjectIA objects is a basic agent where it define all element for basic functionality. Among other things the functionality is the definition of static memeber components and the memthods defined in the agent. For exemple we need that for the external call method and object library on the agent script, or we need that for the agent remote call method in the server for synchronizing run objects.
-
Author(s):
-
Chafik sameh , Portier Pierre , Nevrax France
-
Date:
-
2000
Definition at line 149 of file baseai.h.
Constructor & Destructor Documentation
NLAIAGENT::IObjectIA::IObjectIA (
|
const IObjectIA & a ) [protected]
|
|
|
The copy constructor for the object.
Because the object need an unique reserved ident in the word for objects distribution in the server, we protected the copy constructor.
Definition at line 150 of file baseai.cpp. |
NLAIAGENT::IObjectIA::IObjectIA (
|
)
|
|
NLAIAGENT::IObjectIA::~IObjectIA (
|
) [virtual]
|
|
Member Function Documentation
tQueue NLAIAGENT::IObjectIA::canProcessMessage (
|
const IVarName & msgName ) [virtual]
|
|
|
The method canProcessMessage(const IVarName &msgName) allow us to know if agent can preocess given by msgName.
tQueue contain the liste of method (same as a run(msg)) that coud process the msg.
Reimplemented in NLAIAGENT::CLocalAgentMail.
Definition at line 298 of file baseai.cpp. |
sint32 NLAIAGENT::IObjectIA::getMethodIndexSize (
|
) const [virtual]
|
|
|
getMethodIndexSize define the nomber of external method.
Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IBasicAgent, NLAIAGENT::IVector, NLAIAGENT::CLocalAgentMail, NLAIAGENT::INombreDefine, NLAIAGENT::IBaseGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IObjetOp, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CLibTimerManager, NLAIAGENT::CAgentWatchTimer, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIFUZZY::CFuzzyVar, NLAIAGENT::CFsmScript, NLAILOGIC::CGoal, NLAILOGIC::IBaseVar, NLAISCRIPT::CAgentClass, and NLAISCRIPT::CLibTest.
Definition at line 233 of file baseai.cpp. |
const IObjectIA * NLAIAGENT::IObjectIA::getStaticMember (
|
const IVarName & compName ) const [inline]
|
|
|
to get the pointer of a given components referened by an string.
Definition at line 243 of file baseai.h. |
const IObjectIA * NLAIAGENT::IObjectIA::getStaticMember (
|
sint32 index ) const [virtual]
|
|
|
to get the pointer of a given components referened by an index.
Reimplemented in NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CMessageScript, and NLAISCRIPT::CAgentClass.
Definition at line 184 of file baseai.cpp.
Referenced by NLAISCRIPT::CLdbMemberiOpCode::getDebugResult(), NLAISCRIPT::CLdbHeapMemberiOpCode::getDebugResult(), NLAISCRIPT::CLdbStackMemberiOpCode::getDebugResult(), NLAISCRIPT::CCallMethodi::getDebugResult(), NLAISCRIPT::CCallStackNewMethodi::getDebugResult(), NLAISCRIPT::CCallStackMethodi::getDebugResult(), NLAISCRIPT::CCallHeapMethodi::getDebugResult(), NLAISCRIPT::CLoadHeapObject::getObject(), NLAISCRIPT::CLoadStackObject::getObject(), NLAISCRIPT::CLoadSelfObject::getObject(), NLAISCRIPT::CCompilateur::getValidateHierarchyBase(), NLAISCRIPT::CCompilateur::isValidateVarName(), NLAISCRIPT::CCodeBrancheRunDebug::printVariable(), NLAISCRIPT::CCompilateur::processingVar(), NLAISCRIPT::CLdbMemberiOpCode::runOpCode(), NLAISCRIPT::CLdbHeapMemberiOpCode::runOpCode(), NLAISCRIPT::CLdbStackMemberiOpCode::runOpCode(), NLAISCRIPT::CCallHeapMethodi::runOpCode(), NLAISCRIPT::CCallStackMethodi::runOpCode(), NLAISCRIPT::CCallStackNewMethodi::runOpCode(), NLAISCRIPT::CCallMethodi::runOpCode(), NLAISCRIPT::CLibHeapMemberMethod::runOpCode(), NLAISCRIPT::CLibStackNewMemberMethod::runOpCode(), NLAISCRIPT::CLibStackMemberMethod::runOpCode(), NLAISCRIPT::CLibCallMethodi::runOpCode(), NLAISCRIPT::CLibMemberMethodi::runOpCode(), NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode(), and NLAISCRIPT::CAffMemberiOpCode::runOpCode(). |
sint32 NLAIAGENT::IObjectIA::getStaticMemberIndex (
|
const IVarName & name ) const [virtual]
|
|
sint32 NLAIAGENT::IObjectIA::getStaticMemberSize (
|
) const [virtual]
|
|
void NLAIAGENT::IObjectIA::init (
|
IObjectIA * params ) [virtual]
|
|
|
Init method alows to init the attribut of an object.
the maparmetre is in more time a list of IObjectIA.
Reimplemented in NLAIFUZZY::CSimpleFuzzyCond, NLAIFUZZY::CFuzzyRule, NLAIFUZZY::CFuzzyRuleSet, NLAIFUZZY::CFuzzyInterval, NLAIFUZZY::CRightFuzzySet, NLAIFUZZY::CTriangleFuzzySet, NLAIFUZZY::CTrapezeFuzzySet, NLAIFUZZY::CLeftFuzzySet, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CClause, NLAILOGIC::CFirstOrderAssert, NLAILOGIC::CRule, and NLAILOGIC::CFactPattern.
Definition at line 116 of file baseai.cpp.
Referenced by NLAISCRIPT::CLdbNewOpCode::runOpCode(). |
sint32 NLAIAGENT::IObjectIA::isClassInheritedFrom (
|
const IVarName & baseClass ) const [virtual]
|
|
bool NLAIAGENT::IObjectIA::isLocal (
|
) [virtual]
|
|
|
If the result is true the object is loclal else its a representation of an object on the server. By the method return true.
Definition at line 304 of file baseai.cpp. |
tQueue NLAIAGENT::IObjectIA::isMember (
|
const IVarName * className,
|
|
const IVarName * name,
|
|
const IObjectIA & param ) const [virtual]
|
|
|
The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search.
remember we use the overloadind method.
NameSubClass: if this pointer is not NULL then NameSubClass is the name of the base class were the method are defined.
methodName: is the name of the class.
param: is an IObjectIA where it defined the parametre of the method. lot of method use a IObjectIA vector object with an NLAIC::CIdentType as the the template argm.
Reimplemented in NLAIAGENT::CActorScript, NLAIAGENT::IBasicAgent, NLAIAGENT::IVector, NLAIAGENT::CLocalAgentMail, NLAIAGENT::INombreDefine, NLAIAGENT::IBaseGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IObjetOp, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, NLAIAGENT::COnChangeMsg, NLAIAGENT::CFsmScript, and NLAIAGENT::CSeqFsmScript.
Definition at line 196 of file baseai.cpp.
Referenced by NLAISCRIPT::CCompilateur::findMethode(), NLAIAGENT::CLocalAgentMail::isMember(), and NLAISCRIPT::CFindRunMsg::runOpCode(). |
IObjectIA & NLAIAGENT::IObjectIA::operator= (
|
const IObjectIA & a ) [virtual]
|
|
const CProcessResult & NLAIAGENT::IObjectIA::run (
|
void ) [pure virtual]
|
|
|
Some where Run method define the process of the agen.
Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IBasicAgent, NLAIAGENT::IAgent, NLAIAGENT::VectorType, NLAIAGENT::DigitalType, NLAIAGENT::BorneDigitalType, NLAIAGENT::DDigitalType, NLAIAGENT::BorneDDigitalType, NLAIAGENT::IntegerType, NLAIAGENT::ShortIntegerType, NLAIAGENT::CharType, NLAIAGENT::IAgentInput, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CStringType, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CLibTimerManager, NLAIAGENT::CAgentTimerHandle, NLAIAGENT::CGDAgentScript, NLAIAGENT::IListBasicManager, NLAIAGENT::CSimpleLocalMailBox, NLAIAGENT::CLocalMailBox, NLAIAGENT::CScriptMailBox, NLAIAGENT::CMainAgentScript, NLAIAGENT::CMessageScript, NLAIAGENT::CObjectIdent, NLAIAGENT::CObjectType, NLAICHARACTER::CCharacterChild, NLAIFUZZY::CFuzzyFact, NLAIFUZZY::CFuzzyRule, NLAIFUZZY::CFuzzyRuleSet, NLAIFUZZY::CFuzzyInterval, NLAIFUZZY::CRightFuzzySet, NLAIFUZZY::CTriangleFuzzySet, NLAIFUZZY::CTrapezeFuzzySet, NLAIFUZZY::CLeftFuzzySet, NLAIFUZZY::FuzzyType, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CBoolAssert, NLAILOGIC::CBoolOperator, NLAILOGIC::IBaseBoolType, NLAILOGIC::CBoolType, NLAILOGIC::CFactBase, NLAILOGIC::CFirstOrderAssert, NLAILOGIC::CFirstOrderOperator, NLAIAGENT::CFsmScript, NLAILOGIC::CGoal, NLAIAGENT::COperatorScript, NLAILOGIC::CValueSet, NLAILOGIC::CVar, NLAILOGIC::CVarSet, NLAISCRIPT::CCodeContext, NLAISCRIPT::CCodeBrancheRun, NLAISCRIPT::CContextDebug, NLAISCRIPT::CParam, NLAISCRIPT::CMethodeName, NLAISCRIPT::CAgentClass, NLAISCRIPT::CCallPrint, NLAISCRIPT::CObjectUnknown, NLAISCRIPT::CLdbNewOpCode, NLAISCRIPT::CMakeArgOpCode, NLAISCRIPT::CMarkMsg, NLAISCRIPT::CMsgSetSender, NLAISCRIPT::CFindRunMsg, NLAISCRIPT::CLibTest, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, and NLAISCRIPT::IOpRunCode. |
|
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 in NLAIAGENT::CActor, NLAIAGENT::IBasicAgent, NLAIAGENT::IVector, NLAIAGENT::CLocalAgentMail, NLAIAGENT::INombre, NLAIAGENT::IBaseGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IObjetOp, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CLibTimerManager, NLAIAGENT::CAgentWatchTimer, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, NLAIAGENT::COnChangeMsg, NLAIFUZZY::IFuzzySet, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CGoal, NLAILOGIC::IBaseVar, NLAISCRIPT::CCallPrint, and NLAISCRIPT::CLibTest.
Definition at line 248 of file baseai.cpp. |
|
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 in NLAIAGENT::IBasicAgent, NLAIAGENT::IVector, NLAIAGENT::CLocalAgentMail, NLAIAGENT::INombre, NLAIAGENT::IBaseGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, NLAIAGENT::COnChangeMsg, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CGoal, NLAISCRIPT::CCallPrint, and NLAISCRIPT::CLibTest.
Definition at line 239 of file baseai.cpp.
Referenced by NLAISCRIPT::CLibHeapMemberMethod::runOpCode(), NLAISCRIPT::CLibStackNewMemberMethod::runOpCode(), NLAISCRIPT::CLibStackMemberMethod::runOpCode(), NLAISCRIPT::CLibCallMethodi::runOpCode(), and NLAISCRIPT::CLibMemberMethodi::runOpCode(). |
void NLAIAGENT::IObjectIA::setStaticMember (
|
sint32 index,
|
|
IObjectIA * op ) [virtual]
|
|
void NLAIAGENT::IObjectIA::setStaticMember (
|
const IVarName & compName,
|
|
IObjectIA * change ) [inline]
|
|
Member Data Documentation
|
Define the an buzzy state for an agent all time in this state.
Definition at line 146 of file baseai.cpp. |
|
Define the an end state for an agent all time in this state.
Definition at line 147 of file baseai.cpp. |
|
Define the an error state for an agent all time in this state.
Definition at line 148 of file baseai.cpp. |
|
Define the an idle state for an agent all time in this state.
Definition at line 144 of file baseai.cpp. |
|
Define the an locked state for an agent all time in this state.
Definition at line 145 of file baseai.cpp. |
The documentation for this class was generated from the following files:
|
|