Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push.Base/Erc/Boolean/BooleanErcOptions.cs @ 15771

Last change on this file since 15771 was 15771, checked in by bburlacu, 6 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

File size: 886 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis {
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.