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

#include <goal_path.h>

Inheritance diagram for NLAILOGIC::CGoalPath:

NLAIAGENT::CActorScript NLAIAGENT::CAgentScript NLAIAGENT::IAgentManager NLAIAGENT::IAgent NLAIAGENT::IAgentComposite NLAIAGENT::IBasicAgent NLAIAGENT::IConnectIA NLAIAGENT::IRefrence NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CGoalPath (NLAIAGENT::IAgentManager *)
 CGoalPath (NLAIAGENT::IAgentManager *, NLAIAGENT::IBasicAgent *, std::list< NLAIAGENT::IObjectIA * > &, NLAISCRIPT::CAgentClass *)
void setGoalStack (NLAILOGIC::CGoalStack *)
void addGoal (CGoal *, bool action=true, int on_succes=0, int on_failure=0)
void setFather (NLAIAGENT::CProxyAgentMail *f)
virtual void onActivate ()
 Callback called at the activation of the actor. More...

virtual void onUnActivate ()
 Callback called when the agent is unactivated. More...

virtual void success ()
 Own success and failure functions These function tell other operators and goals that might be waiting for the execution of this one. More...

virtual void failure ()
virtual int getBaseMethodCount () const
 These functions can be overloaded to have the actor execute something when paused or restarted. More...

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

virtual NLAIAGENT::tQueue getPrivateMember (const NLAIAGENT::IVarName *, const NLAIAGENT::IVarName *, const NLAIAGENT::IObjectIA &) const
virtual NLAIAGENT::IObjectIA::CProcessResult runMethodBase (int heritance, int index, NLAIAGENT::IObjectIA *)
virtual NLAIAGENT::IObjectIA::CProcessResult runMethodBase (int index, NLAIAGENT::IObjectIA *)
virtual const NLAIC::IBasicTypeclone () const
 Inherited functions. More...

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

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


Static Public Attributes

const NLAIC::CIdentType IdGoalPath

Private Attributes

std::vector< CGoal * > _Goals
std::vector< int > _OnSucces
std::vector< int > _OnFailure
std::vector< bool > _JmpNext
int _CurrentState
NLAILOGIC::CGoalStack_GoalStack
NLAIAGENT::CProxyAgentMail_Father

Constructor & Destructor Documentation

NLAILOGIC::CGoalPath::CGoalPath NLAIAGENT::IAgentManager  
 

Definition at line 31 of file goal_path.cpp.

Referenced by clone.

NLAILOGIC::CGoalPath::CGoalPath NLAIAGENT::IAgentManager  ,
NLAIAGENT::IBasicAgent  ,
std::list< NLAIAGENT::IObjectIA * > &   ,
NLAISCRIPT::CAgentClass  
 

Definition at line 35 of file goal_path.cpp.

References components.


Member Function Documentation

void NLAILOGIC::CGoalPath::addGoal CGoal  ,
bool    action = true,
int    on_succes = 0,
int    on_failure = 0
 

Definition at line 44 of file goal_path.cpp.

References _Goals, _JmpNext, _OnFailure, and _OnSucces.

Referenced by NLAIAGENT::CActorScript::runMethodBase.

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

Inherited functions.

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 189 of file goal_path.cpp.

References CGoalPath.

Referenced by newInstance.

void NLAILOGIC::CGoalPath::failure   [virtual]
 

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 73 of file goal_path.cpp.

References _CurrentState, _Father, _Goals, NLAIAGENT::IMessageBase::PAchieve, NLAIAGENT::CProxyAgentMail::sendMessage, NLAIAGENT::IListBasicManager::set, NLAIAGENT::IMessageBase::setPerformatif, NLAIAGENT::IMessageBase::setReceiver, and NLAIAGENT::IMessageBase::setSender.

int NLAILOGIC::CGoalPath::getBaseMethodCount   const [virtual]
 

These functions can be overloaded to have the actor execute something when paused or restarted.

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 205 of file goal_path.cpp.

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

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 184 of file goal_path.cpp.

NLAIAGENT::tQueue NLAILOGIC::CGoalPath::getPrivateMember const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  ,
const NLAIAGENT::IObjectIA  
const [virtual]
 

Definition at line 102 of file goal_path.cpp.

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

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

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 200 of file goal_path.cpp.

References IdGoalPath.

Referenced by getPrivateMember.

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

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

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 195 of file goal_path.cpp.

References clone.

void NLAILOGIC::CGoalPath::onActivate   [virtual]
 

Callback called at the activation of the actor.

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 237 of file goal_path.cpp.

References _CurrentState, _Father, _Goals, NLAIAGENT::IMessageBase::PAchieve, NLAIAGENT::CProxyAgentMail::sendMessage, NLAIAGENT::IListBasicManager::set, NLAIAGENT::IMessageBase::setPerformatif, NLAIAGENT::IMessageBase::setReceiver, and NLAIAGENT::IMessageBase::setSender.

void NLAILOGIC::CGoalPath::onUnActivate   [virtual]
 

Callback called when the agent is unactivated.

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 253 of file goal_path.cpp.

References _CurrentState, _Father, _Goals, NLAIAGENT::IMessageBase::PAchieve, NLAIAGENT::CProxyAgentMail::sendMessage, NLAIAGENT::IListBasicManager::set, NLAIAGENT::IMessageBase::setPerformatif, NLAIAGENT::IMessageBase::setReceiver, and NLAIAGENT::IMessageBase::setSender.

NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CGoalPath::runMethodBase int    index,
NLAIAGENT::IObjectIA  
[virtual]
 

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 143 of file goal_path.cpp.

References _CurrentState, _Father, _Goals, NLAIAGENT::IBaseGroupType::getFront, index, param, NLAIAGENT::IBaseGroupType::popFront, and NLAIAGENT::IBaseGroupType::size.

NLAIAGENT::IObjectIA::CProcessResult NLAILOGIC::CGoalPath::runMethodBase int    heritance,
int    index,
NLAIAGENT::IObjectIA  
[virtual]
 

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 138 of file goal_path.cpp.

References index.

void NLAILOGIC::CGoalPath::setFather NLAIAGENT::CProxyAgentMail   f [inline]
 

Definition at line 60 of file goal_path.h.

Referenced by NLAIAGENT::CActorScript::runMethodBase.

void NLAILOGIC::CGoalPath::setGoalStack NLAILOGIC::CGoalStack  
 

void NLAILOGIC::CGoalPath::success   [virtual]
 

Own success and failure functions These function tell other operators and goals that might be waiting for the execution of this one.

Reimplemented from NLAIAGENT::CActorScript.

Definition at line 52 of file goal_path.cpp.

References _CurrentState, _Father, _Goals, NLAIAGENT::IMessageBase::PAchieve, NLAIAGENT::CProxyAgentMail::sendMessage, NLAIAGENT::IListBasicManager::set, NLAIAGENT::IMessageBase::setPerformatif, NLAIAGENT::IMessageBase::setReceiver, and NLAIAGENT::IMessageBase::setSender.


Member Data Documentation

int NLAILOGIC::CGoalPath::_CurrentState [private]
 

Definition at line 45 of file goal_path.h.

Referenced by failure, onActivate, onUnActivate, runMethodBase, and success.

NLAIAGENT::CProxyAgentMail* NLAILOGIC::CGoalPath::_Father [private]
 

Definition at line 47 of file goal_path.h.

Referenced by failure, onActivate, onUnActivate, runMethodBase, and success.

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

Definition at line 41 of file goal_path.h.

Referenced by addGoal, failure, onActivate, onUnActivate, runMethodBase, and success.

NLAILOGIC::CGoalStack* NLAILOGIC::CGoalPath::_GoalStack [private]
 

Definition at line 46 of file goal_path.h.

std::vector<bool> NLAILOGIC::CGoalPath::_JmpNext [private]
 

Definition at line 44 of file goal_path.h.

Referenced by addGoal.

std::vector<int> NLAILOGIC::CGoalPath::_OnFailure [private]
 

Definition at line 43 of file goal_path.h.

Referenced by addGoal.

std::vector<int> NLAILOGIC::CGoalPath::_OnSucces [private]
 

Definition at line 42 of file goal_path.h.

Referenced by addGoal.

const NLAIC::CIdentType CGoalPath::IdGoalPath [static]
 

Initial value:

Definition at line 412 of file static_def_init.cpp.

Referenced by NLAISCRIPT::CGoalPathClass::CGoalPathClass, and getType.


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