Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/17 20:42:40 (8 years ago)
Author:
pkimmesw
Message:

#2665 Made ErcOptions checkable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerRangeErcValue.cs

    r14898 r14905  
    1010    private const string RangeParameterName = "Range";
    1111
    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) {
    1317      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)));
    2019    }
    2120
    2221    [StorableConstructor]
    23     public IntegerRangeErcValue(bool deseralizing) : base(deseralizing) { }
     22    protected IntegerRangeErcValue(bool deseralizing) : base(deseralizing) { }
    2423
    2524    public IntegerRangeErcValue(IntegerRangeErcValue origin, Cloner cloner) : base(origin, cloner) { }
Note: See TracChangeset for help on using the changeset viewer.