Changeset 14905 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer
- Timestamp:
- 05/02/17 20:42:40 (8 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerConstantErcValue.cs
r14898 r14905 17 17 public IntegerConstantErcValue(bool deserializing) : base(deserializing) { } 18 18 19 public IntegerConstantErcValue(IntegerConstantErcValue origin, Cloner cloner) : base(origin, cloner) { 20 } 19 public IntegerConstantErcValue(IntegerConstantErcValue origin, Cloner cloner) : base(origin, cloner) { } 21 20 22 21 public override IDeepCloneable Clone(Cloner cloner) { -
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.