|
|
|
|
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:
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. More...
|
virtual const CProcessResult & | runStep () |
| Some where Run method define the process of the agen. 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...
|
const IObjectIA * | getStaticMember (const IVarName &compName) const |
| to get the pointer of a given components referened by an string. More...
|
bool | setStaticMember (const IVarName &compName, IObjectIA *change) |
| to cahnge a given components given by an index. More...
|
virtual bool | setStaticMember (sint32, IObjectIA *) |
| to cahnge a given components given by a string. More...
|
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 CProcessResult | runMethodeMember (sint32, sint32, IObjectIA *) |
| The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...
|
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 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() |
CProcessResult | ProcessNotComplit = IObjectIA::CProcessResult(processNotComplete) |
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:
-
Chafik sameh , Portier Pierre , Nevrax France
-
Date:
-
2000
Definition at line 154 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 151 of file baseai.cpp.
Referenced by NLAIAGENT::CAgentScript::addDynamicAgent, NLAIAGENT::CAgentScript::CAgentScript, NLAIAGENT::CGroupType::CGroupType, NLAISCRIPT::CLdbNewOpCode::CLdbNewOpCode, NLAISCRIPT::CLibCallInheritedMethod::CLibCallInheritedMethod, NLAISCRIPT::CLibCallMethod::CLibCallMethod, NLAISCRIPT::CLibCallMethodi::CLibCallMethodi, NLAIAGENT::CMessageList::CMessageList, NLAIAGENT::CMessageVector::CMessageVector, NLAIAGENT::CPairType::CPairType, NLAIAGENT::CVectorGroupType::cpy, NLAIAGENT::CGroupType::cpy, NLAIAGENT::CAgentScript::createComponents, NLAILOGIC::CValueSet::CValueSet, NLAIAGENT::CVectorGroupType::CVectorGroupType, NLAIAGENT::CVectorGroupType::erase, NLAIAGENT::CGroupType::erase, NLAIAGENT::CVectorGroupType::eraseAll, NLAIAGENT::CGroupType::eraseAll, NLAIAGENT::CVectorGroupType::find, NLAIAGENT::CGroupType::find, NLAIAGENT::CVectorGroupType::findList, NLAIAGENT::CGroupType::findList, NLAIAGENT::CPairType::first, NLAIAGENT::CAgentScript::getAgentContext, NLAIAGENT::IMessageBase::getContinuation, NLAIAGENT::CVectorGroupType::getDebugString, NLAIAGENT::CAgentScript::getDynamicName, NLAIAGENT::IMessageBase::getReceiver, NLAIAGENT::IMessageBase::getSender, getStaticMember, NLAIAGENT::CLocalAgentMail::getStaticMember, NLAIAGENT::IAgentInput::getValue, NLAILOGIC::CFactPattern::init, NLAIFUZZY::CFuzzyVar::init, NLAIAGENT::IObjetOp::IObjetOp, NLAILOGIC::CVar::isEqual, NLAIAGENT::CGroupType::isEqual, NLAIAGENT::INombre< sint32 >::isEqual, NLAIAGENT::IVector::isEqual, NLAILOGIC::IBaseVar::isMember, NLAIFUZZY::CFuzzyVar::isMember, NLAILOGIC::CValueSet::load, NLAIAGENT::CVectorGroupType::load, NLAIAGENT::CGroupType::load, NLAIAGENT::CAgentScript::load, NLAIAGENT::CActorScript::onFailure, NLAIAGENT::CActorScript::onSuccess, NLAIAGENT::CAgentOperation::operator=, NLAIAGENT::CVectorGroupType::operator=, NLAIAGENT::CGroupType::operator=, NLAIAGENT::INombre< sint32 >::operator=, NLAIAGENT::IVector::operator=, NLAIAGENT::CVectorGroupType::pop, NLAIAGENT::CGroupType::pop, NLAIAGENT::CVectorGroupType::popFront, NLAIAGENT::CGroupType::popFront, NLAIAGENT::CAgentScript::processContinuation, NLAIAGENT::IAgent::processMessages, NLAIAGENT::CAgentScript::processMessages, NLAIAGENT::CVectorGroupType::run, NLAIAGENT::CGroupType::run, NLAIAGENT::IBasicAgent::run, NLAIAGENT::IAgentInput::run, NLAIAGENT::CAgentScript::runAskGetValue, NLAIAGENT::CAgentScript::runChildren, NLAIAGENT::CAgentScript::runChildrenStepByStep, NLAIAGENT::CAgentScript::runInitComponent, NLAIAGENT::CAgentScript::runMethodBase, NLAIAGENT::CActorScript::runMethodBase, NLAIAGENT::CGetValueMsg::runMethodeMember, NLAIAGENT::CConnectObjectValueMsg::runMethodeMember, NLAIAGENT::CFailureMsg::runMethodeMember, NLAIAGENT::CSuccessMsg::runMethodeMember, NLAIAGENT::IMessageBase::runMethodeMember, NLAIAGENT::CMessageScript::runMethodeMember, NLAIAGENT::IBaseGroupType::runMethodeMember, runMethodeMember, NLAIAGENT::CAgentScript::runMethodeMember, NLAIAGENT::INombre< sint32 >::runMethodeMember, NLAIAGENT::CLocalAgentMail::runMethodeMember, NLAIAGENT::CAgentOperation::runTell, NLAIAGENT::CAgentScript::runTellComponent, NLAIAGENT::CAgentScript::runTellSetValue, NLAIAGENT::CVectorGroupType::save, NLAIAGENT::CGroupType::save, NLAIAGENT::CPairType::second, NLAIAGENT::CAgentScript::sendBroadCast, NLAIAGENT::CMainAgentScript::sendMessage, NLAIAGENT::IListManager::sendMessage, NLAIAGENT::IConnectIA::sendMessage, NLAIAGENT::CAgentScript::sendMessage, NLAIAGENT::CLocalAgentMail::sendMessage, NLAIAGENT::CAgentScript::sendMessageToDynmaicChild, NLAIAGENT::IListBasicManager::set, NLAIAGENT::CVectorGroupType::set, NLAIAGENT::CGroupType::set, NLAILOGIC::CValueSet::setSize, NLAIAGENT::CVolatilMemmory::setState, NLAIAGENT::CHashTimerManager::setState, NLAIAGENT::IAgentInput::setState, NLAIAGENT::CMessageScript::setStaticMember, setStaticMember, NLAIAGENT::CAgentScript::setStaticMember, NLAIAGENT::CLocalAgentMail::setStaticMember, NLAIAGENT::CAgentWatchTimer::tellBroker, NLAILOGIC::CValueSet::unify, NLAILOGIC::CFirstOrderOperator::unifyBackward, NLAILOGIC::CFirstOrderOperator::unifyForward, and NLAIAGENT::CAgentScript::~CAgentScript. |
NLAIAGENT::IObjectIA::IObjectIA |
( |
|
) |
|
|
NLAIAGENT::IObjectIA::~IObjectIA |
( |
|
) |
[virtual] |
|
Member Function Documentation
tQueue NLAIAGENT::IObjectIA::canProcessMessage |
( |
const IVarName & |
|
) |
[virtual] |
|
std::string NLAIAGENT::IObjectIA::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 in NLAIAGENT::CAgentScript.
Definition at line 311 of file baseai.cpp.
References id.
Referenced by NLAISCRIPT::CCallHeapMethodi::getDebugResult, NLAISCRIPT::CCallStackMethodi::getDebugResult, NLAISCRIPT::CCallMethodi::getDebugResult, NLAISCRIPT::CCallMethod::getDebugResult, NLAISCRIPT::CLibHeapMemberMethod::getDebugResult, NLAISCRIPT::CLibStackNewMemberMethod::getDebugResult, NLAISCRIPT::CLibStackMemberMethod::getDebugResult, NLAISCRIPT::CLibCallMethodi::getDebugResult, NLAISCRIPT::CLibCallInheritedMethod::getDebugResult, NLAISCRIPT::CLibCallMethod::getDebugResult, NLAISCRIPT::CLibMemberMethodi::getDebugResult, NLAISCRIPT::CLibMemberInheritedMethod::getDebugResult, and NLAISCRIPT::CLibMemberMethod::getDebugResult. |
sint32 NLAIAGENT::IObjectIA::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
const IObjectIA* NLAIAGENT::IObjectIA::getStaticMember |
( |
const IVarName & |
compName |
) |
const [inline] |
|
const IObjectIA * NLAIAGENT::IObjectIA::getStaticMember |
( |
sint32 |
|
) |
const [virtual] |
|
|
to get the pointer of a given components referened by an index.
Reimplemented in NLAIAGENT::CLocalAgentMail.
Definition at line 193 of file baseai.cpp.
Referenced by NLAISCRIPT::CLdbMemberiOpCode::getDebugResult, NLAISCRIPT::CLdbHeapMemberiOpCode::getDebugResult, NLAISCRIPT::CLdbStackMemberiOpCode::getDebugResult, NLAISCRIPT::CLdbMemberOpCode::getDebugResult, NLAISCRIPT::CCallStackNewMethodi::getDebugResult, NLAISCRIPT::CCallHeapMethodi::getDebugResult, NLAISCRIPT::CCallStackMethodi::getDebugResult, NLAISCRIPT::CCallMethodi::getDebugResult, NLAISCRIPT::CLibHeapMemberMethod::getDebugResult, NLAISCRIPT::CLibStackNewMemberMethod::getDebugResult, NLAISCRIPT::CLibStackMemberMethod::getDebugResult, NLAISCRIPT::CLibCallMethodi::getDebugResult, NLAISCRIPT::CLibMemberMethodi::getDebugResult, NLAISCRIPT::CLoadHeapObject::getObject, NLAISCRIPT::CLoadStackObject::getObject, NLAISCRIPT::CLoadSelfObject::getObject, getStaticMember, NLAISCRIPT::CCompilateur::getValidateHierarchyBase, NLAISCRIPT::CCompilateur::isValidateVarName, NLAISCRIPT::CCodeBrancheRunDebug::printVariable, runMethodeMember, 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 & |
|
) |
const [virtual] |
|
sint32 NLAIAGENT::IObjectIA::getStaticMemberSize |
( |
|
) |
const [virtual] |
|
void NLAIAGENT::IObjectIA::init |
( |
IObjectIA * |
|
) |
[virtual] |
|
sint32 NLAIAGENT::IObjectIA::isClassInheritedFrom |
( |
const IVarName & |
|
) |
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 356 of file baseai.cpp. |
tQueue NLAIAGENT::IObjectIA::isMember |
( |
const IVarName * |
, |
|
|
const IVarName * |
, |
|
|
const IObjectIA & |
|
|
) |
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::IBasicAgent.
Definition at line 206 of file baseai.cpp.
References _CONSTRUCTOR_, _RUN_, _SEND_, param, r, run, NLAIAGENT::tQueue, and NLAIC::CIdentType::VoidType.
Referenced by NLAISCRIPT::CCompilateur::findMethode, NLAISCRIPT::CAgentClass::isMember, NLAIAGENT::CLocalAgentMail::isMember, and NLAISCRIPT::CFindRunMsg::runOpCode. |
IObjectIA & NLAIAGENT::IObjectIA::operator= |
( |
const IObjectIA & |
a |
) |
[virtual] |
|
virtual const CProcessResult& NLAIAGENT::IObjectIA::run |
( |
|
) |
[pure virtual] |
|
|
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.
Definition at line 266 of file baseai.cpp.
References NLAIAGENT::IBaseGroupType::get, getStaticMember, id, IObjectIA, param, r, run, and sendMessage. |
|
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.
Definition at line 257 of file baseai.cpp.
References id.
Referenced by NLAISCRIPT::CLibHeapMemberMethod::runOpCode, NLAISCRIPT::CLibStackNewMemberMethod::runOpCode, NLAISCRIPT::CLibStackMemberMethod::runOpCode, NLAISCRIPT::CLibCallMethodi::runOpCode, NLAISCRIPT::CLibCallInheritedMethod::runOpCode, NLAISCRIPT::CLibCallMethod::runOpCode, and NLAISCRIPT::CLibMemberMethodi::runOpCode. |
bool NLAIAGENT::IObjectIA::setStaticMember |
( |
sint32 |
, |
|
|
IObjectIA * |
|
|
) |
[virtual] |
|
bool 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 147 of file baseai.cpp. |
|
Define the an error state for an agent all time in this state.
Definition at line 149 of file baseai.cpp. |
|
Define the an idle state for an agent all time in this state.
Definition at line 145 of file baseai.cpp.
Referenced by NLAISCRIPT::CLdbRefOpCode::runOpCode, NLAISCRIPT::CLdbMemberiOpCode::runOpCode, NLAISCRIPT::CLdbMemberOpCode::runOpCode, NLAISCRIPT::CLdbOpCode::runOpCode, NLAISCRIPT::CMakeArgOpCode::runOpCode, NLAISCRIPT::CTellOpCode::runOpCode, NLAISCRIPT::CNopOpCode::runOpCode, NLAISCRIPT::CFreeAlloc::runOpCode, NLAISCRIPT::CMarkAlloc::runOpCode, NLAISCRIPT::CLocAlloc::runOpCode, NLAISCRIPT::CAffOpCode::runOpCode, NLAISCRIPT::CJmpOpCode::runOpCode, NLAISCRIPT::CJFalseOpCode::runOpCode, NLAISCRIPT::CLdbNewOpCode::runOpCode, NLAISCRIPT::CNotOpCode::runOpCode, NLAISCRIPT::CDiffOpCode::runOpCode, NLAISCRIPT::CInfEqOpCode::runOpCode, NLAISCRIPT::CSupEqOpCode::runOpCode, NLAISCRIPT::CEqOpCode::runOpCode, NLAISCRIPT::CInfOpCode::runOpCode, NLAISCRIPT::CSupOpCode::runOpCode, NLAISCRIPT::CMulOpCode::runOpCode, NLAISCRIPT::CDivOpCode::runOpCode, NLAISCRIPT::CSubOpCode::runOpCode, NLAISCRIPT::CAddOpCode::runOpCode, and NLAISCRIPT::CNegOpCode::runOpCode. |
|
Define the an locked state for an agent all time in this state.
Definition at line 146 of file baseai.cpp. |
|
Definition at line 143 of file baseai.cpp.
Referenced by NLAISCRIPT::IOpRunCode::run, NLAISCRIPT::CVarPStackParam::run, NLAISCRIPT::CVarPStack::run, NLAISCRIPT::CLibTest::run, NLAISCRIPT::CFindRunMsg::run, NLAISCRIPT::CMsgSetSender::run, NLAISCRIPT::CMarkMsg::run, NLAISCRIPT::CMakeArgOpCode::run, NLAISCRIPT::CLdbNewOpCode::run, NLAISCRIPT::CObjectUnknown::run, NLAISCRIPT::IBlock::run, NLAISCRIPT::CCallPrint::run, NLAISCRIPT::CAgentClass::run, NLAISCRIPT::CMethodeName::run, NLAISCRIPT::CParam::run, NLAILOGIC::CGoalStack::run, NLAIFUZZY::FuzzyType::run, NLAIFUZZY::CTrapezeFuzzySet::run, NLAIFUZZY::CLeftFuzzySet::run, NLAIFUZZY::CTriangleFuzzySet::run, NLAIFUZZY::CRightFuzzySet::run, NLAIFUZZY::CFuzzyInterval::run, NLAIFUZZY::CFuzzyFact::run, NLAISCRIPT::CContextDebug::run, NLAISCRIPT::CCodeContext::run, NLAICHARACTER::CCharacterChild::run, NLAIAGENT::CAgentTimerHandle::run, NLAIAGENT::CLibTimerManager::run, NLAIAGENT::CAgentScript::runActivity, NLAIAGENT::CProxyAgentMail::runActivity, NLAIAGENT::CLocalAgentMail::runActivity, NLAIAGENT::IAgent::runActivity, and NLAISCRIPT::CLibTest::runMethodeMember. |
The documentation for this class was generated from the following files:
|
|