From 2406848173c445a94a1710106116ad796a8bacb9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 4 Aug 2012 18:34:57 -0600 Subject: Made some changes to make serializing workable. There's no official format yet, but that's coming, most likely. --- src/explicitsimulation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/explicitsimulation.h') 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 virtual ~ExplicitSimulation(); void timestep(); + const Population &getPopulation() const { return xPop; } Genetic::PhenotypeId selectWeighted(); double getMinFitness() const { return dMinFitness; } double getMaxFitness() const { return dMaxFitness; } + double getFitness( Genetic::PhenotypeId id ) const + { return hFitness.get( id ); } protected: void updateFitness(); -- cgit v1.2.3