Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/25/10 02:49:16 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on algorithms
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SGA/3.3/SGA.cs

    r2857 r2864  
    4747      get { return (ISingleObjectiveProblem)base.Problem; }
    4848      set { base.Problem = value; }
    49     }
    50 
    51     public new IScope GlobalScope {
    52       get { return base.GlobalScope; }
    5349    }
    5450
     
    106102
    107103    protected override void OnProblemChanged() {
    108       if (Problem.SolutionCreator is IStochasticSolutionCreator) ((IStochasticSolutionCreator)Problem.SolutionCreator).RandomParameter.ActualName = "Random";
     104      if (Problem.SolutionCreator is IStochasticOperator) ((IStochasticOperator)Problem.SolutionCreator).RandomParameter.ActualName = "Random";
    109105      populationCreator.SolutionCreatorParameter.Value = Problem.SolutionCreator;
    110106      populationCreator.SolutionEvaluatorParameter.Value = Problem.Evaluator;
     
    115111    }
    116112    protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {
    117       if (Problem.SolutionCreator is IStochasticSolutionCreator) ((IStochasticSolutionCreator)Problem.SolutionCreator).RandomParameter.ActualName = "Random";
     113      if (Problem.SolutionCreator is IStochasticOperator) ((IStochasticOperator)Problem.SolutionCreator).RandomParameter.ActualName = "Random";
    118114      populationCreator.SolutionCreatorParameter.Value = Problem.SolutionCreator;
    119115      base.Problem_SolutionCreatorChanged(sender, e);
Note: See TracChangeset for help on using the changeset viewer.