Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/10 14:18:22 (15 years ago)
Author:
swagner
Message:

Added Reset event to IProblem (#1006)

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

Legend:

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

    r3716 r3739  
    265265      problem.EvaluatorChanged -= new EventHandler(Problem_EvaluatorChanged);
    266266      problem.OperatorsChanged -= new EventHandler(Problem_OperatorsChanged);
     267      problem.Reset -= new EventHandler(Problem_Reset);
    267268    }
    268269    protected virtual void RegisterProblemEvents() {
     
    270271      problem.EvaluatorChanged += new EventHandler(Problem_EvaluatorChanged);
    271272      problem.OperatorsChanged += new EventHandler(Problem_OperatorsChanged);
     273      problem.Reset += new EventHandler(Problem_Reset);
    272274    }
    273275    protected virtual void Problem_SolutionCreatorChanged(object sender, EventArgs e) { }
    274276    protected virtual void Problem_EvaluatorChanged(object sender, EventArgs e) { }
    275277    protected virtual void Problem_OperatorsChanged(object sender, EventArgs e) { }
     278    protected virtual void Problem_Reset(object sender, EventArgs e) {
     279      Prepare();
     280    }
    276281
    277282    protected virtual void DeregisterRunsEvents() {
  • trunk/sources/HeuristicLab.Optimization/3.3/Interfaces/IProblem.cs

    r3616 r3739  
    3939    event EventHandler EvaluatorChanged;
    4040    event EventHandler OperatorsChanged;
     41    event EventHandler Reset;
    4142  }
    4243}
Note: See TracChangeset for help on using the changeset viewer.