Go to the documentation of this file.
19 template<
class state,
class action,
class environment>
22 template <
class state,
class action,
class environment>
28 virtual const char *
GetName() = 0;
34 virtual bool Done() {
return true;}
44 virtual void SetColor(GLfloat _r, GLfloat _g, GLfloat _b) {
r=_r;
g=_g;
b=_b; }
45 virtual void GetColor(GLfloat& _r, GLfloat& _g, GLfloat& _b)
const { _r=
r; _g=
g; _b=
b; }
virtual void SetPriority(int val)
void SetUnitGroup(UnitGroup< state, action, environment > *_group)
virtual void UpdateLocation(environment *, state &, bool success, SimulationInfo< state, action, environment > *)=0
virtual int GetPriority()
virtual void SetColor(GLfloat _r, GLfloat _g, GLfloat _b)
virtual void StartNewTrial(StatCollection *)
virtual double GetSpeed()
virtual void SetNum(unsigned int num)
virtual const char * GetName()=0
virtual void GetColor(GLfloat &_r, GLfloat &_g, GLfloat &_b) const
void AddUnit(Unit< state, action, environment > *u)
virtual void GetLocation(state &)=0
void RemoveUnit(Unit< state, action, environment > *u)
The StatCollection class is for collecting stats across different parts of the simulation.
virtual void LogFinalStats(StatCollection *)
log any final one-time stats before a simulation is ended
UnitGroup< state, action, environment > * GetUnitGroup()
virtual void LogStats(StatCollection *)
log an stats that may have been computed during the last run
virtual bool MakeMove(environment *, OccupancyInterface< state, action > *, SimulationInfo< state, action, environment > *, action &a)=0
virtual void GetGoal(state &s)
UnitGroup< state, action, environment > * group
virtual void OpenGLDraw(const environment *, const SimulationInfo< state, action, environment > *) const =0
virtual unsigned int GetNum()