Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encodings/ValueConfigurations/NullValueConfiguration.cs @ 5112

Last change on this file since 5112 was 5112, checked in by cneumuel, 12 years ago

#1215

  • resolving svn issue
File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Core;
6using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
7using HeuristicLab.Common;
8
9namespace 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.