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

#include <volatil_memory.h>

Inheritance diagram for NLAIAGENT::CVolatilMemmory:

NLAIAGENT::IConnectIA NLAIAGENT::IRefrence NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAILOGIC::CVarMem List of all members.

Public Methods

 CVolatilMemmory (IBaseGroupType *l=new CGroupType)
 CVolatilMemmory (const CVolatilMemmory &)
virtual ~CVolatilMemmory ()
CConstIteratorContener getConstIterator () const
void pushFront (uint time, IObjectIA *)
void pushBack (uint time, IObjectIA *)
void popFront ()
void popBack ()
IObjectIAFront () const
IObjectIABack () const
void erase (CConstIteratorContener &)
int size ()
void addAccount (IObjectIA *)
void releaseAccount (IObjectIA *)
void init ()
IBasicInterface method.
virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. 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 const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. 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 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 bool isEqual (const IBasicObjectIA &a) const
 The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. More...

virtual void onKill (IConnectIA *)
 When agent die and when he is in the Connectioned lis, he call this method to inform this state to the objects. More...

virtual IObjectIA::CProcessResult sendMessage (IMessageBase *msg)
virtual const CProcessResult & getState () const
virtual void setState (TProcessStatement s, IObjectIA *result)
IObjectIA method.
virtual const CProcessResult & run ()
 Some where Run method define the process of the agen. More...


Static Public Methods

void initClass ()
void releaseClass ()

Static Public Attributes

CHashTimerManagerTimer = NULL
const NLAIC::CIdentTypeIdVolatilMemmory = NULL

Protected Methods

virtual void sendUpdateMessage (IObjectIA *)

Protected Attributes

uint _Time
IBaseGroupType_List
std::list< IObjectIA * > _Connecter
const CPairType_PairToDelete

Private Methods

void searchBest ()
void testIfBest (const CPairType *)
void runMessage (CAgentWatchTimer *)

Constructor & Destructor Documentation

NLAIAGENT::CVolatilMemmory::CVolatilMemmory IBaseGroupType   l = new CGroupType
 

Definition at line 71 of file volatil_memory.cpp.

References NLAISCRIPT::l.

Referenced by clone, NLAILOGIC::CVarMem::CVarMem, initClass, and newInstance.

NLAIAGENT::CVolatilMemmory::CVolatilMemmory const CVolatilMemmory &   
 

Definition at line 75 of file volatil_memory.cpp.

References _List, and v.

NLAIAGENT::CVolatilMemmory::~CVolatilMemmory   [virtual]
 

Definition at line 80 of file volatil_memory.cpp.

References _List.


Member Function Documentation

void NLAIAGENT::CVolatilMemmory::addAccount IObjectIA  
 

Definition at line 184 of file volatil_memory.cpp.

References _Connecter.

IObjectIA * NLAIAGENT::CVolatilMemmory::Back   const
 

Definition at line 122 of file volatil_memory.cpp.

References _List.

virtual const NLAIC::IBasicType* NLAIAGENT::CVolatilMemmory::clone   const [inline, virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CVarMem.

Definition at line 180 of file volatil_memory.h.

References CVolatilMemmory, and x.

void NLAIAGENT::CVolatilMemmory::erase CConstIteratorContener  
 

Definition at line 160 of file volatil_memory.cpp.

References _PairToDelete, and searchBest.

Referenced by NLAILOGIC::CFirstOrderAssert::removeFact.

IObjectIA * NLAIAGENT::CVolatilMemmory::Front   const
 

Definition at line 117 of file volatil_memory.cpp.

References _List.

Referenced by NLAILOGIC::CFirstOrderAssert::~CFirstOrderAssert.

CConstIteratorContener NLAIAGENT::CVolatilMemmory::getConstIterator   const [inline]
 

Definition at line 137 of file volatil_memory.h.

References _List.

Referenced by NLAILOGIC::CFirstOrderAssert::backward, NLAILOGIC::CFirstOrderAssert::CFirstOrderAssert, NLAILOGIC::CFirstOrderAssert::getFacts, and NLAILOGIC::CFirstOrderAssert::removeFact.

void NLAIAGENT::CVolatilMemmory::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.

Implements NLAIC::IBasicType.

Definition at line 282 of file volatil_memory.cpp.

References _List, r, s, and t.

virtual const CProcessResult& NLAIAGENT::CVolatilMemmory::getState   const [inline, virtual]
 

Implements NLAIAGENT::IConnectIA.

Definition at line 197 of file volatil_memory.h.

virtual const NLAIC::CIdentType& NLAIAGENT::CVolatilMemmory::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).

Implements NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CVarMem.

Definition at line 169 of file volatil_memory.h.

void NLAIAGENT::CVolatilMemmory::init  
 

Definition at line 85 of file volatil_memory.cpp.

References NLAIC::CIdentType::allocClass, t, and Timer.

void NLAIAGENT::CVolatilMemmory::initClass   [static]
 

Reimplemented in NLAILOGIC::CVarMem.

Definition at line 294 of file volatil_memory.cpp.

References NLAILINK::buildScript, CVolatilMemmory, NLAIC::CTypeOfOperator::opNone, and NLAIC::CTypeOfObject::tObject.

virtual bool NLAIAGENT::CVolatilMemmory::isEqual const IBasicObjectIA   a const [inline, virtual]
 

The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.

Implements NLAIAGENT::IBasicObjectIA.

Definition at line 188 of file volatil_memory.h.

References NLAIAGENT::IBasicObjectIA::IBasicObjectIA.

virtual void NLAIAGENT::CVolatilMemmory::load NLMISC::IStream   is [inline, virtual]
 

Load the class from a stream.

Implements NLAIAGENT::IConnectIA.

Definition at line 165 of file volatil_memory.h.

virtual const NLAIC::IBasicType* NLAIAGENT::CVolatilMemmory::newInstance   const [inline, virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CVarMem.

Definition at line 174 of file volatil_memory.h.

References CVolatilMemmory, and x.

void NLAIAGENT::CVolatilMemmory::onKill IConnectIA   [virtual]
 

When agent die and when he is in the Connectioned lis, he call this method to inform this state to the objects.

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 277 of file volatil_memory.cpp.

References releaseAccount.

void NLAIAGENT::CVolatilMemmory::popBack  
 

Definition at line 111 of file volatil_memory.cpp.

References _List, _PairToDelete, and searchBest.

void NLAIAGENT::CVolatilMemmory::popFront  
 

Definition at line 106 of file volatil_memory.cpp.

References _List, _PairToDelete, and searchBest.

Referenced by NLAILOGIC::CFirstOrderAssert::~CFirstOrderAssert.

void NLAIAGENT::CVolatilMemmory::pushBack uint    time,
IObjectIA  
 

Definition at line 99 of file volatil_memory.cpp.

References _List, _Time, and testIfBest.

Referenced by NLAILOGIC::CFirstOrderAssert::addFact, and NLAILOGIC::CFirstOrderAssert::CFirstOrderAssert.

void NLAIAGENT::CVolatilMemmory::pushFront uint    time,
IObjectIA  
 

Definition at line 92 of file volatil_memory.cpp.

References _List, _Time, and testIfBest.

void NLAIAGENT::CVolatilMemmory::releaseAccount IObjectIA  
 

Definition at line 189 of file volatil_memory.cpp.

References _Connecter.

Referenced by onKill.

void NLAIAGENT::CVolatilMemmory::releaseClass   [static]
 

Reimplemented in NLAILOGIC::CVarMem.

Definition at line 311 of file volatil_memory.cpp.

virtual const CProcessResult& NLAIAGENT::CVolatilMemmory::run   [inline, virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 209 of file volatil_memory.h.

void NLAIAGENT::CVolatilMemmory::runMessage CAgentWatchTimer   [private]
 

Definition at line 219 of file volatil_memory.cpp.

References _List, _PairToDelete, _Time, t, and x.

Referenced by sendMessage.

virtual void NLAIAGENT::CVolatilMemmory::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Implements NLAIAGENT::IConnectIA.

Definition at line 162 of file volatil_memory.h.

void NLAIAGENT::CVolatilMemmory::searchBest   [private]
 

Definition at line 141 of file volatil_memory.cpp.

References _List, _PairToDelete, _Time, r, and x.

Referenced by erase, popBack, and popFront.

IObjectIA::CProcessResult NLAIAGENT::CVolatilMemmory::sendMessage IMessageBase   msg [virtual]
 

Implements NLAIAGENT::IConnectIA.

Definition at line 203 of file volatil_memory.cpp.

References runMessage.

void NLAIAGENT::CVolatilMemmory::sendUpdateMessage IObjectIA   [protected, virtual]
 

Reimplemented in NLAILOGIC::CVarMem.

Definition at line 167 of file volatil_memory.cpp.

References _Connecter.

virtual void NLAIAGENT::CVolatilMemmory::setState TProcessStatement    s,
IObjectIA   result
[inline, virtual]
 

Implements NLAIAGENT::IConnectIA.

Definition at line 201 of file volatil_memory.h.

References NLAIAGENT::IObjectIA::IObjectIA, s, and NLAIAGENT::TProcessStatement.

int NLAIAGENT::CVolatilMemmory::size   [inline]
 

Definition at line 151 of file volatil_memory.h.

References _List.

Referenced by NLAILOGIC::CFirstOrderAssert::~CFirstOrderAssert.

void NLAIAGENT::CVolatilMemmory::testIfBest const CPairType   [private]
 

Definition at line 127 of file volatil_memory.cpp.

References _PairToDelete, and x.

Referenced by pushBack, and pushFront.


Member Data Documentation

std::list<IObjectIA *> NLAIAGENT::CVolatilMemmory::_Connecter [protected]
 

Definition at line 127 of file volatil_memory.h.

Referenced by addAccount, releaseAccount, and sendUpdateMessage.

IBaseGroupType* NLAIAGENT::CVolatilMemmory::_List [protected]
 

Definition at line 126 of file volatil_memory.h.

Referenced by Back, CVolatilMemmory, Front, getConstIterator, getDebugString, popBack, popFront, pushBack, pushFront, runMessage, searchBest, size, and ~CVolatilMemmory.

const CPairType* NLAIAGENT::CVolatilMemmory::_PairToDelete [protected]
 

Definition at line 128 of file volatil_memory.h.

Referenced by erase, popBack, popFront, runMessage, searchBest, and testIfBest.

uint NLAIAGENT::CVolatilMemmory::_Time [protected]
 

Definition at line 125 of file volatil_memory.h.

Referenced by pushBack, pushFront, runMessage, and searchBest.

const NLAIC::CIdentType * NLAIAGENT::CVolatilMemmory::IdVolatilMemmory = NULL [static]
 

Definition at line 69 of file volatil_memory.cpp.

CHashTimerManager * NLAIAGENT::CVolatilMemmory::Timer = NULL [static]
 

Definition at line 68 of file volatil_memory.cpp.

Referenced by init.


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