Line | |
---|
1 | namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char {
|
---|
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 IWeightedErcValueItem<int>[] values) : this(true, values) { }
|
---|
13 |
|
---|
14 | public CharErcOptions(bool isEnabled, params IWeightedErcValueItem<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 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.