|
|
|
|
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:
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::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 CInternalGoal &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 CInternalGoal &) |
void | setSender (NLAIAGENT::IBasicAgent *) |
void | setReceiver (NLAIAGENT::IBasicAgent *) |
NLAIAGENT::IBasicAgent * | getSender () |
NLAIAGENT::IBasicAgent * | getReceiver () |
virtual void | cancel () |
virtual float | priority () const |
void | setProperty (NLAIAGENT::IObjectIA *) |
|
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 |
( |
|
) |
|
|
NLAILOGIC::CInternalGoal::CInternalGoal |
( |
const CInternalGoal & |
|
) |
|
|
NLAILOGIC::CInternalGoal::~CInternalGoal |
( |
|
) |
[virtual] |
|
Member Function Documentation
void NLAILOGIC::CInternalGoal::cancel |
( |
|
) |
[virtual] |
|
void NLAILOGIC::CInternalGoal::getDebugString |
( |
std::string & |
|
) |
const [virtual] |
|
sint32 NLAILOGIC::CInternalGoal::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
const std::vector<IBaseOperator *> NLAILOGIC::CInternalGoal::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 709 of file goal.cpp.
References IdInternalGoal.
Referenced by isMember. |
bool NLAILOGIC::CInternalGoal::isEqual |
( |
const CInternalGoal & |
a |
) |
const |
|
bool NLAILOGIC::CInternalGoal::isTrue |
( |
|
) |
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] |
|
float NLAILOGIC::CInternalGoal::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 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. |
|
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. |
float NLAILOGIC::CInternalGoal::truthValue |
( |
|
) |
const [virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|
|