-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFoodSource.h
More file actions
34 lines (27 loc) · 731 Bytes
/
FoodSource.h
File metadata and controls
34 lines (27 loc) · 731 Bytes
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
#ifndef FOODSOURCE_H
#define FOODSOURCE_H
#include <vector>
#include <iostream>
using std::vector;
class FoodSource {
public:
FoodSource();
FoodSource(vector<double> coords, double objectifValue, double fitnessValue, int trial = 0);
double getCoordAt(int i) const;
vector<double> getCoords() const;
double getObjectifValue() const;
double getFitnessValue() const;
int getTrial() const;
void setCoordAt(int i, double valeur);
void setObjectifValue(double objectifValue);
void setFitnessValue(double fitnessValue);
void incrementeTrial();
void resetTrial();
void printFoodSource() const;
private:
vector<double> d_coords;
double d_objectifValue;
double d_fitnessValue;
int d_trial;
};
#endif // !FOODSOURCE_H