namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char { using System; using Common; using Core; using Persistence.Default.CompositeSerializers.Storable; [StorableClass] public class CharErcOptions : ErcOptionConvertible { public CharErcOptions() { } public CharErcOptions(params IWeightedErcValueItem[] values) : this(true, values) { } public CharErcOptions(bool isEnabled, params IWeightedErcValueItem[] values) : base(isEnabled, values) { } [StorableConstructor] protected CharErcOptions(bool deserializing) : base(deserializing) { } public CharErcOptions(CharErcOptions origin, Cloner cloner) : base(origin, cloner) { } public override IDeepCloneable Clone(Cloner cloner) { return new CharErcOptions(this, cloner); } public override char GetErcValue(IRandom random) { return GetErcValue(random, Convert.ToChar); } } }