-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIndividual.h
More file actions
44 lines (34 loc) · 741 Bytes
/
Individual.h
File metadata and controls
44 lines (34 loc) · 741 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
35
36
37
38
39
40
41
42
43
44
/*
* Individual.h
*
* Created on: Dec 3, 2016
* Author: rocco
*/
#ifndef INDIVIDUAL_H_
#define INDIVIDUAL_H_
#include "Exchange.h"
#include <iostream>
#include <string>
using namespace std;
class Individual {
public:
Individual();
void setUpAttributes();
void setAttributeAt( int pos, double setThis);
void setFitnessValue(double newFit);
void runFitnessAlg();
void setExp(int in);
void setMon(double in);
int getExp();
double getStartingMonies();
double getFitnessValue();
double getAttributeAt(int pos);
Results getResults();
private:
double attributes[3]; // mov1, mov2, saving Factor
double fitnessValue;
Results resultsFromExp;
double startMonies;
int numExperiments;
};
#endif /* INDIVIDUAL_H_ */