Evaluator¶
This page describes the class Evaluator
The pure virtual class Evaluator
is derived from Action
as well as Observer
, and serves as a base class for classes that evaluate the environment.
The implementation of the Observer interface allows this action to be notified of events.
- Code:
This class has no attributes.
Public Methods¶
constructors
¶
Evaluator(SPopulation<T> *pPop, SCellGrid *pCG, const std::string sActionName, const std::string sID);
Evaluator();
pPop
A pointer to the SPopulation object performing this action.
pCG
A pointer to the SCellGrid object on which the simulation runs.
sActionName
Name of the action.
sID
An ID for this action.
destructor
¶
virtual ~Evaluator();
The destructor does nothing.
setOutputWeights
¶
virtual void setOutputWeights(double *adOutput)=0;
adOutput
Array of doubles to hold the internal weights.
Set the internal weights for the cells.