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

#include <operation.h>

Inheritance diagram for NLAIAGENT::CAgentOperation:

NLAIAGENT::CAgentScript NLAIAGENT::IObjetOp NLAIAGENT::IAgentManager NLAIAGENT::IObjectIA NLAIAGENT::IAgent NLAIAGENT::IBasicObjectIA NLAIAGENT::IAgentComposite NLAIC::IBasicInterface NLAIAGENT::IBasicAgent NLAIC::IBasicType NLAIAGENT::IConnectIA NLAIC::IPointerGestion NLAIAGENT::IRefrence NLMISC::IStreamable NLAIAGENT::IObjectIA NLMISC::IClassable NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CAgentOperation ()
 CAgentOperation (IObjetOp *o)
 CAgentOperation (const CAgentOperation &)
virtual ~CAgentOperation ()
virtual void setValue (IObjetOp *o)
const IObjetOpgetsetValue () const
void setName (const CStringType &name)
const CStringTypegetName () const
virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpneg ()
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator+= (const IObjetOp &)
 add the operater by anather. More...

virtual IObjetOpoperator-= (const IObjetOp &)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator *= (const IObjetOp &)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator/= (const IObjetOp &)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjectIAoperator= (const IObjectIA &a)
 Equality operator. More...

virtual CProcessResult runActivity ()
 Mailer do'nt have own activity. More...

virtual bool haveActivity () const
 allow to know if the agent have an activity process to run. More...

virtual IMessageBaserunTell (const IMessageBase &)
 runTell is to processing reltative to PTell Performatif. More...

virtual void onKill (IConnectIA *A)
 Called by an agent who's destroyed te remove its references. More...

virtual const CProcessResult & run ()
 The work of an agent. More...

virtual bool isEqual (const IBasicObjectIA &a) const
 Implementation of the isEqual of the IBasicObjectIA. More...

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

virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual const NLAIC::IBasicTypeclone () 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::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual void getDebugString (std::string &t) 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 const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual void update ()
virtual bool changed () const
virtual void connectOnChange (IConnectIA *ref)
virtual void changeIsDone ()
virtual int getBaseMethodCount () const
 Return the nomber of internal C++ hard coded method that the class can process. More...

virtual NLAIAGENT::tQueue isMember (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 CProcessResult runMethodBase (int, int, IObjectIA *)
virtual CProcessResult runMethodBase (int, IObjectIA *)

Static Public Methods

void initClass ()
void releaseClass ()

Public Attributes

enum TSetValue TGetValue TSetName
TGetName TUpdate TIsChange
TConnect 
TLastM
 The count of export method. More...


Static Public Attributes

const NLAIC::CIdentTypeIdAgentOperation = NULL
const NLAIC::CIdentTypeidMsgOnChangeMsg = NULL
const NLAIAGENT::IMessageBaseMsgOnChangeMsg = NULL
CMethodCall ** StaticMethod = NULL

Protected Methods

void update (IObjectIA *obj)

Protected Attributes

IObjetOp_Op

Private Attributes

CStringType_Name
std::list< IConnectIA * > _Connection
bool _Change

Constructor & Destructor Documentation

NLAIAGENT::CAgentOperation::CAgentOperation  
 

Definition at line 37 of file operation.cpp.

Referenced by clone, initClass, and newInstance.

NLAIAGENT::CAgentOperation::CAgentOperation IObjetOp   o
 

Definition at line 41 of file operation.cpp.

NLAIAGENT::CAgentOperation::CAgentOperation const CAgentOperation &   
 

Definition at line 46 of file operation.cpp.

References _Op, and setName.

NLAIAGENT::CAgentOperation::~CAgentOperation   [virtual]
 

Definition at line 62 of file operation.cpp.

References _Name, and _Op.


Member Function Documentation

virtual bool NLAIAGENT::CAgentOperation::changed   const [inline, virtual]
 

Definition at line 136 of file operation.h.

References _Change.

Referenced by runActivity, and runMethodBase.

virtual void NLAIAGENT::CAgentOperation::changeIsDone   [inline, virtual]
 

Definition at line 143 of file operation.h.

References _Change.

Referenced by runActivity.

const NLAIC::IBasicType * NLAIAGENT::CAgentOperation::clone   const [virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 181 of file operation.cpp.

References CAgentOperation, and NLAIAGENT::CAgentScript::CAgentScript.

void NLAIAGENT::CAgentOperation::connectOnChange IConnectIA   ref [virtual]
 

Definition at line 97 of file operation.cpp.

References _Connection, _Op, NLAIAGENT::IConnectIA::IConnectIA, and update.

Referenced by runMethodBase.

int NLAIAGENT::CAgentOperation::getBaseMethodCount   const [virtual]
 

Return the nomber of internal C++ hard coded method that the class can process.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 239 of file operation.cpp.

void NLAIAGENT::CAgentOperation::getDebugString std::string &    t const [virtual]
 

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.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 170 of file operation.cpp.

References _Op, s, and t.

sint32 NLAIAGENT::CAgentOperation::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 244 of file operation.cpp.

const CStringType* NLAIAGENT::CAgentOperation::getName   const [inline]
 

Definition at line 89 of file operation.h.

References _Name.

const IObjetOp* NLAIAGENT::CAgentOperation::getsetValue   const [inline]
 

Definition at line 77 of file operation.h.

References _Op, and NLAIAGENT::IObjetOp::IObjetOp.

virtual const NLAIC::CIdentType& NLAIAGENT::CAgentOperation::getType   const [inline, virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 126 of file operation.h.

virtual bool NLAIAGENT::CAgentOperation::haveActivity   const [inline, virtual]
 

allow to know if the agent have an activity process to run.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 110 of file operation.h.

void NLAIAGENT::CAgentOperation::initClass   [static]
 

Definition at line 323 of file operation.cpp.

References NLAIC::CIdentType::allocClass, CAgentOperation, NLAIAGENT::CAgentScript::CAgentScript, NLAIAGENT::DDigitalType::IdDDigitalType, NLAIC::CTypeOfOperator::opEq, NLAIC::CTypeOfObject::tAgent, and NLAIC::CTypeOfObject::tInterpret.

bool NLAIAGENT::CAgentOperation::isEqual const IBasicObjectIA   a const [virtual]
 

Implementation of the isEqual of the IBasicObjectIA.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 160 of file operation.cpp.

References _Op, NLAIAGENT::CAgentScript::CAgentScript, NLAIAGENT::IObjetOp::IObjetOp, and isEqual.

NLAIAGENT::tQueue NLAIAGENT::CAgentOperation::isMember const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  ,
const NLAIAGENT::IObjectIA  
const [virtual]
 

Definition at line 249 of file operation.cpp.

References NLAIAGENT::isTemplateMember, param, and r.

bool NLAIAGENT::CAgentOperation::isTrue   const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Definition at line 231 of file operation.cpp.

References _Op.

void NLAIAGENT::CAgentOperation::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 192 of file operation.cpp.

IObjetOp & NLAIAGENT::CAgentOperation::neg   [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 202 of file operation.cpp.

References _Op.

const NLAIC::IBasicType * NLAIAGENT::CAgentOperation::newInstance   const [virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 187 of file operation.cpp.

References CAgentOperation, and NLAIAGENT::CAgentScript::CAgentScript.

void NLAIAGENT::CAgentOperation::onKill IConnectIA   A [virtual]
 

Called by an agent who's destroyed te remove its references.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 70 of file operation.cpp.

References _Connection.

IObjetOp & NLAIAGENT::CAgentOperation::operator *= const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 219 of file operation.cpp.

References update.

IObjetOp & NLAIAGENT::CAgentOperation::operator+= const IObjetOp   a [virtual]
 

add the operater by anather.

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 207 of file operation.cpp.

References update.

IObjetOp & NLAIAGENT::CAgentOperation::operator-= const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 213 of file operation.cpp.

References update.

IObjetOp & NLAIAGENT::CAgentOperation::operator/= const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 225 of file operation.cpp.

References update.

virtual IObjectIA& NLAIAGENT::CAgentOperation::operator= const IObjectIA   a [inline, virtual]
 

Equality operator.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 102 of file operation.h.

References NLAIAGENT::IObjectIA::IObjectIA, and NLAIC::stringGetBuild.

void NLAIAGENT::CAgentOperation::releaseClass   [static]
 

Definition at line 373 of file operation.cpp.

const IObjectIA::CProcessResult & NLAIAGENT::CAgentOperation::run   [virtual]
 

The work of an agent.

Typically agent process child message, process its message and run its activity.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 132 of file operation.cpp.

IObjectIA::CProcessResult NLAIAGENT::CAgentOperation::runActivity   [virtual]
 

Mailer do'nt have own activity.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 110 of file operation.cpp.

References _Connection, changed, changeIsDone, and update.

NLAIAGENT::IObjectIA::CProcessResult NLAIAGENT::CAgentOperation::runMethodBase int   ,
IObjectIA  
[virtual]
 

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 268 of file operation.cpp.

References _Name, _Op, changed, connectOnChange, NLAIAGENT::IBaseGroupType::get, NLAIAGENT::IConnectIA::IConnectIA, index, NLAIAGENT::IObjetOp::IObjetOp, param, r, NLAIAGENT::IObjectIA::CProcessResult::Result, s, setName, setValue, and update.

NLAIAGENT::IObjectIA::CProcessResult NLAIAGENT::CAgentOperation::runMethodBase int   ,
int   ,
IObjectIA  
[virtual]
 

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 263 of file operation.cpp.

References index.

IMessageBase * NLAIAGENT::CAgentOperation::runTell const IMessageBase   [virtual]
 

runTell is to processing reltative to PTell Performatif.

its call from the IObjectIA *run(const IMessageBase &m) method.

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 137 of file operation.cpp.

References _Change, _Op, NLAIAGENT::IObjectIA::IObjectIA, NLAIAGENT::IObjetOp::IObjetOp, and setValue.

void NLAIAGENT::CAgentOperation::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 197 of file operation.cpp.

void NLAIAGENT::CAgentOperation::setName const CStringType   name [inline]
 

Definition at line 82 of file operation.h.

References _Name.

Referenced by CAgentOperation, and runMethodBase.

virtual void NLAIAGENT::CAgentOperation::setValue IObjetOp   o [inline, virtual]
 

Definition at line 70 of file operation.h.

References _Op, and NLAIAGENT::IObjetOp::IObjetOp.

Referenced by runMethodBase, and runTell.

void NLAIAGENT::CAgentOperation::update IObjectIA   obj [protected]
 

Definition at line 85 of file operation.cpp.

References _Name, _Op, NLAIAGENT::CAgentScript::CAgentScript, NLAIC::IBasicType::clone, NLAIAGENT::IListBasicManager::push, NLAIAGENT::IMessageBase::setPerformatif, and NLAIAGENT::IMessageBase::setSender.

virtual void NLAIAGENT::CAgentOperation::update   [inline, virtual]
 

Definition at line 131 of file operation.h.

References _Change.

Referenced by connectOnChange, operator *=, operator+=, operator-=, operator/=, runActivity, and runMethodBase.


Member Data Documentation

bool NLAIAGENT::CAgentOperation::_Change [private]
 

Definition at line 61 of file operation.h.

Referenced by changed, changeIsDone, runTell, and update.

std::list< IConnectIA * > NLAIAGENT::CAgentOperation::_Connection [private]
 

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 60 of file operation.h.

Referenced by connectOnChange, onKill, and runActivity.

CStringType* NLAIAGENT::CAgentOperation::_Name [private]
 

Definition at line 59 of file operation.h.

Referenced by getName, runMethodBase, setName, update, and ~CAgentOperation.

IObjetOp* NLAIAGENT::CAgentOperation::_Op [protected]
 

Definition at line 56 of file operation.h.

Referenced by CAgentOperation, connectOnChange, getDebugString, getsetValue, isEqual, isTrue, neg, runMethodBase, runTell, setValue, update, and ~CAgentOperation.

const NLAIC::CIdentType * NLAIAGENT::CAgentOperation::IdAgentOperation = NULL [static]
 

Definition at line 33 of file operation.cpp.

const NLAIC::CIdentType * NLAIAGENT::CAgentOperation::idMsgOnChangeMsg = NULL [static]
 

Definition at line 34 of file operation.cpp.

const NLAIAGENT::IMessageBase * NLAIAGENT::CAgentOperation::MsgOnChangeMsg = NULL [static]
 

Definition at line 35 of file operation.cpp.

NLAIAGENT::CAgentScript::CMethodCall ** NLAIAGENT::CAgentOperation::StaticMethod = NULL [static]
 

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 321 of file operation.cpp.

enum TSetValue TGetValue TSetName TGetName TUpdate TIsChange TConnect NLAIAGENT::CAgentOperation::TLastM
 

The count of export method.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 43 of file operation.h.


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