forked from EcoSimIBM/EcoSim-Default
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Species.h
48 lines (34 loc) · 982 Bytes
/
Species.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
42
43
44
45
46
47
48
#ifndef SPECIES_H_
#define SPECIES_H_
#include "FCM.h"
#include "PhysicalGenome.h"
class Predator;
class Prey;
using namespace std;
class Species {
private:
int num; //-- Species number
int nbMembers; //-- Number of individuals in this species
FCM FCMAvg; //-- Average FCM in this species
PhysicalGenome phGenomeAvg; //-- Average Genome in this species
short parent;
public:
static int numSpeciesPredMax; //-- Max number of predator species
static int numSpeciesPreyMax; //-- Max number of prey species
vector<Prey *> preyMembers;
vector<Predator *> predMembers;
Species();
virtual ~Species();
Species(int n, int nb, FCM *fcm);
Species(int n, int nb, FCM *fcm, PhysicalGenome *genome); // M.M
int getNbMembers();
FCM * getFCMAvg();
PhysicalGenome* getGenomeAvg();
int getNum();
int getParent();
void setNbMembers(int);
void incNbMembers();
void setNum(int);
void setParent(int);
};
#endif /* SPECIES_H_ */