Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/13 13:03:29 (11 years ago)
Author:
ascheibe
Message:

#1886 cleaned up Hive RunCollection Modifier Task classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/RunCollectionModifiers/RunCollectionModifierExecutable.cs

    r10121 r10128  
    113113      return new RunCollectionModifierExecutable(this, cloner);
    114114    }
     115
     116    //special cloning which ignores the RunCollection and the execution stack
     117    public RunCollectionModifierExecutable CloneWithoutRuns() {
     118      var clone = new RunCollectionModifierExecutable();
     119      clone.executionTime = executionTime;
     120      clone.executionState = executionState;
     121      clone.log = (ILog)log.Clone(new Cloner());
     122      clone.RunCollectionModifiersParameter.Value = (ItemList<IRunCollectionModifier>)RunCollectionModifiers.Clone(new Cloner());
     123      return clone;
     124    }
    115125    #endregion
    116126
     
    198208          executionStack.Push(next);
    199209          if (ex is OperationCanceledException) throw ex;
    200           else throw new Exception("IRunCollectionModifier " + next + "threw an exception.", ex);
     210          else throw new Exception("IRunCollectionModifier " + next + " threw an exception.", ex);
    201211        }
    202212        finally {
Note: See TracChangeset for help on using the changeset viewer.