Last change
on this file since 15692 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:
1017 bytes
|
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 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.