Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/06/12 14:45:59 (12 years ago)
Author:
jkarder
Message:

#1853:

  • added MultiDoubleValueCrossover
  • fixed bug in AverageDoubleValueCrossover
  • minor code improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ParameterConfigurations/ParameterConfiguration.cs

    r8574 r8590  
    9696    protected Type parameterDataType;
    9797    public Type ParameterDataType {
    98       get { return this.parameterDataType; }
     98      get { return parameterDataType; }
    9999    }
    100100
     
    103103      get { return validTypes; }
    104104      protected set {
    105         if (this.validTypes != value) {
    106           this.validTypes = value;
     105        if (validTypes != value) {
     106          validTypes = value;
    107107        }
    108108      }
     
    113113    public Type ValueDataType {
    114114      get { return valueDataType; }
    115       protected set { this.valueDataType = value; }
     115      protected set { valueDataType = value; }
    116116    }
    117117
     
    119119    protected ICheckedValueConfigurationList valueConfigurations;
    120120    public ICheckedValueConfigurationList ValueConfigurations {
    121       get { return this.valueConfigurations; }
     121      get { return valueConfigurations; }
    122122      protected set {
    123         if (this.valueConfigurations != value) {
    124           if (this.valueConfigurations != null) DeregisterValueConfigurationEvents();
    125           this.valueConfigurations = value;
     123        if (valueConfigurations != value) {
     124          if (valueConfigurations != null) DeregisterValueConfigurationEvents();
     125          valueConfigurations = value;
    126126          KeepActualValueConfigurationIndexConsistent();
    127           if (this.valueConfigurations != null) RegisterValueConfigurationEvents();
    128         }
    129       }
    130     }
    131 
    132     [Storable]
    133     private int actualValueConfigurationIndex = 0;
     127          if (valueConfigurations != null) RegisterValueConfigurationEvents();
     128        }
     129      }
     130    }
     131
     132    [Storable]
     133    private int actualValueConfigurationIndex;
    134134    public int ActualValueConfigurationIndex {
    135135      get { return actualValueConfigurationIndex; }
     
    155155      get { return isNullable; }
    156156      protected set {
    157         if (this.isNullable != value) {
    158           this.isNullable = value;
     157        if (isNullable != value) {
     158          isNullable = value;
    159159        }
    160160      }
     
    182182      get { return valuesReadOnly; }
    183183      set {
    184         if (value != this.valuesReadOnly) {
    185           this.valuesReadOnly = value;
    186           foreach (var vc in this.valueConfigurations) {
     184        if (valuesReadOnly != value) {
     185          valuesReadOnly = value;
     186          foreach (var vc in valueConfigurations) {
    187187            vc.ValuesReadOnly = value;
    188188          }
Note: See TracChangeset for help on using the changeset viewer.