-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfish.hpp
46 lines (41 loc) · 1.29 KB
/
fish.hpp
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
42
43
44
45
46
#ifndef _FISH_H_
#define _FISH_H_
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
class Fish {
private:
double weight;
double weightVariation;
std::vector<double> currentPosition;
std::vector<double> previuosPosition;
std::vector<double> individualDisplacement;
double fitness;
double prevFitness;
double fitnessVariation;
bool improved;
public:
Fish(double weight, std::vector<double> position);
~Fish();
double getWeight();
double getWeightVariation();
std::vector<double> getCurrentPosition();
std::vector<double> getPreviuosPosition();
std::vector<double> getIndividualDisplacement();
double getFitnessVariation();
double getFitness();
double getPrevFitness();
bool getImproved();
double getPosition(int pos);
void setWeight(double weight);
void setWeightVariation(double weightVariation);
void setCurrentPosition(std::vector<double> currentPosition);
void setPreviuosPosition(std::vector<double> previuosPosition);
void setIndividualDisplacement(std::vector<double> individualDisplacement);
void setFitnessVariation(double fitnessVariation);
void setFitness(double fitness);
void setPrevFitness(double prevFitness);
void setImproved(bool improved);
};
#endif