# 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::IRefrence Class Reference

Class IRefrence is the main class for an agent it define the word refrence of an agents. More...

#include <baseai.h>

Inheritance diagram for NLAIAGENT::IRefrence:

NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAIAGENT::IConnectIA NLAICHARACTER::ICharacter NLAIAGENT::CHashTimerManager NLAIAGENT::CVolatilMemmory NLAIAGENT::IAgentInput NLAIAGENT::IBasicAgent NLAIAGENT::IMailBox NLAICHARACTER::CCharacterChild NLAICHARACTER::IZone NLAILOGIC::CVarMem NLAIAGENT::CMsgWaiter NLAIAGENT::CProxyAgentMail NLAIAGENT::IAgentComposite NLAIAGENT::CLocalMailBox NLAIAGENT::CSimpleLocalMailBox NLAICHARACTER::CCharacterNoeud NLAIAGENT::IAgent NLAIAGENT::CScriptMailBox NLAIAGENT::CActor NLAIAGENT::CLocalAgentMail NLAIAGENT::IAgentManager NLAIAGENT::CAgentScript NLAIAGENT::CActorScript NLAIAGENT::CAgentManagerTimer NLAIAGENT::CAgentOperation NLAIAGENT::CAgentWatchTimer NLAIAGENT::IMainAgent NLAIAGENT::CFsmScript NLAIAGENT::COperatorScript NLAILOGIC::CGoalPath NLAIAGENT::CAgentClockTimer NLAIAGENT::CMainAgentScript NLAIAGENT::CSeqFsmScript List of all members.

Public Methods

 IRefrence ()
 default constructor, when it's called an new reference is created. More...

 IRefrence (const IWordNumRef *parent)
 We can call this constructor when agent have a parent. More...

 IRefrence (NLMISC::IStream &is)
 We can call this constructor when we want to load a new agents from a stream. More...

 operator const IWordNumRef & () const
 to get a word num ref of the agents. More...

 operator const IWordNumRef * () const
 to get a word num ref pointer of the agents. More...

virtual const CIdent getIdentType () const
IRefrence * getParent () const
 to get the agent parents. More...

virtual void setParent (const IWordNumRef *parent)
 to set the parent of the agents. More...

virtual const IRefrence * getOwner () const
 To get the top level parent of this agent. More...

void setTypeAt (uint64 t)
 That function allow user to change the 7 bit of the type field in the sid agent number;. More...

virtual ~IRefrence ()
IBasicInterface method.
virtual void save (NLMISC::IStream &os)=0
 Save the class in a stream. More...

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


Protected Methods

 IRefrence (const IRefrence &A)
void refLoadStream (NLMISC::IStream &is)
 the loader of the class. More...

void setNumRef (const IWordNumRef &ref)

Private Attributes

IWordNumRef_NumRef
 _NumRef is the word refrence of the agents. More...

IWordNumRef_Parent
 _Parent is the word refrence of the parent agents if existe. More...


Detailed Description

Class IRefrence is the main class for an agent it define the word refrence of an agents.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 354 of file baseai.h.


Constructor & Destructor Documentation

NLAIAGENT::IRefrence::IRefrence const IRefrence &    A [protected]
 

Definition at line 473 of file baseai.cpp.

References _NumRef, and setTypeAt.

Referenced by NLAIAGENT::IConnectIA::connectLoadStream, getOwner, getParent, NLAICHARACTER::ICharacter::ICharacter, NLAIAGENT::CLocalMailBox::load, NLAIAGENT::CLocalAgentMail::load, and NLAIAGENT::IBasicAgent::runMethodeMember.

NLAIAGENT::IRefrence::IRefrence  
 

default constructor, when it's called an new reference is created.

Definition at line 364 of file baseai.cpp.

References _NumRef.

NLAIAGENT::IRefrence::IRefrence const IWordNumRef   parent
 

We can call this constructor when agent have a parent.

Definition at line 369 of file baseai.cpp.

References _NumRef.

NLAIAGENT::IRefrence::IRefrence NLMISC::IStream   is
 

We can call this constructor when we want to load a new agents from a stream.

Definition at line 375 of file baseai.cpp.

References refLoadStream.

NLAIAGENT::IRefrence::~IRefrence   [virtual]
 

Definition at line 467 of file baseai.cpp.

References _NumRef.


Member Function Documentation

const CIdent NLAIAGENT::IRefrence::getIdentType   const [virtual]
 

Definition at line 480 of file baseai.cpp.

References _NumRef.

const IRefrence * NLAIAGENT::IRefrence::getOwner   const [virtual]
 

To get the top level parent of this agent.

Definition at line 402 of file baseai.cpp.

References getParent, and IRefrence.

IRefrence * NLAIAGENT::IRefrence::getParent   const
 

to get the agent parents.

Reimplemented in NLAIAGENT::IConnectIA.

Definition at line 390 of file baseai.cpp.

References _Parent, and IRefrence.

Referenced by getOwner, and NLAICHARACTER::CCharacterChild::haveCharacter.

void NLAIAGENT::IRefrence::load NLMISC::IStream   is [pure virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Implemented in NLAIAGENT::CActor.

Definition at line 456 of file baseai.cpp.

References refLoadStream.

NLAIAGENT::IRefrence::operator const IWordNumRef &   const
 

to get a word num ref of the agents.

Definition at line 380 of file baseai.cpp.

References _NumRef.

NLAIAGENT::IRefrence::operator const IWordNumRef *   const
 

to get a word num ref pointer of the agents.

Definition at line 385 of file baseai.cpp.

References _NumRef.

void NLAIAGENT::IRefrence::refLoadStream NLMISC::IStream   is [protected]
 

the loader of the class.

Definition at line 433 of file baseai.cpp.

References _NumRef, _Parent, NLAIC::CIdentTypeAlloc::allocClass, id, and NLMISC::IStream::serial.

Referenced by IRefrence, and load.

void NLAIAGENT::IRefrence::save NLMISC::IStream   os [pure virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Implemented in NLAIAGENT::CActor.

Definition at line 414 of file baseai.cpp.

References _NumRef, _Parent, NLMISC::IStream::serial, and t.

void NLAIAGENT::IRefrence::setNumRef const IWordNumRef   ref [protected]
 

Definition at line 461 of file baseai.cpp.

References _NumRef.

void NLAIAGENT::IRefrence::setParent const IWordNumRef   parent [virtual]
 

to set the parent of the agents.

Reimplemented in NLAIAGENT::IConnectIA.

Definition at line 395 of file baseai.cpp.

References _Parent.

void NLAIAGENT::IRefrence::setTypeAt uint64    t
 

That function allow user to change the 7 bit of the type field in the sid agent number;.

Definition at line 485 of file baseai.cpp.

References _NumRef, and t.

Referenced by IRefrence.


Member Data Documentation

IWordNumRef* NLAIAGENT::IRefrence::_NumRef [private]
 

_NumRef is the word refrence of the agents.

Definition at line 358 of file baseai.h.

Referenced by getIdentType, IRefrence, operator const IWordNumRef &, operator const IWordNumRef *, refLoadStream, save, setNumRef, setTypeAt, and ~IRefrence.

IWordNumRef* NLAIAGENT::IRefrence::_Parent [private]
 

_Parent is the word refrence of the parent agents if existe.

Definition at line 360 of file baseai.h.

Referenced by getParent, refLoadStream, save, and setParent.


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