From 1f7c135934b6604c5409d4b6f34861105c0a64cb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 9 Jul 2012 12:01:50 -0600 Subject: It works well enough to solve polynomial maxima. --- src/phenotype.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src/phenotype.cpp') diff --git a/src/phenotype.cpp b/src/phenotype.cpp index 1eca170..b965ffd 100644 --- a/src/phenotype.cpp +++ b/src/phenotype.cpp @@ -1,6 +1,9 @@ #include "genetic/phenotype.h" -Genetic::Phenotype::Phenotype() +Genetic::Phenotype::Phenotype() : + tCreated( 0 ), + uId( 0 ), + bActive( false ) { } @@ -8,3 +11,19 @@ Genetic::Phenotype::~Phenotype() { } +bool Genetic::Phenotype::hasProperty( const Bu::String &sKey ) const +{ + return hProp.has( sKey ); +} + +Bu::Variant Genetic::Phenotype::getProperty( const Bu::String &sKey ) const +{ + return hProp.get( sKey ); +} + +void Genetic::Phenotype::setProperty( const Bu::String &sKey, + Bu::Variant vValue ) +{ + hProp.insert( sKey, vValue ); +} + -- cgit v1.2.3