- Timestamp:
- 02/04/15 18:14:48 (10 years ago)
- Location:
- branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/BinaryVectorEncoding.cs
r11885 r11892 73 73 74 74 public BinaryVectorEncoding() : this("BinaryVector", 10) { } 75 public BinaryVectorEncoding(string name) : this(name, 10) { } 75 76 public BinaryVectorEncoding(int length) : this("BinaryVector", length) { } 76 77 public BinaryVectorEncoding(string name, int length) -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/IntegerVectorEncoding.cs
r11885 r11892 96 96 97 97 public IntegerVectorEncoding() : this("IntegerVector", 10) { } 98 public IntegerVectorEncoding(string name) : this(name, 10) { } 98 99 public IntegerVectorEncoding(int length) : this("integerVector", length) { } 99 100 public IntegerVectorEncoding(string name, int length, int min = int.MinValue, int max = int.MaxValue, int? step = null) -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/MultiEncoding.cs
r11797 r11892 40 40 } 41 41 42 43 42 [StorableConstructor] 44 43 private MultiEncoding(bool deserializing) … … 46 45 encodings = new List<IEncoding>(); 47 46 } 48 49 47 public override IDeepCloneable Clone(Cloner cloner) { return new MultiEncoding(this, cloner); } 50 48 private MultiEncoding(MultiEncoding original, Cloner cloner) … … 75 73 @operator.AddEncoding(encoding); 76 74 } 75 OnEncodingsChanged(); 77 76 return this; 78 77 } … … 84 83 @operator.RemoveEncoding(encoding); 85 84 } 85 OnEncodingsChanged(); 86 86 return success; 87 87 } … … 89 89 public override void ConfigureOperators(IEnumerable<IOperator> operators) { 90 90 } 91 92 public event EventHandler EncodingsChanged; 93 private void OnEncodingsChanged() { 94 var handler = EncodingsChanged; 95 if (handler != null) handler(this, EventArgs.Empty); 96 } 91 97 } 92 98 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/PermutationEncoding.cs
r11773 r11892 98 98 99 99 public PermutationEncoding() : this("Permutation", 10, PermutationTypes.Absolute) { } 100 public PermutationEncoding(string name) : this(name, 10, PermutationTypes.Absolute) { } 100 101 public PermutationEncoding(int length) : this("Permuration", length, PermutationTypes.Absolute) { } 101 102 public PermutationEncoding(string name, int length, PermutationTypes type) -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/RealVectorEncoding.cs
r11885 r11892 94 94 95 95 public RealVectorEncoding() : this("RealVector", 10) { } 96 public RealVectorEncoding(string name) : this(name, 10) { } 96 97 public RealVectorEncoding(int length) : this("RealVector", length) { } 97 98 public RealVectorEncoding(string name, int length, double min = double.MinValue, double max = double.MaxValue)
Note: See TracChangeset
for help on using the changeset viewer.