-
Notifications
You must be signed in to change notification settings - Fork 0
/
fitnessfunction.h
41 lines (29 loc) · 1.21 KB
/
fitnessfunction.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef FITNESSFUNCTION_H_
#define FITNESSFUNCTION_H_
/******************************************************************************/
/******************************************************************************/
class CFitnessFunction;
#include <math.h>
#include <vector>
#include <list>
using namespace std;
#include "simobject.h"
#include "epuck.h"
#include "simulator.h"
/******************************************************************************/
/******************************************************************************/
class CFitnessFunction : public CSimObject
{
public:
// CFitnessFunction(const char* pch_name, CSimulator* pc_simulator, CArguments* pc_fitness_function_arguments);
CFitnessFunction(const char* pch_name, CSimulator* pc_simulator);
virtual ~CFitnessFunction();
virtual double GetFitness() = 0;
virtual void SimulationStep(unsigned int n_simulation_step, double f_time, double f_step_interval);
protected:
CSimulator* m_pcSimulator;
// CArguments* m_pcFitnessFunctionArguments;
};
/******************************************************************************/
/******************************************************************************/
#endif