|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAILOGIC::CGoal Class Reference#include <goal.h>
Inheritance diagram for NLAILOGIC::CGoal:
List of all members.
Public Methods |
| CGoal () |
| CGoal (const NLAIAGENT::IVarName &, TTypeOfGoal mode=achieveOnce) |
| CGoal (const NLAIAGENT::IVarName &, std::list< const NLAIAGENT::IObjectIA * > &, TTypeOfGoal mode=achieveOnce) |
| CGoal (const CGoal &) |
virtual | ~CGoal () |
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::IBasicType * | clone () const |
| This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...
|
const NLAIC::IBasicType * | newInstance () 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 CGoal &a) const |
bool | isEqual (const NLAIAGENT::IBasicObjectIA &a) const |
const NLAIC::CIdentType & | getType () 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 CGoal &) |
virtual void | cancel () |
virtual float | priority () 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 | IdGoal |
Constructor & Destructor Documentation
NLAILOGIC::CGoal::CGoal |
( |
|
) |
|
|
NLAILOGIC::CGoal::CGoal |
( |
const CGoal & |
|
) |
|
|
NLAILOGIC::CGoal::~CGoal |
( |
|
) |
[virtual] |
|
Member Function Documentation
void NLAILOGIC::CGoal::cancel |
( |
|
) |
[virtual] |
|
void NLAILOGIC::CGoal::getDebugString |
( |
std::string & |
|
) |
const [virtual] |
|
sint32 NLAILOGIC::CGoal::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
const std::vector<IBaseOperator *> NLAILOGIC::CGoal::getOperators |
( |
|
) |
|
|
|
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 368 of file goal.cpp.
References IdGoal.
Referenced by isMember. |
bool NLAILOGIC::CGoal::isEqual |
( |
const CGoal & |
a |
) |
const |
|
bool NLAILOGIC::CGoal::isTrue |
( |
|
) |
const [virtual] |
|
|
This function allow a new instance, that mean that the class is a class factory.
Implements NLAIC::IBasicType.
Definition at line 292 of file goal.cpp.
References clone. |
bool NLAILOGIC::CGoal::operator== |
( |
const CGoal & |
|
) |
[virtual] |
|
float NLAILOGIC::CGoal::priority |
( |
|
) |
const [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 439 of file goal.cpp.
References NLAILOGIC::IGoal::_Args, NLAILOGIC::IGoal::_Mode, NLAILOGIC::IGoal::_Name, NLAILOGIC::IGoal::_Sender, NLAILOGIC::IGoal::achieveForever, NLAILOGIC::IGoal::achieveOnce, NLAIAGENT::IBaseGroupType::getFront, NLAIAGENT::CStringType::getStr, index, param, NLAIAGENT::IBaseGroupType::popFront, NLAIC::IPointerGestion::release, and NLAIAGENT::IBaseGroupType::size. |
|
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 434 of file goal.cpp. |
float NLAILOGIC::CGoal::truthValue |
( |
|
) |
const [virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|
|