Changeset 14905 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerRangeErcValue.cs
- Timestamp:
- 05/02/17 20:42:40 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerRangeErcValue.cs
r14898 r14905 10 10 private const string RangeParameterName = "Range"; 11 11 12 public IntegerRangeErcValue() { 12 public IntegerRangeErcValue() : this(false, 0, 0) { } 13 14 public IntegerRangeErcValue(int start, int end) : this(true, start, end) { } 15 16 public IntegerRangeErcValue(bool isEnabled, int start, int end, double weight = 1d) : base(isEnabled, weight) { 13 17 Name = "Integer range"; 14 Parameters.Add(new FixedValueParameter<IntRange>(RangeParameterName)); 15 } 16 17 public IntegerRangeErcValue(int start, int end) : this() { 18 Start = start; 19 End = end; 18 Parameters.Add(new FixedValueParameter<IntRange>(RangeParameterName, new IntRange(start, end))); 20 19 } 21 20 22 21 [StorableConstructor] 23 p ublicIntegerRangeErcValue(bool deseralizing) : base(deseralizing) { }22 protected IntegerRangeErcValue(bool deseralizing) : base(deseralizing) { } 24 23 25 24 public IntegerRangeErcValue(IntegerRangeErcValue origin, Cloner cloner) : base(origin, cloner) { }
Note: See TracChangeset
for help on using the changeset viewer.