Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

lm::ProblemGenerator Class Reference

#include <ProblemGenerator.h>

Inheritance diagram for lm::ProblemGenerator:

lm::StubProblemGenerator List of all members.

Public Methods

 ProblemGenerator ()
 ProblemGenerator (Agent *agent, std::string name="default")
virtual ~ProblemGenerator ()
virtual EffectorchangeDecision (Effector *e)=0
void setAgent (Agent *agent)
void setName (std::string name)
std::string getName ()

Protected Attributes

AgentmAgent
std::string mName

Detailed Description

The problem Generator object is a suplimentary object to the decider. It can be used as a post processing component, to introduce new actions and behaviors to the agent. Which the agent could then learn from.


Constructor & Destructor Documentation

lm::ProblemGenerator::ProblemGenerator   [inline]
 

lm::ProblemGenerator::ProblemGenerator Agent   agent,
std::string    name = "default"
 

constructor

virtual lm::ProblemGenerator::~ProblemGenerator   [inline, virtual]
 

virtual destructor because we are an abstract base class


Member Function Documentation

virtual Effector* lm::ProblemGenerator::changeDecision Effector   e [pure virtual]
 

Here is the virtaul method that the developer needs to impliment in his derived class. The method is designed to help the agent generate new scenarios. This is basically the curiosity function. It returns a new effector for the agent to use.

Implemented in lm::StubProblemGenerator.

std::string lm::ProblemGenerator::getName  
 

get the PG's name

void lm::ProblemGenerator::setAgent Agent   agent
 

sets the agent that this problem generator points at

void lm::ProblemGenerator::setName std::string    name
 

set the PG's name


Member Data Documentation

Agent* lm::ProblemGenerator::mAgent [protected]
 

we need a reference to an agent so that we can determine what effectors he has.

std::string lm::ProblemGenerator::mName [protected]
 

the name of this problem generator


The documentation for this class was generated from the following files:
Generated on Wed Oct 22 21:33:22 2003 for AI Loom by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002