Changeset 11885 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Individuals/Individual.cs
- Timestamp:
- 02/04/15 13:28:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Individuals/Individual.cs
r11813 r11885 43 43 44 44 public Individual Copy() { 45 return Copy (new Scope());45 return CopyToScope(new Scope()); 46 46 } 47 internal abstract Individual Copy(IScope scope); 47 48 public abstract Individual CopyToScope(IScope scope); 48 49 49 50 protected static IItem ExtractScopeValue(string name, IScope scope) { … … 64 65 public static class IndividualExtensionMethods { 65 66 public static BinaryVector BinaryVector(this Individual individual) { 66 var encoding = individual.GetEncoding<Binary Encoding>();67 var encoding = individual.GetEncoding<BinaryVectorEncoding>(); 67 68 return individual.BinaryVector(encoding.Name); 68 69 } … … 72 73 73 74 public static IntegerVector IntegerVector(this Individual individual) { 74 var encoding = individual.GetEncoding<Integer Encoding>();75 var encoding = individual.GetEncoding<IntegerVectorEncoding>(); 75 76 return individual.IntegerVector(encoding.Name); 76 77 } … … 88 89 89 90 public static RealVector RealVector(this Individual individual) { 90 var encoding = individual.GetEncoding<Real Encoding>();91 var encoding = individual.GetEncoding<RealVectorEncoding>(); 91 92 return individual.RealVector(encoding.Name); 92 93 }
Note: See TracChangeset
for help on using the changeset viewer.