Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerErcOptions.cs

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