- Timestamp:
- 11/23/15 16:14:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Problems.Binary/3.3/BinaryProblem.cs
r13336 r13339 34 34 namespace HeuristicLab.Problems.Binary { 35 35 [StorableClass] 36 public abstract class BinaryProblem : SingleObjectiveProblem<BinaryVector > {36 public abstract class BinaryProblem : SingleObjectiveProblem<BinaryVectorEncoding, BinaryVector> { 37 37 public virtual int Length { 38 38 get { return Encoding.Length; } 39 39 set { Encoding.Length = value; } 40 }41 42 public new BinaryVectorEncoding Encoding {43 get { return (BinaryVectorEncoding)base.Encoding; }44 set { base.Encoding = value; }45 40 } 46 41 … … 65 60 var lengthParameter = new FixedValueParameter<IntValue>("Length", "The length of the BinaryVector.", new IntValue(10)); 66 61 Parameters.Add(lengthParameter); 67 Encoding = new BinaryVectorEncoding();68 62 Encoding.LengthParameter = lengthParameter; 69 63 RegisterEventHandlers();
Note: See TracChangeset
for help on using the changeset viewer.