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

#include <agent_timer.h>

Inheritance diagram for NLAIAGENT::CAgentWatchTimer:

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

Public Methods

 CAgentWatchTimer ()
 CAgentWatchTimer (IAgentManager *)
 CAgentWatchTimer (IAgentManager *, IBasicAgent *, std::list< IObjectIA * > &, NLAISCRIPT::CAgentClass *)
 CAgentWatchTimer (const CAgentWatchTimer &)
virtual ~CAgentWatchTimer ()
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 const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. 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 void onKill (IConnectIA *A)
 Called by an agent who's destroyed te remove its references. More...

virtual sint getClock () const
virtual void setClock (uint c)
void addAttrib (IConnectIA *, IMessageBase *)
void attach ()
void detach ()
bool detach (IConnectIA *, bool deleteFromConnection=true)
bool tellBroker ()
sint getSubscribedCount () const
virtual IObjectIA::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 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 IObjectIA::CProcessResult runMethodBase (int heritance, int index, NLAIAGENT::IObjectIA *)
virtual IObjectIA::CProcessResult runMethodBase (int index, NLAIAGENT::IObjectIA *)
virtual IObjectIA::CProcessResult runMethodeMember (sint32 index, NLAIAGENT::IObjectIA *)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

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

virtual IMessageBaserunKill (const IMessageBase &m)
 runKill is to processing reltative to PKill Performatif. More...


Static Public Methods

void initClass ()
void initMsgClass ()
void releaseClass ()

Public Attributes

enum TAttach TSetClock TGetClock
TAddAttrib 
TLastM
 The count of export method. More...


Static Public Attributes

NLAIAGENT::CAgentScript::CMethodCall ** StaticMethod = NULL
const NLAIC::CIdentTypeIdAgentWatchTimer = NULL

Protected Attributes

sint _Clock
NLMISC::TTicks _DTime
std::list< std::pair< IConnectIA *,
std::pair< IMessageBase *,
sint32 > > > 
_Call
std::list< std::pair< IConnectIA *,
std::pair< IMessageBase *,
sint32 > > >::iterator 
_CallIter

Constructor & Destructor Documentation

NLAIAGENT::CAgentWatchTimer::CAgentWatchTimer  
 

Definition at line 230 of file agent_timer.cpp.

References _Call, and _CallIter.

Referenced by clone, initClass, and newInstance.

NLAIAGENT::CAgentWatchTimer::CAgentWatchTimer IAgentManager  
 

Definition at line 247 of file agent_timer.cpp.

NLAIAGENT::CAgentWatchTimer::CAgentWatchTimer IAgentManager  ,
IBasicAgent  ,
std::list< IObjectIA * > &   ,
NLAISCRIPT::CAgentClass  
 

Definition at line 250 of file agent_timer.cpp.

References v.

NLAIAGENT::CAgentWatchTimer::CAgentWatchTimer const CAgentWatchTimer &   
 

Definition at line 234 of file agent_timer.cpp.

References _Call, _CallIter, NLAIAGENT::IConnectIA::connect, and t.

NLAIAGENT::CAgentWatchTimer::~CAgentWatchTimer   [virtual]
 

Definition at line 253 of file agent_timer.cpp.

References _Call.


Member Function Documentation

void NLAIAGENT::CAgentWatchTimer::addAttrib IConnectIA  ,
IMessageBase  
 

Definition at line 308 of file agent_timer.cpp.

References _Call, NLAIAGENT::IConnectIA::connect, NLAIAGENT::IConnectIA::IConnectIA, index, param, r, t, and NLAIAGENT::tQueue.

Referenced by runMethodBase.

void NLAIAGENT::CAgentWatchTimer::attach  
 

Definition at line 396 of file agent_timer.cpp.

References _DTime, NLMISC::CTime::getLocalTime, NLAIC::IPointerGestion::incRef, and t.

Referenced by runMethodBase.

const NLAIC::IBasicType * NLAIAGENT::CAgentWatchTimer::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.

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 265 of file agent_timer.cpp.

References CAgentWatchTimer.

bool NLAIAGENT::CAgentWatchTimer::detach IConnectIA  ,
bool    deleteFromConnection = true
 

Definition at line 343 of file agent_timer.cpp.

References _Call, detach, and NLAIAGENT::IConnectIA::removeConnection.

void NLAIAGENT::CAgentWatchTimer::detach  
 

Definition at line 377 of file agent_timer.cpp.

References r, and t.

Referenced by detach, and onKill.

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

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 411 of file agent_timer.cpp.

virtual sint NLAIAGENT::CAgentWatchTimer::getClock   const [inline, virtual]
 

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 189 of file agent_timer.h.

References _Clock.

Referenced by runMethodBase.

void NLAIAGENT::CAgentWatchTimer::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 370 of file agent_timer.cpp.

References s, NLAIC::stringGetBuild, and t.

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

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 417 of file agent_timer.cpp.

sint NLAIAGENT::CAgentWatchTimer::getSubscribedCount   const [inline]
 

Definition at line 204 of file agent_timer.h.

const NLAIC::CIdentType & NLAIAGENT::CAgentWatchTimer::getType   const [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.

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 275 of file agent_timer.cpp.

References IdAgentWatchTimer.

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

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 211 of file agent_timer.h.

void NLAIAGENT::CAgentWatchTimer::initClass   [static]
 

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 530 of file agent_timer.cpp.

References _ADDATTRIB_, _ATTACH_, _GETCLOCK_, _SETCLOCK_, CAgentWatchTimer, NLAIAGENT::CAgentScript::CheckAll, NLAIAGENT::CAgentScript::CheckCount, NLAIAGENT::CAgentScript::DoNotCheck, NLAIAGENT::DDigitalType::IdDDigitalType, NLAIAGENT::DigitalType::IdDigitalType, initMsgClass, NLAIC::CTypeOfOperator::opNone, NLAIAGENT::Param, and NLAIC::CTypeOfObject::tAgent.

void NLAIAGENT::CAgentWatchTimer::initMsgClass   [static]
 

Definition at line 516 of file agent_timer.cpp.

References NLAILINK::buildScript.

Referenced by initClass.

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

Definition at line 424 of file agent_timer.cpp.

References NLAIAGENT::isTemplateMember, param, and r.

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

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

Reimplemented from NLAIAGENT::CAgentScript.

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 270 of file agent_timer.cpp.

References CAgentWatchTimer.

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

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 338 of file agent_timer.cpp.

References detach.

void NLAIAGENT::CAgentWatchTimer::releaseClass   [static]
 

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 577 of file agent_timer.cpp.

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

Mailer do'nt have own activity.

Reimplemented from NLAIAGENT::CAgentScript.

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 280 of file agent_timer.cpp.

References _Clock, _DTime, NLMISC::CTime::getLocalTime, NLAIAGENT::IBasicAgent::getState, NLAIAGENT::processToKill, NLAIAGENT::IBasicAgent::setState, and tellBroker.

virtual IMessageBase* NLAIAGENT::CAgentWatchTimer::runKill const IMessageBase   m [inline, virtual]
 

runKill is to processing reltative to PKill Performatif.

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

Reimplemented from NLAIAGENT::IBasicAgent.

Definition at line 225 of file agent_timer.h.

References NLAIAGENT::processToKill, and NLAIAGENT::IBasicAgent::setState.

NLAIAGENT::IObjectIA::CProcessResult NLAIAGENT::CAgentWatchTimer::runMethodBase int    index,
NLAIAGENT::IObjectIA  
[virtual]
 

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 441 of file agent_timer.cpp.

References addAttrib, attach, NLAIAGENT::IBaseGroupType::get, getClock, NLAIAGENT::IBaseGroupType::getIterator, NLAIAGENT::IConnectIA::IConnectIA, index, param, r, NLAIAGENT::IObjectIA::CProcessResult::Result, setClock, and NLAIAGENT::IBaseGroupType::size.

NLAIAGENT::IObjectIA::CProcessResult NLAIAGENT::CAgentWatchTimer::runMethodBase int    heritance,
int    index,
NLAIAGENT::IObjectIA  
[virtual]
 

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 431 of file agent_timer.cpp.

References index.

Referenced by runMethodeMember.

IObjectIA::CProcessResult NLAIAGENT::CAgentWatchTimer::runMethodeMember sint32    index,
NLAIAGENT::IObjectIA  
[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 from NLAIAGENT::CAgentScript.

Definition at line 436 of file agent_timer.cpp.

References index, and runMethodBase.

IMessageBase * NLAIAGENT::CAgentWatchTimer::runTell const IMessageBase   m [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 496 of file agent_timer.cpp.

References NLAIAGENT::processEnd, NLAIAGENT::processIdle, and NLAIAGENT::IBasicAgent::setState.

virtual void NLAIAGENT::CAgentWatchTimer::setClock uint    c [inline, virtual]
 

Reimplemented in NLAIAGENT::CAgentClockTimer.

Definition at line 194 of file agent_timer.h.

References _Clock.

Referenced by runMethodBase.

bool NLAIAGENT::CAgentWatchTimer::tellBroker  
 

Definition at line 291 of file agent_timer.cpp.

References _Call, _CallIter, and NLAIAGENT::IObjectIA::IObjectIA.

Referenced by NLAIAGENT::CAgentClockTimer::runActivity, and runActivity.


Member Data Documentation

std::list<std::pair< IConnectIA *, std::pair<IMessageBase *, sint32> > > NLAIAGENT::CAgentWatchTimer::_Call [protected]
 

Definition at line 171 of file agent_timer.h.

Referenced by addAttrib, CAgentWatchTimer, detach, tellBroker, and ~CAgentWatchTimer.

std::list<std::pair< IConnectIA *, std::pair<IMessageBase *, sint32> > >::iterator NLAIAGENT::CAgentWatchTimer::_CallIter [protected]
 

Definition at line 172 of file agent_timer.h.

Referenced by CAgentWatchTimer, and tellBroker.

sint NLAIAGENT::CAgentWatchTimer::_Clock [protected]
 

Definition at line 169 of file agent_timer.h.

Referenced by getClock, NLAIAGENT::CAgentClockTimer::runActivity, runActivity, and setClock.

NLMISC::TTicks NLAIAGENT::CAgentWatchTimer::_DTime [protected]
 

Definition at line 170 of file agent_timer.h.

Referenced by attach, NLAIAGENT::CAgentClockTimer::runActivity, and runActivity.

const NLAIC::CIdentType * NLAIAGENT::CAgentWatchTimer::IdAgentWatchTimer = NULL [static]
 

Definition at line 227 of file agent_timer.cpp.

Referenced by getType.

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 514 of file agent_timer.cpp.

enum TAttach TSetClock TGetClock TAddAttrib NLAIAGENT::CAgentWatchTimer::TLastM
 

The count of export method.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 154 of file agent_timer.h.


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