#include <ProblemGenerator.h>
Inheritance diagram for lm::ProblemGenerator:
Public Methods | |
ProblemGenerator () | |
ProblemGenerator (Agent *agent, std::string name="default") | |
virtual | ~ProblemGenerator () |
virtual Effector * | changeDecision (Effector *e)=0 |
void | setAgent (Agent *agent) |
void | setName (std::string name) |
std::string | getName () |
Protected Attributes | |
Agent * | mAgent |
std::string | mName |
|
|
|
constructor |
|
virtual destructor because we are an abstract base class |
|
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. |
|
get the PG's name |
|
sets the agent that this problem generator points at |
|
set the PG's name |
|
we need a reference to an agent so that we can determine what effectors he has. |
|
the name of this problem generator |