# 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  

NLAIAGENT::IObjectIA Class Reference

IObjectIA is the basic class for all IA surpport. More...

#include <baseai.h>

Inheritance diagram for NLAIAGENT::IObjectIA

Inheritance graph
[legend]
Collaboration diagram for NLAIAGENT::IObjectIA:

Collaboration graph
[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 CProcessResultrun () = 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 ( )
 

Definition at line 154 of file baseai.cpp.

NLAIAGENT::IObjectIA::~IObjectIA ( ) [virtual]
 

Definition at line 158 of file baseai.cpp.


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]
 

to get the index of a given components name.

Reimplemented in NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, and NLAIAGENT::CMessageScript.

Definition at line 179 of file baseai.cpp.

Referenced by NLAISCRIPT::CCompilateur::getValidateHierarchyBase(), NLAISCRIPT::CCompilateur::isValidateVarName(), NLAISCRIPT::CCodeBrancheRunDebug::printVariable(), NLAISCRIPT::CCompilateur::processingVar(), and NLAISCRIPT::CConstraintStackComp::run().

sint32 NLAIAGENT::IObjectIA::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 in NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CMessageScript, NLAISCRIPT::IClassInterpret, and NLAISCRIPT::CAgentClass.

Definition at line 171 of file baseai.cpp.

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]
 

isClassInheritedFrom(className) allow us to known if this class have a base class with the name className.

If true the method return the range of the base class, this range is an arbitrary reference id define by the programmer or bay the scrypt. the false return is define by -1.

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::CLocalAgentMail, NLAIAGENT::INombreDefine, NLAIAGENT::IBaseGroupType, NLAIAGENT::CAgentScript, and NLAIAGENT::CMessageScript.

Definition at line 228 of file baseai.cpp.

Referenced by NLAISCRIPT::CCompilateur::getValidateHierarchyBase().

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]
 

Equality operator.

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, NLAIAGENT::IBaseGroupType, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, and NLAIAGENT::IMessageBase.

Definition at line 162 of file baseai.cpp.

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.

IObjectIA::CProcessResult NLAIAGENT::IObjectIA::runMethodeMember ( sint32 index,
IObjectIA * param ) [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, 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.

IObjectIA::CProcessResult NLAIAGENT::IObjectIA::runMethodeMember ( sint32 heritance,
sint32 index,
IObjectIA * param ) [virtual]
 

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().

IObjectIA::CProcessResult NLAIAGENT::IObjectIA::sendMessage ( const IVarName & compName,
IObjectIA * msg ) [virtual]
 

This method allow to send a message to an compoment given by an string IVarName.

Reimplemented in NLAIAGENT::CAgentScript.

Definition at line 282 of file baseai.cpp.

IObjectIA::CProcessResult NLAIAGENT::IObjectIA::sendMessage ( IObjectIA * msg ) [virtual]
 

The method sendMessage(const IObjectIA &msg) allow us to achive a message defined in msg.

Reimplemented in NLAIAGENT::CActorScript, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentTimerHandle, NLAIAGENT::IConnectIA, NLAIAGENT::IListManager, and NLAIAGENT::CMainAgentScript.

Definition at line 290 of file baseai.cpp.

void NLAIAGENT::IObjectIA::setStaticMember ( sint32 index,
IObjectIA * op ) [virtual]
 

to cahnge a given components given by a string.

Reimplemented in NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, and NLAIAGENT::CMessageScript.

Definition at line 189 of file baseai.cpp.

void NLAIAGENT::IObjectIA::setStaticMember ( const IVarName & compName,
IObjectIA * change ) [inline]
 

to cahnge a given components given by an index.

Definition at line 250 of file baseai.h.

Referenced by NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode(), and NLAISCRIPT::CAffMemberiOpCode::runOpCode().


Member Data Documentation

TProcessStatement NLAIAGENT::IObjectIA::ProcessBuzzy = processBuzzy [static]
 

Define the an buzzy state for an agent all time in this state.

Definition at line 146 of file baseai.cpp.

TProcessStatement NLAIAGENT::IObjectIA::ProcessEnd = processEnd [static]
 

Define the an end state for an agent all time in this state.

Definition at line 147 of file baseai.cpp.

TProcessStatement NLAIAGENT::IObjectIA::ProcessError = processError [static]
 

Define the an error state for an agent all time in this state.

Definition at line 148 of file baseai.cpp.

TProcessStatement NLAIAGENT::IObjectIA::ProcessIdle = processIdle [static]
 

Define the an idle state for an agent all time in this state.

Definition at line 144 of file baseai.cpp.

TProcessStatement NLAIAGENT::IObjectIA::ProcessLocked = processLocked [static]
 

Define the an locked state for an agent all time in this state.

Definition at line 145 of file baseai.cpp.

IObjectIA::CProcessResult NLAIAGENT::IObjectIA::ProcessRun = IObjectIA::CProcessResult() [static]
 

Definition at line 143 of file baseai.cpp.


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