Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/27/12 10:39:03 (12 years ago)
Author:
jkarder
Message:

#1853:

  • added problem instance selection to CreateExperimentDialog
  • adopted experiment creation
  • minor code improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ValueConfigurations/ValueConfiguration.cs

    r8517 r8524  
    2828
    2929namespace HeuristicLab.Encodings.ParameterConfigurationEncoding {
    30   // TODO: ItemName/Descr, storability
     30  [Item("ValueConfiguration", "Represents a value configuration.")]
    3131  [StorableClass]
    3232  public abstract class ValueConfiguration : NamedItem, IValueConfiguration {
     
    5959          if (value == true && !this.IsOptimizable)
    6060            throw new NotSupportedException("This value is not optimizable.");
    61 
    6261          optimize = value;
    6362          OnOptimizeChanged();
     
    106105
    107106    #region Constructors and Cloning
    108     public ValueConfiguration(IItem value, Type valueDataType) {
    109       this.ActualValue = new ConstrainedValue(value, valueDataType, new ItemSet<IItem> { value }, false);
    110       this.IsOptimizable = true;
    111     }
    112 
    113     public ValueConfiguration() { }
    114107    [StorableConstructor]
    115     protected ValueConfiguration(bool deserializing) { }
     108    protected ValueConfiguration(bool deserializing) : base(deserializing) { }
    116109    protected ValueConfiguration(ValueConfiguration original, Cloner cloner)
    117110      : base(original, cloner) {
     
    122115      this.valuesReadOnly = original.valuesReadOnly;
    123116      RegisterActualValueEvents();
     117    }
     118    protected ValueConfiguration() : base() { }
     119    protected ValueConfiguration(IItem value, Type valueDataType) {
     120      this.ActualValue = new ConstrainedValue(value, valueDataType, new ItemSet<IItem> { value }, false);
     121      this.IsOptimizable = true;
    124122    }
    125123    #endregion
Note: See TracChangeset for help on using the changeset viewer.