Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push.Base/Erc/Char/CharErcOptions.cs @ 16371

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

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

File size: 1002 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis {
2  using System;
3
4  using Common;
5  using Core;
6  using Persistence.Default.CompositeSerializers.Storable;
7
8  [StorableClass]
9  public class CharErcOptions : ErcOptionConvertible<char, int> {
10    public CharErcOptions() { }
11
12    public CharErcOptions(params WeightedErcItem<int>[] values) : this(true, values) { }
13
14    public CharErcOptions(bool isEnabled, params WeightedErcItem<int>[] values) : base(isEnabled, values) { }
15
16    [StorableConstructor]
17    protected CharErcOptions(bool deserializing) : base(deserializing) { }
18
19    public CharErcOptions(CharErcOptions origin, Cloner cloner) : base(origin, cloner) { }
20
21    public override IDeepCloneable Clone(Cloner cloner) {
22      return new CharErcOptions(this, cloner);
23    }
24
25    public override char GetErcValue(IRandom random) {
26      return GetErcValue(random, Convert.ToChar);
27    }
28
29    public override string ToString() {
30      return "Char";
31    }
32  }
33}
Note: See TracBrowser for help on using the repository browser.