#include <Learner.h>
Inheritance diagram for lm::Learner:

Public Methods | |
| Learner () | |
| Learner (Agent *agent, std::string name="default") | |
| virtual | ~Learner () |
| virtual void | Learn ()=0 |
| void | setAgent (Agent *agent) |
| void | setName (std::string name) |
| std::string | getName () |
Private Attributes | |
| Agent * | mAgent |
| std::string | mName |
|
|
|
|
||||||||||||
|
constructor |
|
|
virtual destructor because we are an abstract base class |
|
|
|
|
|
This is where the learning happens. This where the agent does any learning that he needs to do. If you have a database for instance that adds information from agents on what the agent sees and does this is the point to access it. Implemented in lm::StubLearner. |
|
|
|
|
|
|
|
|
a pointer back to the agent that we are learning for. We need this so we can determine what effectors and sensors are available to this agent. |
|
|
the name of the learner |
1.2.14 written by Dimitri van Heesch,
© 1997-2002