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

#include <goal.h>

Inheritance diagram for NLAILOGIC::IGoal:

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

Public Types

enum  TTypeOfGoal { achieveOnce, achieveForever }

Public Methods

 IGoal ()
 IGoal (const NLAIAGENT::IVarName &, TTypeOfGoal mode=achieveOnce)
 IGoal (const NLAIAGENT::IVarName &, std::list< const NLAIAGENT::IObjectIA * > &, TTypeOfGoal mode=achieveOnce)
 IGoal (const IGoal &)
virtual ~IGoal ()
const NLAIAGENT::IVarNamegetName () const
void setMode (TTypeOfGoal mode)
virtual void select ()
virtual void unSelect ()
bool isSelected ()
bool isActivable ()
virtual void failure ()
virtual void success ()
virtual void operatorSuccess (NLAIAGENT::IBasicAgent *)
virtual void operatorFailure (NLAIAGENT::IBasicAgent *)
bool isExclusive ()

Protected Attributes

NLAIAGENT::IVarName_Name
std::vector< NLAIAGENT::IObjectIA * > _Args
std::vector< NLAIAGENT::IBasicAgent * > _Predecessors
std::vector< NLAIAGENT::IBasicAgent * > _Successors
TTypeOfGoal _Mode
bool _Selected
NLAIAGENT::IBasicAgent_Sender
NLAIAGENT::IBasicAgent_Receiver

Member Enumeration Documentation

enum NLAILOGIC::IGoal::TTypeOfGoal
 

Enumeration values:
achieveOnce 
achieveForever 

Definition at line 47 of file goal.h.

Referenced by setMode.


Constructor & Destructor Documentation

NLAILOGIC::IGoal::IGoal  
 

Definition at line 11 of file goal.cpp.

References _Mode, _Name, _Receiver, _Selected, _Sender, and achieveOnce.

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

Definition at line 20 of file goal.cpp.

References _Mode, _Name, _Receiver, _Selected, _Sender, and NLAIC::IBasicType::clone.

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

Definition at line 29 of file goal.cpp.

References _Args, _Mode, _Name, _Receiver, _Selected, _Sender, and NLAIC::IBasicType::clone.

NLAILOGIC::IGoal::IGoal const IGoal &   
 

Definition at line 43 of file goal.cpp.

References _Args, _Mode, _Name, _Receiver, _Selected, _Sender, and NLAIC::IBasicType::clone.

NLAILOGIC::IGoal::~IGoal   [virtual]
 

Definition at line 59 of file goal.cpp.

References _Args, _Name, _Successors, and NLAIC::IPointerGestion::release.


Member Function Documentation

void NLAILOGIC::IGoal::failure   [virtual]
 

Definition at line 75 of file goal.cpp.

References _Sender, NLAIAGENT::IMessageBase::PTell, NLAIAGENT::IBasicAgent::sendMessage, NLAIAGENT::IMessageBase::setPerformatif, NLAIAGENT::IMessageBase::setReceiver, and NLAIAGENT::IMessageBase::setSender.

Referenced by NLAILOGIC::CGoal::operatorFailure, and operatorFailure.

const NLAIAGENT::IVarName& NLAILOGIC::IGoal::getName   const [inline]
 

Definition at line 74 of file goal.h.

bool NLAILOGIC::IGoal::isActivable   [inline]
 

Definition at line 99 of file goal.h.

References _Successors.

bool NLAILOGIC::IGoal::isExclusive  
 

Definition at line 169 of file goal.cpp.

References _Successors.

bool NLAILOGIC::IGoal::isSelected   [inline]
 

Definition at line 94 of file goal.h.

References _Selected.

Referenced by NLAIAGENT::COperatorScript::checkPause, and NLAIAGENT::COperatorScript::run.

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

Reimplemented in NLAILOGIC::CGoal.

Definition at line 143 of file goal.cpp.

References _Receiver, _Successors, achieveForever, achieveOnce, and failure.

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

Reimplemented in NLAILOGIC::CGoal.

Definition at line 111 of file goal.cpp.

References _Receiver, _Successors, achieveForever, achieveOnce, and success.

virtual void NLAILOGIC::IGoal::select   [inline, virtual]
 

Definition at line 84 of file goal.h.

References _Selected.

void NLAILOGIC::IGoal::setMode TTypeOfGoal    mode [inline]
 

Definition at line 79 of file goal.h.

References _Mode, and TTypeOfGoal.

void NLAILOGIC::IGoal::success   [virtual]
 

Definition at line 93 of file goal.cpp.

References _Sender, NLAIAGENT::IMessageBase::PTell, NLAIAGENT::IBasicAgent::sendMessage, NLAIAGENT::IMessageBase::setPerformatif, NLAIAGENT::IMessageBase::setReceiver, and NLAIAGENT::IMessageBase::setSender.

Referenced by NLAILOGIC::CGoal::operatorSuccess, and operatorSuccess.

virtual void NLAILOGIC::IGoal::unSelect   [inline, virtual]
 

Definition at line 89 of file goal.h.

References _Selected.


Member Data Documentation

std::vector<NLAIAGENT::IObjectIA *> NLAILOGIC::IGoal::_Args [protected]
 

Definition at line 56 of file goal.h.

Referenced by NLAILOGIC::CInternalGoal::getArgs, NLAILOGIC::CGoal::getArgs, NLAILOGIC::CInternalGoal::getDebugString, NLAILOGIC::CGoal::getDebugString, IGoal, NLAILOGIC::CInternalGoal::operator==, NLAILOGIC::CGoal::operator==, NLAILOGIC::CInternalGoal::runMethodeMember, NLAILOGIC::CGoal::runMethodeMember, NLAILOGIC::CInternalGoal::setArgs, NLAILOGIC::CGoal::setArgs, and ~IGoal.

TTypeOfGoal NLAILOGIC::IGoal::_Mode [protected]
 

Definition at line 60 of file goal.h.

Referenced by IGoal, NLAILOGIC::CInternalGoal::runMethodeMember, NLAILOGIC::CGoal::runMethodeMember, and setMode.

NLAIAGENT::IVarName* NLAILOGIC::IGoal::_Name [protected]
 

Definition at line 55 of file goal.h.

Referenced by NLAILOGIC::CInternalGoal::getDebugString, NLAILOGIC::CGoal::getDebugString, IGoal, NLAILOGIC::CInternalGoal::runMethodeMember, NLAILOGIC::CGoal::runMethodeMember, and ~IGoal.

std::vector<NLAIAGENT::IBasicAgent *> NLAILOGIC::IGoal::_Predecessors [protected]
 

Definition at line 57 of file goal.h.

Referenced by NLAILOGIC::CInternalGoal::addPredecessor, NLAILOGIC::CGoal::addPredecessor, NLAILOGIC::CInternalGoal::getDebugString, and NLAILOGIC::CGoal::getDebugString.

NLAIAGENT::IBasicAgent* NLAILOGIC::IGoal::_Receiver [protected]
 

Definition at line 65 of file goal.h.

Referenced by NLAILOGIC::CInternalGoal::getReceiver, NLAILOGIC::CGoal::getReceiver, IGoal, NLAILOGIC::CInternalGoal::operatorFailure, NLAILOGIC::CGoal::operatorFailure, operatorFailure, NLAILOGIC::CInternalGoal::operatorSuccess, NLAILOGIC::CGoal::operatorSuccess, operatorSuccess, NLAILOGIC::CInternalGoal::setReceiver, and NLAILOGIC::CGoal::setReceiver.

bool NLAILOGIC::IGoal::_Selected [protected]
 

Definition at line 62 of file goal.h.

Referenced by IGoal, isSelected, select, and unSelect.

NLAIAGENT::IBasicAgent* NLAILOGIC::IGoal::_Sender [protected]
 

Definition at line 64 of file goal.h.

Referenced by failure, NLAILOGIC::CInternalGoal::getSender, NLAILOGIC::CGoal::getSender, IGoal, NLAILOGIC::CInternalGoal::setSender, NLAILOGIC::CGoal::setSender, and success.

std::vector<NLAIAGENT::IBasicAgent *> NLAILOGIC::IGoal::_Successors [protected]
 

Definition at line 58 of file goal.h.

Referenced by NLAILOGIC::CInternalGoal::addSuccessor, NLAILOGIC::CGoal::addSuccessor, NLAILOGIC::CInternalGoal::cancel, NLAILOGIC::CGoal::cancel, NLAILOGIC::CInternalGoal::getDebugString, NLAILOGIC::CGoal::getDebugString, isActivable, isExclusive, NLAILOGIC::CInternalGoal::operatorFailure, NLAILOGIC::CGoal::operatorFailure, operatorFailure, NLAILOGIC::CInternalGoal::operatorSuccess, NLAILOGIC::CGoal::operatorSuccess, operatorSuccess, NLAILOGIC::CInternalGoal::priority, NLAILOGIC::CGoal::priority, and ~IGoal.


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