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

#include <goal.h>

Inheritance diagram for NLAILOGIC::CInternalGoal:

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

Public Methods

 CInternalGoal ()
 CInternalGoal (const NLAIAGENT::IVarName &, TTypeOfGoal mode=achieveOnce)
 CInternalGoal (const NLAIAGENT::IVarName &, std::list< const NLAIAGENT::IObjectIA * > &, TTypeOfGoal mode=achieveOnce)
 CInternalGoal (const CInternalGoal &)
virtual ~CInternalGoal ()
void setArgs (std::list< NLAIAGENT::IObjectIA * > &)
const std::vector< NLAIAGENT::IObjectIA * > & getArgs ()
void addSuccessor (NLAIAGENT::IBasicAgent *)
void addPredecessor (NLAIAGENT::IBasicAgent *)
virtual void operatorSuccess (NLAIAGENT::IBasicAgent *)
virtual void operatorFailure (NLAIAGENT::IBasicAgent *)
const std::vector< IBaseOperator * > getOperators ()
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...

const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

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

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

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...

bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

float truthValue () const
 Returns a value in [0,1]. More...

const IObjectIA::CProcessResult & run ()
 Some where Run method define the process of the agen. More...

bool isEqual (const CInternalGoal &a) const
bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual NLAIAGENT::tQueue isMember (const NLAIAGENT::IVarName *, const NLAIAGENT::IVarName *, const NLAIAGENT::IObjectIA &) const
virtual bool operator== (const CInternalGoal &)
void setSender (NLAIAGENT::IBasicAgent *)
void setReceiver (NLAIAGENT::IBasicAgent *)
NLAIAGENT::IBasicAgentgetSender ()
NLAIAGENT::IBasicAgentgetReceiver ()
virtual void cancel ()
virtual float priority () const
void setProperty (NLAIAGENT::IObjectIA *)
Some IObjectIA method definition.
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 IdInternalGoal

Private Attributes

NLAIAGENT::IObjectIA_Property

Constructor & Destructor Documentation

NLAILOGIC::CInternalGoal::CInternalGoal  
 

Definition at line 546 of file goal.cpp.

References _Property.

Referenced by clone.

NLAILOGIC::CInternalGoal::CInternalGoal const NLAIAGENT::IVarName  ,
TTypeOfGoal    mode = achieveOnce
 

Definition at line 551 of file goal.cpp.

References _Property.

NLAILOGIC::CInternalGoal::CInternalGoal const NLAIAGENT::IVarName  ,
std::list< const NLAIAGENT::IObjectIA * > &   ,
TTypeOfGoal    mode = achieveOnce
 

Definition at line 556 of file goal.cpp.

References _Property.

NLAILOGIC::CInternalGoal::CInternalGoal const CInternalGoal &   
 

Definition at line 561 of file goal.cpp.

References _Property, and setProperty.

NLAILOGIC::CInternalGoal::~CInternalGoal   [virtual]
 

Definition at line 569 of file goal.cpp.

References _Property, and NLAIC::IPointerGestion::release.


Member Function Documentation

void NLAILOGIC::CInternalGoal::addPredecessor NLAIAGENT::IBasicAgent  
 

Definition at line 829 of file goal.cpp.

References NLAILOGIC::IGoal::_Predecessors, and NLAIC::IPointerGestion::incRef.

void NLAILOGIC::CInternalGoal::addSuccessor NLAIAGENT::IBasicAgent  
 

Definition at line 822 of file goal.cpp.

References NLAILOGIC::IGoal::_Successors, NLAIC::IPointerGestion::incRef, and s.

void NLAILOGIC::CInternalGoal::cancel   [virtual]
 

Definition at line 863 of file goal.cpp.

References NLAILOGIC::IGoal::_Successors.

const NLAIC::IBasicType * NLAILOGIC::CInternalGoal::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 627 of file goal.cpp.

References CInternalGoal.

Referenced by newInstance.

const std::vector< NLAIAGENT::IObjectIA * > & NLAILOGIC::CInternalGoal::getArgs  
 

Definition at line 704 of file goal.cpp.

References NLAILOGIC::IGoal::_Args.

void NLAILOGIC::CInternalGoal::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 648 of file goal.cpp.

References NLAILOGIC::IGoal::_Args, NLAILOGIC::IGoal::_Name, NLAILOGIC::IGoal::_Predecessors, NLAILOGIC::IGoal::_Successors, NLAIAGENT::IVarName::getString, priority, and NLAIC::stringGetBuild.

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

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 816 of file goal.cpp.

const std::vector<IBaseOperator *> NLAILOGIC::CInternalGoal::getOperators  
 

NLAIAGENT::IBasicAgent * NLAILOGIC::CInternalGoal::getReceiver  
 

Reimplemented from NLAILOGIC::IGoal.

Definition at line 858 of file goal.cpp.

References NLAILOGIC::IGoal::_Receiver.

NLAIAGENT::IBasicAgent * NLAILOGIC::CInternalGoal::getSender  
 

Reimplemented from NLAILOGIC::IGoal.

Definition at line 853 of file goal.cpp.

References NLAILOGIC::IGoal::_Sender.

const NLAIC::CIdentType & NLAILOGIC::CInternalGoal::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 709 of file goal.cpp.

References IdInternalGoal.

Referenced by isMember.

bool NLAILOGIC::CInternalGoal::isEqual const NLAIAGENT::IBasicObjectIA   a const
 

Definition at line 699 of file goal.cpp.

bool NLAILOGIC::CInternalGoal::isEqual const CInternalGoal &    a const
 

Definition at line 694 of file goal.cpp.

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

Definition at line 724 of file goal.cpp.

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

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

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Definition at line 679 of file goal.cpp.

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

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 643 of file goal.cpp.

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

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

Implements NLAIC::IBasicType.

Definition at line 633 of file goal.cpp.

References clone.

bool NLAILOGIC::CInternalGoal::operator== const CInternalGoal &    [virtual]
 

Definition at line 835 of file goal.cpp.

References NLAILOGIC::IGoal::_Args.

void NLAILOGIC::CInternalGoal::operatorFailure NLAIAGENT::IBasicAgent   [virtual]
 

Reimplemented from NLAILOGIC::IGoal.

Definition at line 602 of file goal.cpp.

References NLAILOGIC::IGoal::_Receiver, NLAILOGIC::IGoal::_Successors, NLAILOGIC::IGoal::achieveForever, and NLAILOGIC::IGoal::achieveOnce.

void NLAILOGIC::CInternalGoal::operatorSuccess NLAIAGENT::IBasicAgent   [virtual]
 

Reimplemented from NLAILOGIC::IGoal.

Definition at line 575 of file goal.cpp.

References NLAILOGIC::IGoal::_Receiver, NLAILOGIC::IGoal::_Successors, NLAILOGIC::IGoal::achieveForever, and NLAILOGIC::IGoal::achieveOnce.

float NLAILOGIC::CInternalGoal::priority   const [virtual]
 

Definition at line 872 of file goal.cpp.

References NLAILOGIC::IGoal::_Successors.

Referenced by getDebugString.

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

Some where Run method define the process of the agen.

Implements NLAILOGIC::IBaseBoolType.

Definition at line 689 of file goal.cpp.

NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CInternalGoal::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 773 of file goal.cpp.

References NLAILOGIC::IGoal::_Args, NLAILOGIC::IGoal::_Mode, NLAILOGIC::IGoal::_Name, NLAILOGIC::IGoal::achieveForever, NLAILOGIC::IGoal::achieveOnce, NLAIAGENT::IBaseGroupType::getFront, NLAIAGENT::CStringType::getStr, index, param, NLAIAGENT::IBaseGroupType::popFront, NLAIC::IPointerGestion::release, and NLAIAGENT::IBaseGroupType::size.

NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CInternalGoal::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 768 of file goal.cpp.

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

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 639 of file goal.cpp.

void NLAILOGIC::CInternalGoal::setArgs std::list< NLAIAGENT::IObjectIA * > &   
 

Definition at line 714 of file goal.cpp.

References NLAILOGIC::IGoal::_Args.

void NLAILOGIC::CInternalGoal::setProperty NLAIAGENT::IObjectIA  
 

Definition at line 891 of file goal.cpp.

References _Property, and NLAIC::IPointerGestion::release.

Referenced by CInternalGoal.

void NLAILOGIC::CInternalGoal::setReceiver NLAIAGENT::IBasicAgent  
 

Reimplemented from NLAILOGIC::IGoal.

Definition at line 848 of file goal.cpp.

References NLAILOGIC::IGoal::_Receiver, and r.

void NLAILOGIC::CInternalGoal::setSender NLAIAGENT::IBasicAgent  
 

Reimplemented from NLAILOGIC::IGoal.

Definition at line 843 of file goal.cpp.

References NLAILOGIC::IGoal::_Sender, and s.

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

Returns a value in [0,1].

Implements NLAILOGIC::IBaseBoolType.

Definition at line 684 of file goal.cpp.


Member Data Documentation

NLAIAGENT::IObjectIA* NLAILOGIC::CInternalGoal::_Property [private]
 

Definition at line 188 of file goal.h.

Referenced by CInternalGoal, setProperty, and ~CInternalGoal.

const NLAIC::CIdentType CInternalGoal::IdInternalGoal [static]
 

Initial value:

Definition at line 418 of file static_def_init.cpp.

Referenced by getType.


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