blob: 2f474a605195145534c0c49872e1fba1cd7da81d (
plain)
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
|
#ifndef __HYPERNEAT_BEHAVIOR_HPP__
#define __HYPERNEAT_BEHAVIOR_HPP__
#include <HyperNeat/Utils/Size.hpp>
#include <HyperNeat/Utils/Vector.hpp>
namespace hyperneat
{
class Organism;
class NoveltyMetric;
class Behavior
{
public:
void clear();
void reset(bool archive = true);
double& at(size_t i);
double getNoveltyScore() const;
bool isToBeArchived() const;
Organism& getOrganism();
const NoveltyMetric& getNoveltyMetric() const;
const Vector<double>& getCharacterization() const;
bool _criteriaReached = true;
private:
double _noveltyScore = 0.0;
bool _isReady = false;
bool _toBeArchived = false;
Organism* _organism = nullptr;
NoveltyMetric* _noveltyMetric = nullptr;
Vector<double> _characterization;
friend class LoadFile;
friend class NoveltyMetric;
};
}
#endif
|