# 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  

NLAILOGIC::CGoalStack Class Reference

#include <goal_stack.h>

Inheritance diagram for NLAILOGIC::CGoalStack:

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

Public Methods

const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

 CGoalStack ()
 CGoalStack (const CGoalStack &)
 ~CGoalStack ()
virtual IObjectIA::CProcessResult runActivity ()
virtual void addGoal (CGoal *)
virtual void removeGoal (CGoal *)
virtual void removeGoal ()
virtual CGoalgetTopGoal ()
virtual const std::vector<
CGoal * > & 
getStack ()
virtual CGoaloperator[] (sint32)
virtual void getDebugString (std::string &) 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::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 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 bool isTrue () const
virtual float truthValue () const
virtual const IObjectIA::CProcessResult & run ()
 Some where Run method define the process of the agen. More...

virtual bool isEqual (const CGoal &a) const
virtual bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
void setMaxGoals (sint32)
virtual NLAIAGENT::tQueue isMember (const NLAIAGENT::IVarName *, const NLAIAGENT::IVarName *, const NLAIAGENT::IObjectIA &) const
virtual NLAIAGENT::IObjectIA::CProcessResult runMethodeMember (sint32, sint32, NLAIAGENT::IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

virtual NLAIAGENT::IObjectIA::CProcessResult runMethodeMember (sint32 index, NLAIAGENT::IObjectIA *p)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...

const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

 CGoalStack ()
 CGoalStack (const CGoalStack &)
 ~CGoalStack ()
virtual IObjectIA::CProcessResult runActivity ()
virtual void addGoal (CGoal *)
virtual void removeGoal (CGoal *)
virtual void removeGoal ()
virtual CGoalgetTopGoal ()
virtual const std::vector<
CGoal * > & 
getStack ()
virtual CGoaloperator[] (sint32)
virtual void getDebugString (std::string &) 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::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 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 bool isTrue () const
virtual float truthValue () const
virtual const IObjectIA::CProcessResult & run ()
 Some where Run method define the process of the agen. More...

virtual bool isEqual (const CGoal &a) const
virtual bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
void setMaxGoals (sint32)
virtual NLAIAGENT::tQueue isMember (const NLAIAGENT::IVarName *, const NLAIAGENT::IVarName *, const NLAIAGENT::IObjectIA &) const
virtual NLAIAGENT::IObjectIA::CProcessResult runMethodeMember (sint32, sint32, NLAIAGENT::IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

virtual NLAIAGENT::IObjectIA::CProcessResult runMethodeMember (sint32 index, NLAIAGENT::IObjectIA *p)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...


Static Public Attributes

const NLAIC::CIdentType IdGoalStack

Private Attributes

std::vector< NLAILOGIC::CGoal * > _Goals
sint32 _MaxGoals
std::vector< NLAILOGIC::CGoal * > _Goals

Constructor & Destructor Documentation

NLAILOGIC::CGoalStack::CGoalStack  
 

Definition at line 7 of file goal_stack.cpp.

References _MaxGoals.

Referenced by clone, and newInstance.

NLAILOGIC::CGoalStack::CGoalStack const CGoalStack &   
 

Definition at line 12 of file goal_stack.cpp.

References _Goals, and _MaxGoals.

NLAILOGIC::CGoalStack::~CGoalStack  
 

Definition at line 22 of file goal_stack.cpp.

References removeGoal.

NLAILOGIC::CGoalStack::CGoalStack  
 

NLAILOGIC::CGoalStack::CGoalStack const CGoalStack &   
 

NLAILOGIC::CGoalStack::~CGoalStack  
 


Member Function Documentation

virtual void NLAILOGIC::CGoalStack::addGoal CGoal   [virtual]
 

void NLAILOGIC::CGoalStack::addGoal CGoal   [virtual]
 

Definition at line 73 of file goal_stack.cpp.

References _Goals.

virtual const NLAIC::IBasicType* NLAILOGIC::CGoalStack::clone   const [virtual]
 

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

Implements NLAIC::IBasicType.

const NLAIC::IBasicType * NLAILOGIC::CGoalStack::clone   const [virtual]
 

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

Implements NLAIC::IBasicType.

Definition at line 141 of file goal_stack.cpp.

References CGoalStack.

virtual void NLAILOGIC::CGoalStack::getDebugString std::string &    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.

void NLAILOGIC::CGoalStack::getDebugString std::string &    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 120 of file goal_stack.cpp.

References _Goals, NLAIC::stringGetBuild, and t.

sint32 NLAILOGIC::CGoalStack::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjectIA.

sint32 NLAILOGIC::CGoalStack::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 256 of file goal_stack.cpp.

virtual const std::vector<CGoal *>& NLAILOGIC::CGoalStack::getStack   [virtual]
 

const std::vector< CGoal * > & NLAILOGIC::CGoalStack::getStack   [virtual]
 

Definition at line 188 of file goal_stack.cpp.

References _Goals.

virtual CGoal* NLAILOGIC::CGoalStack::getTopGoal   [virtual]
 

CGoal * NLAILOGIC::CGoalStack::getTopGoal   [virtual]
 

Definition at line 107 of file goal_stack.cpp.

References _Goals.

const NLAIC::CIdentType& NLAILOGIC::CGoalStack::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).

Implements NLAIC::IBasicType.

const NLAIC::CIdentType & NLAILOGIC::CGoalStack::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).

Implements NLAIC::IBasicType.

Definition at line 136 of file goal_stack.cpp.

References IdGoalStack.

Referenced by isMember.

virtual bool NLAILOGIC::CGoalStack::isEqual const NLAIAGENT::IBasicObjectIA   a const [virtual]
 

virtual bool NLAILOGIC::CGoalStack::isEqual const CGoal   a const [virtual]
 

bool NLAILOGIC::CGoalStack::isEqual const NLAIAGENT::IBasicObjectIA   a const [virtual]
 

Definition at line 182 of file goal_stack.cpp.

bool NLAILOGIC::CGoalStack::isEqual const CGoal   a const [virtual]
 

Definition at line 176 of file goal_stack.cpp.

virtual NLAIAGENT::tQueue NLAILOGIC::CGoalStack::isMember const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  ,
const NLAIAGENT::IObjectIA  
const [virtual]
 

NLAIAGENT::tQueue NLAILOGIC::CGoalStack::isMember const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  ,
const NLAIAGENT::IObjectIA  
const [virtual]
 

Definition at line 198 of file goal_stack.cpp.

References NLAIC::IBasicType::getDebugString, getType, params, and r.

virtual bool NLAILOGIC::CGoalStack::isTrue   const [virtual]
 

bool NLAILOGIC::CGoalStack::isTrue   const [virtual]
 

Definition at line 159 of file goal_stack.cpp.

virtual void NLAILOGIC::CGoalStack::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

void NLAILOGIC::CGoalStack::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 155 of file goal_stack.cpp.

virtual const NLAIC::IBasicType* NLAILOGIC::CGoalStack::newInstance   const [virtual]
 

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

Implements NLAIC::IBasicType.

const NLAIC::IBasicType * NLAILOGIC::CGoalStack::newInstance   const [virtual]
 

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

Implements NLAIC::IBasicType.

Definition at line 146 of file goal_stack.cpp.

References CGoalStack.

virtual CGoal* NLAILOGIC::CGoalStack::operator[] sint32    [virtual]
 

CGoal * NLAILOGIC::CGoalStack::operator[] sint32    [virtual]
 

Definition at line 115 of file goal_stack.cpp.

References _Goals, and index.

virtual void NLAILOGIC::CGoalStack::removeGoal   [virtual]
 

virtual void NLAILOGIC::CGoalStack::removeGoal CGoal   [virtual]
 

void NLAILOGIC::CGoalStack::removeGoal   [virtual]
 

Definition at line 78 of file goal_stack.cpp.

References _Goals.

Referenced by ~CGoalStack.

void NLAILOGIC::CGoalStack::removeGoal CGoal   [virtual]
 

Definition at line 90 of file goal_stack.cpp.

References _Goals.

virtual const IObjectIA::CProcessResult& NLAILOGIC::CGoalStack::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

const NLAIAGENT::IObjectIA::CProcessResult & NLAILOGIC::CGoalStack::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 171 of file goal_stack.cpp.

References NLAIAGENT::IObjectIA::ProcessRun.

virtual IObjectIA::CProcessResult NLAILOGIC::CGoalStack::runActivity   [virtual]
 

NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CGoalStack::runActivity   [virtual]
 

Definition at line 27 of file goal_stack.cpp.

References _Goals, and _MaxGoals.

virtual NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CGoalStack::runMethodeMember sint32    index,
NLAIAGENT::IObjectIA   p
[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::IObjectIA.

virtual NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CGoalStack::runMethodeMember sint32   ,
sint32   ,
NLAIAGENT::IObjectIA  
[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 from NLAIAGENT::IObjectIA.

NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CGoalStack::runMethodeMember sint32    index,
NLAIAGENT::IObjectIA   p
[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::IObjectIA.

Definition at line 233 of file goal_stack.cpp.

References _MaxGoals, NLAIAGENT::DigitalType::getDebugString, NLAIAGENT::IBaseGroupType::getFront, NLAIAGENT::IDigital< float >::getNumber, index, param, and NLAIAGENT::IBaseGroupType::popFront.

NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CGoalStack::runMethodeMember sint32   ,
sint32   ,
NLAIAGENT::IObjectIA  
[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 from NLAIAGENT::IObjectIA.

Definition at line 228 of file goal_stack.cpp.

virtual void NLAILOGIC::CGoalStack::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

void NLAILOGIC::CGoalStack::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 151 of file goal_stack.cpp.

void NLAILOGIC::CGoalStack::setMaxGoals sint32   
 

void NLAILOGIC::CGoalStack::setMaxGoals sint32   
 

Definition at line 193 of file goal_stack.cpp.

References _MaxGoals.

virtual float NLAILOGIC::CGoalStack::truthValue   const [virtual]
 

float NLAILOGIC::CGoalStack::truthValue   const [virtual]
 

Definition at line 165 of file goal_stack.cpp.


Member Data Documentation

std::vector<NLAILOGIC::CGoal *> NLAILOGIC::CGoalStack::_Goals [private]
 

Definition at line 37 of file logic/goal_stack.h.

std::vector<NLAILOGIC::CGoal *> NLAILOGIC::CGoalStack::_Goals [private]
 

Definition at line 37 of file agent/goal_stack.h.

Referenced by addGoal, CGoalStack, getDebugString, getStack, getTopGoal, operator[], removeGoal, and runActivity.

sint32 NLAILOGIC::CGoalStack::_MaxGoals [private]
 

Definition at line 38 of file logic/goal_stack.h.

Referenced by CGoalStack, runActivity, runMethodeMember, and setMaxGoals.

const NLAIC::CIdentType CGoalStack::IdGoalStack [static]
 

Initial value:

Definition at line 425 of file static_def_init.cpp.

Referenced by getType.


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