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

lm::Learner Class Reference

#include <Learner.h>

Inheritance diagram for lm::Learner:

lm::StubLearner List of all members.

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

AgentmAgent
std::string mName

Detailed Description

this class is a suplimental class where any learning can be placed. It is run within it's own thread therefore it will not slow down an agent from processing inputs and making decisions.


Constructor & Destructor Documentation

lm::Learner::Learner   [inline]
 

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

constructor

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

virtual destructor because we are an abstract base class


Member Function Documentation

std::string lm::Learner::getName  
 

virtual void lm::Learner::Learn   [pure virtual]
 

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.

void lm::Learner::setAgent Agent   agent
 

void lm::Learner::setName std::string    name
 


Member Data Documentation

Agent* lm::Learner::mAgent [private]
 

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.

std::string lm::Learner::mName [private]
 

the name of the learner


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