Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/14/12 09:19:39 (12 years ago)
Author:
mkommend
Message:

#1760:

  • added possibility to exclude members from object graph traversal by name
  • excluded runs from object graph traversal in the Algorithm
  • adapted DeepCloneableCloningTest
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs

    r7259 r7467  
    265265      ExecutionState = ExecutionState.Prepared;
    266266      ExecutionTime = TimeSpan.Zero;
    267       foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects().OfType<IStatefulItem>()) {
     267      foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) {
    268268        statefulObject.InitializeState();
    269269      }
     
    286286    protected virtual void OnStopped() {
    287287      ExecutionState = ExecutionState.Stopped;
    288       foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects().OfType<IStatefulItem>()) {
     288      foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) {
    289289        statefulObject.ClearState();
    290290      }
Note: See TracChangeset for help on using the changeset viewer.