Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Core;
|
---|
6 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
7 | using HeuristicLab.Common;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.Problems.MetaOptimization {
|
---|
10 | [StorableClass]
|
---|
11 | public class NullValueConfiguration : ValueConfiguration {
|
---|
12 |
|
---|
13 | public NullValueConfiguration() {
|
---|
14 | this.ParameterConfigurations = new ItemList<IParameterConfiguration>();
|
---|
15 | this.ActualValue = new ConstrainedValue(null, null, null, true);
|
---|
16 | this.IsOptimizable = false;
|
---|
17 | }
|
---|
18 | [StorableConstructor]
|
---|
19 | protected NullValueConfiguration(bool deserializing) : base(deserializing) { }
|
---|
20 | protected NullValueConfiguration(NullValueConfiguration original, Cloner cloner)
|
---|
21 | : base(original, cloner) {
|
---|
22 | }
|
---|
23 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
24 | return new NullValueConfiguration(this, cloner);
|
---|
25 | }
|
---|
26 |
|
---|
27 | public override string ToString() {
|
---|
28 | return "null";
|
---|
29 | }
|
---|
30 | }
|
---|
31 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.