Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/ErcOption.cs @ 14897

Last change on this file since 14897 was 14897, checked in by pkimmesw, 7 years ago

#2665 Dynamic ErcValues, Separate Push from BenchmarkSuite Push

File size: 707 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc {
2  using HeuristicLab.Common;
3  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
4
5  [StorableClass]
6  public abstract class ErcOption<T> : ErcOptionConvertible<T, T> {
7    protected ErcOption() : this(false, new IWeightedErcValueItem<T>[0]) { }
8
9    protected ErcOption(bool isEnabled, params IWeightedErcValueItem<T>[] values)
10        : base(x => x, isEnabled, values) { }
11
12    [StorableConstructor]
13    protected ErcOption(bool deserializing)
14        : base(deserializing) {
15    }
16
17    protected ErcOption(ErcOptionConvertible<T, T> origin, Cloner cloner)
18        : base(origin, cloner) {
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.