Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6690


Ignore:
Timestamp:
09/01/11 09:55:30 (13 years ago)
Author:
epitzer
Message:

Rename RunCollectionFuzzifier to RunCollectionDiscretizer (#1622)

This commit contains both version and a modified cloning method in the old fuzzifier to enable upgrading by cloning a fuzzifier in the GUI which will then become a discretizer.

Location:
trunk/sources/HeuristicLab.Optimization/3.3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj

    r6686 r6690  
    111111  </ItemGroup>
    112112  <ItemGroup>
     113    <Compile Include="RunCollectionDiscretizer.cs" />
    113114    <Compile Include="RunCollectionGroupCreater.cs" />
    114115    <Compile Include="RunCollectionSorter.cs" />
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionFuzzifier.cs

    r6671 r6690  
    6464      UpdateName();
    6565    }
     66
    6667    public override IDeepCloneable Clone(Cloner cloner) {
    67       return new RunCollectionFuzzifier(this, cloner);
     68      var d = new RunCollectionDiscretizer();
     69      cloner.RegisterClonedObject(this, d);
     70      d.SourceParameter.Value = cloner.Clone(SourceParameter.Value);
     71      d.TargetParameter.Value = cloner.Clone(TargetParameter.Value);
     72      d.SpreadParameter.Value = cloner.Clone(SpreadParameter.Value);
     73      d.GroupByParameter.Value = cloner.Clone(GroupByParameter.Value);
     74      d.LevelsParameter.Value = cloner.Clone(LevelsParameter.Value);
     75      return d;
    6876    }
     77
    6978    [StorableHook(HookType.AfterDeserialization)]
    7079    private void AfterDeserialization() {
Note: See TracChangeset for help on using the changeset viewer.