summaryrefslogtreecommitdiff
path: root/src/explicitsimulation.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2012-08-04 18:34:57 -0600
committerMike Buland <mike@xagasoft.com>2012-08-04 18:34:57 -0600
commit2406848173c445a94a1710106116ad796a8bacb9 (patch)
tree7852d9e401d6c2833ee01c4a1c71f4fcc70a1362 /src/explicitsimulation.h
parentaaa733d789612289396d69bb6cf3a0e5de1798a8 (diff)
downloadlibgenetic-2406848173c445a94a1710106116ad796a8bacb9.tar.gz
libgenetic-2406848173c445a94a1710106116ad796a8bacb9.tar.bz2
libgenetic-2406848173c445a94a1710106116ad796a8bacb9.tar.xz
libgenetic-2406848173c445a94a1710106116ad796a8bacb9.zip
Made some changes to make serializing workable.
There's no official format yet, but that's coming, most likely.
Diffstat (limited to '')
-rw-r--r--src/explicitsimulation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/explicitsimulation.h b/src/explicitsimulation.h
index 7713c71..e71b489 100644
--- a/src/explicitsimulation.h
+++ b/src/explicitsimulation.h
@@ -22,11 +22,14 @@ namespace Genetic
22 virtual ~ExplicitSimulation(); 22 virtual ~ExplicitSimulation();
23 23
24 void timestep(); 24 void timestep();
25 const Population &getPopulation() const { return xPop; }
25 26
26 Genetic::PhenotypeId selectWeighted(); 27 Genetic::PhenotypeId selectWeighted();
27 28
28 double getMinFitness() const { return dMinFitness; } 29 double getMinFitness() const { return dMinFitness; }
29 double getMaxFitness() const { return dMaxFitness; } 30 double getMaxFitness() const { return dMaxFitness; }
31 double getFitness( Genetic::PhenotypeId id ) const
32 { return hFitness.get( id ); }
30 33
31 protected: 34 protected:
32 void updateFitness(); 35 void updateFitness();