Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/17 20:42:40 (7 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/Boolean/BooleanRandomErcValue.cs

    r14898 r14905  
    1616    public BooleanRandomErcValue() : this(false, true, true) { }
    1717
    18     public BooleanRandomErcValue(bool isEnabled, bool allowTrue, bool allowFalse) {
     18    public BooleanRandomErcValue(bool isEnabled, bool allowTrue, bool allowFalse, double weight = 1d) : base(isEnabled, weight) {
    1919      if (!allowTrue && allowFalse) {
    2020        throw new InvalidOperationException("true and false values are disabled");
     
    2222
    2323      Name = "Boolean random";
    24       IsEnabled = isEnabled;
    2524      Parameters.Add(new FixedValueParameter<BoolValue>(AllowTrueParameterName, new BoolValue(allowTrue)));
    2625      Parameters.Add(new FixedValueParameter<BoolValue>(AllowFalseParameterName, new BoolValue(allowFalse)));
Note: See TracChangeset for help on using the changeset viewer.