Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Boolean/BooleanErcOptions.cs @ 17714

Last change on this file since 17714 was 14952, checked in by pkimmesw, 8 years ago

#2665 Added IsNoop to Expression, Made Expressions storable, Fixed Debugger, Fixed and improved problem data and result visualisation, Added custom ErcOption view, Added problem difficulty to problem data name

File size: 904 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Boolean {
2  using HeuristicLab.Common;
3  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
4
5  [StorableClass]
6  public class BooleanErcOptions : ErcOption<bool> {
7
8    public BooleanErcOptions() { }
9    public BooleanErcOptions(params WeightedErcItem<bool>[] values) : base(true, values) { }
10    public BooleanErcOptions(bool isEnabled, params WeightedErcItem<bool>[] values) : base(isEnabled, values) { }
11
12    [StorableConstructor]
13    public BooleanErcOptions(bool deserializing) : base(deserializing) { }
14
15    public BooleanErcOptions(BooleanErcOptions origin, Cloner cloner) : base(origin, cloner) { }
16
17    public override IDeepCloneable Clone(Cloner cloner) {
18      return new BooleanErcOptions(this, cloner);
19    }
20
21    public override string ToString() {
22      return "Boolean";
23    }
24  }
25}
Note: See TracBrowser for help on using the repository browser.