Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/24/10 11:44:05 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on algorithms
Location:
trunk/sources/HeuristicLab.Optimization/3.3
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj

    r2852 r2857  
    5252    <None Include="HeuristicLabOptimizationPlugin.cs.frame" />
    5353    <Compile Include="Algorithm.cs" />
     54    <Compile Include="IManipulationOperator.cs" />
     55    <Compile Include="ICrossoverOperator.cs" />
     56    <Compile Include="IStochasticSolutionCreator.cs" />
     57    <Compile Include="IStochasticOperator.cs" />
    5458    <Compile Include="ISolutionCreator.cs" />
    5559    <Compile Include="SingleObjectiveProblem.cs" />
  • TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/IProblem.cs

    r2852 r2857  
    2222using HeuristicLab.Core;
    2323using System;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Optimization {
     
    3334    event EventHandler SolutionCreatorChanged;
    3435    event EventHandler EvaluatorChanged;
     36    event EventHandler<EventArgs<Type>> OperatorsChanged;
    3537  }
    3638}
  • TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/ISolutionCreator.cs

    r2852 r2857  
    2727  /// An interface which represents an operator for creating new solutions.
    2828  /// </summary>
    29   public interface ISolutionCreator : IOperator {
    30     ILookupParameter<IRandom> RandomParameter { get; }
    31   }
     29  public interface ISolutionCreator : IOperator { }
    3230}
  • TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/Problem.cs

    r2852 r2857  
    2525using HeuristicLab.Parameters;
    2626using System;
     27using HeuristicLab.Common;
    2728
    2829namespace HeuristicLab.Optimization {
     
    100101        EvaluatorChanged(this, EventArgs.Empty);
    101102    }
     103    public event EventHandler<EventArgs<Type>> OperatorsChanged;
     104    protected virtual void OnOperatorsChanged(Type operatorType) {
     105      if (OperatorsChanged != null)
     106        OperatorsChanged(this, new EventArgs<Type>(operatorType));
     107    }
    102108  }
    103109}
Note: See TracChangeset for help on using the changeset viewer.