[Quantproject-developers] QuantProject/b1_ADT/Optimizing/Genetic Genome.cs,1.6,1.7
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-08-03 23:05:32
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14556/b1_ADT/Optimizing/Genetic Modified Files: Genome.cs Log Message: Added HasBeenCloned and HasBeenChanged properties to the class. Index: Genome.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Optimizing/Genetic/Genome.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Genome.cs 1 Aug 2005 22:26:32 -0000 1.6 --- Genome.cs 3 Aug 2005 23:05:23 -0000 1.7 *************** *** 40,46 **** private double fitness; private object meaning; ! IGenomeManager genomeManager; public double Fitness { --- 40,63 ---- private double fitness; private object meaning; ! private bool hasBeenCloned; ! private bool hasBeenChanged; ! IGenomeManager genomeManager; + public bool HasBeenCloned + { + get{return this.hasBeenCloned;} + //set{this.hasBeenCloned = value;} + } + + /// <summary> + /// Returns true if a gene has been set + /// by calling SetGeneValue + /// </summary> + public bool HasBeenChanged + { + get{return this.hasBeenChanged;} + } + public double Fitness { *************** *** 120,123 **** --- 137,141 ---- returnValue.Fitness = this.Fitness; returnValue.Meaning = this.Meaning; + returnValue.hasBeenCloned = true; return returnValue; *************** *** 141,144 **** --- 159,163 ---- this.genes[genePosition] = geneValue; + this.hasBeenChanged = true; } |