Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.3/CrossValidation.cs

    r4617 r4722  
    7272    }
    7373
     74    private CrossValidation(CrossValidation original, Cloner cloner)
     75      : base(original, cloner) {
     76      executionState = original.executionState;
     77      storeAlgorithmInEachRun = original.storeAlgorithmInEachRun;
     78      runs = cloner.Clone(original.runs);
     79      runsCounter = original.runsCounter;
     80      algorithm = cloner.Clone(original.algorithm);
     81      clonedAlgorithms = cloner.Clone(original.clonedAlgorithms);
     82      folds = cloner.Clone(original.folds);
     83      numberOfWorkers = cloner.Clone(original.numberOfWorkers);
     84      samplesStart = cloner.Clone(original.samplesStart);
     85      samplesEnd = cloner.Clone(original.samplesEnd);
     86      RegisterEvents();
     87    }
    7488    public override IDeepCloneable Clone(Cloner cloner) {
    75       CrossValidation clone = (CrossValidation)base.Clone(cloner);
    76       clone.executionState = executionState;
    77       clone.storeAlgorithmInEachRun = storeAlgorithmInEachRun;
    78       clone.runs = (RunCollection)cloner.Clone(runs);
    79       clone.runsCounter = runsCounter;
    80       clone.algorithm = (IAlgorithm)cloner.Clone(algorithm);
    81       clone.clonedAlgorithms = (ItemCollection<IAlgorithm>)cloner.Clone(clonedAlgorithms);
    82       clone.folds = (IntValue)cloner.Clone(folds);
    83       clone.numberOfWorkers = (IntValue)cloner.Clone(numberOfWorkers);
    84       clone.samplesStart = (IntValue)cloner.Clone(samplesStart);
    85       clone.samplesEnd = (IntValue)cloner.Clone(samplesEnd);
    86       clone.RegisterEvents();
    87       return clone;
    88     }
     89      return new CrossValidation(this, cloner);
     90    }
     91
    8992    #endregion
    9093
Note: See TracChangeset for help on using the changeset viewer.