ECF 1.5
Public Member Functions | Protected Attributes | List of all members
Environment Class Referenceabstract

Environment for the XCS algorithm. More...

#include <Environment.h>

Inheritance diagram for Environment:
EvaluateOp

Public Member Functions

virtual GenotypeP getInput ()=0
 
virtual bool initialize ()=0
 
virtual bool nextTrial ()=0
 
virtual bool reset ()=0
 
virtual bool isOver ()
 
virtual FitnessP evaluate (IndividualP ind)=0
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
virtual bool isExploit ()
 
bool checkState (const StateP state)
 
- Public Member Functions inherited from EvaluateOp
virtual FitnessP evaluate (IndividualP)=0
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
virtual void registerParameters (StateP)
 Register evaluator parameters. Called before EvaluateOp::initialize method. More...
 
virtual bool initialize (StateP)
 Initialize the evaluator. Called before first evaluation occurs. More...
 

Protected Attributes

StateP state
 

Detailed Description

Environment for the XCS algorithm.

Definition at line 12 of file Environment.h.

Member Function Documentation

◆ checkState()

bool Environment::checkState ( const StateP  state)
inline

Definition at line 47 of file Environment.h.

◆ evaluate()

virtual FitnessP Environment::evaluate ( IndividualP  )
pure virtual

Evaluate a single individual. Method must create and return a Fitness object.

Implements EvaluateOp.

◆ isExploit()

virtual bool Environment::isExploit ( )
inlinevirtual

Definition at line 44 of file Environment.h.

◆ isOver()

virtual bool Environment::isOver ( )
inlinevirtual

Definition at line 33 of file Environment.h.

Member Data Documentation

◆ state

StateP Environment::state
protected

Definition at line 15 of file Environment.h.


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