# 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  

NLAIAGENT::CGDAgentScript Class Reference

#include <gd_agent_script.h>

Inheritance diagram for NLAIAGENT::CGDAgentScript

Inheritance graph
[legend]
Collaboration diagram for NLAIAGENT::CGDAgentScript:

Collaboration graph
[legend]
List of all members.

Public Methods

 CGDAgentScript (IAgentManager *, bool activated = false)
 CGDAgentScript (const CGDAgentScript &)
 CGDAgentScript (IAgentManager *, IBasicAgent *, std::list<IObjectIA *> &, NLAISCRIPT::CGDAgentClass *)
virtual ~CGDAgentScript ()
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 void getDebugString (char *t) 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...

virtual bool isEqual (const IBasicObjectIA &a) const
 Implementation of the isEqual of the IBasicObjectIA. More...

virtual const CProcessResult& run ()
 The work of an agent. More...

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

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

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

virtual void addGoal (NLAILOGIC::CGoal *)
virtual NLAILOGIC::CFactBasegetFactBase ()

Static Public Attributes

const NLAIC::CIdentType IdGDAgentScript

Constructor & Destructor Documentation

NLAIAGENT::CGDAgentScript::CGDAgentScript ( IAgentManager * manager,
bool stay_alive = false )
 

Definition at line 47 of file gd_agent_script.cpp.

NLAIAGENT::CGDAgentScript::CGDAgentScript ( const CGDAgentScript & c )
 

Definition at line 60 of file gd_agent_script.cpp.

NLAIAGENT::CGDAgentScript::CGDAgentScript ( IAgentManager * manager,
IBasicAgent * father,
std::list< IObjectIA *>& components,
NLAISCRIPT::CGDAgentClass * actor_class )
 

Definition at line 38 of file gd_agent_script.cpp.

NLAIAGENT::CGDAgentScript::~CGDAgentScript ( ) [virtual]
 

Definition at line 52 of file gd_agent_script.cpp.


Member Function Documentation

void NLAIAGENT::CGDAgentScript::addGoal ( NLAILOGIC::CGoal * goal ) [virtual]
 

Definition at line 201 of file gd_agent_script.cpp.

const NLAIC::IBasicType * NLAIAGENT::CGDAgentScript::clone ( void ) const [virtual]
 

Inherited functions.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 65 of file gd_agent_script.cpp.

void NLAIAGENT::CGDAgentScript::getDebugString ( char * t ) 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.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 85 of file gd_agent_script.cpp.

virtual NLAILOGIC::CFactBase& NLAIAGENT::CGDAgentScript::getFactBase ( ) [virtual]
 

const NLAIC::CIdentType & NLAIAGENT::CGDAgentScript::getType ( void ) 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::CAgentScript.

Definition at line 105 of file gd_agent_script.cpp.

bool NLAIAGENT::CGDAgentScript::isEqual ( const IBasicObjectIA & a ) const [virtual]
 

Implementation of the isEqual of the IBasicObjectIA.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 100 of file gd_agent_script.cpp.

void NLAIAGENT::CGDAgentScript::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 119 of file gd_agent_script.cpp.

const NLAIC::IBasicType * NLAIAGENT::CGDAgentScript::newInstance ( void ) const [virtual]
 

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

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 71 of file gd_agent_script.cpp.

const IObjectIA::CProcessResult & NLAIAGENT::CGDAgentScript::run ( void ) [virtual]
 

The work of an agent.

Typically agent process child message, process its message and run its activity.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 195 of file gd_agent_script.cpp.

void NLAIAGENT::CGDAgentScript::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIAGENT::CAgentScript.

Definition at line 113 of file gd_agent_script.cpp.


Member Data Documentation

const NLAIC::CIdentType NLAIAGENT::CGDAgentScript::IdGDAgentScript [static]
 

Definition at line 51 of file gd_agent_script.h.


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