LoveBrains  1.0.0
i_dna.h
1 /*
2 ** dna.h for GAEngine in /home/robin_f/Programming/Git/CPP/GANNEngine/include/GA
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Wed Jul 8 14:01:55 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 17:17:06 2015 Guillaume ROBIN
9 */
10 
11 #ifndef IDNA_H_
12 # define IDNA_H_
13 
14 # include <iostream>
15 
16 namespace GA
17 {
22  class IDNA
23  {
24  public:
28  virtual ~IDNA(void);
29 
34  virtual double getFitness(void) const = 0;
39  virtual void setFitness(double fitness) = 0;
43  virtual void Print(void) = 0;
44  };
45 }
46 
47 #endif /* !IDNA_H_ */
virtual double getFitness(void) const =0
Get the fitness of the individual.
Define the interface that will be used to create an supported individual for the GAEngine.
Definition: i_dna.h:22
Contains the objects that define the GAEngine.
virtual void Print(void)=0
Allow to draw the individual on the shell.
virtual void setFitness(double fitness)=0
Set the fitness of the individual.
virtual ~IDNA(void)
Destructor.
Definition: i_dna.cc:18