Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 02:02:51 (14 years ago)
Author:
swagner
Message:

Worked on refactoring of algorithm analysis and tracing (#999)

  • added interfaces to specify on which scope level an analyzer can be applied
  • adapted MultiAnalyzer
Location:
trunk/sources/HeuristicLab.Analysis/3.3
Files:
2 edited
1 moved

Legend:

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

    r3616 r3618  
    8585  <ItemGroup>
    8686    <None Include="HeuristicLabAnalysisPlugin.cs.frame" />
    87     <Compile Include="BestAverageWorstQualityAnalyzer.cs" />
    8887    <Compile Include="BestAverageWorstQualityCalculator.cs" />
    8988    <Compile Include="BestQualityMemorizer.cs" />
    9089    <Compile Include="MultiAnalyzer.cs" />
     90    <Compile Include="PopulationBestAverageWorstQualityAnalyzer.cs" />
    9191    <Compile Include="QualityDifferenceCalculator.cs" />
    9292    <Compile Include="DataRow.cs" />
  • trunk/sources/HeuristicLab.Analysis/3.3/MultiAnalyzer.cs

    r3616 r3618  
    3232  /// An analyzer which applies arbitrary many other analyzers.
    3333  /// </summary>
    34   [Item("MultiAnalyzer", "An analyzer which applies arbitrary many other analyzers.")]
     34  [Item("MultiAnalyzer<T>", "An analyzer which applies arbitrary many other analyzers.")]
    3535  [StorableClass]
    36   public class MultiAnalyzer : CheckedMultiOperator<IAnalyzer>, IAnalyzer {
     36  public class MultiAnalyzer<T> : CheckedMultiOperator<T>, IAnalyzer where T : class, IAnalyzer {
    3737    public override bool CanChangeName {
    3838      get { return false; }
     
    6969        counter.Value = 0;
    7070        OperationCollection next = new OperationCollection();
    71         foreach (IndexedItem<IAnalyzer> item in Operators.CheckedItems)
     71        foreach (IndexedItem<T> item in Operators.CheckedItems)
    7272          next.Add(ExecutionContext.CreateOperation(item.Value));
    7373        next.Add(base.Apply());
  • trunk/sources/HeuristicLab.Analysis/3.3/PopulationBestAverageWorstQualityAnalyzer.cs

    r3616 r3618  
    3232  /// An operator which analyzes the best, average and worst solution quality in the current population.
    3333  /// </summary>
    34   [Item("BestAverageWorstQualityAnalyzer", "An operator which analyzes the best, average and worst solution quality in the current population.")]
     34  [Item("PopulationBestAverageWorstQualityAnalyzer", "An operator which analyzes the best, average and worst solution quality in the current population.")]
    3535  [StorableClass]
    36   public sealed class BestAverageWorstQualityAnalyzer : AlgorithmOperator, IAnalyzer {
     36  public sealed class PopulationBestAverageWorstQualityAnalyzer : AlgorithmOperator, IPopulationAnalyzer {
    3737    #region Parameter properties
    3838    public ValueLookupParameter<BoolValue> MaximizationParameter {
     
    6969
    7070    [StorableConstructor]
    71     private BestAverageWorstQualityAnalyzer(bool deserializing) : base() { }
    72     public BestAverageWorstQualityAnalyzer()
     71    private PopulationBestAverageWorstQualityAnalyzer(bool deserializing) : base() { }
     72    public PopulationBestAverageWorstQualityAnalyzer()
    7373      : base() {
    7474      Initialize();
Note: See TracChangeset for help on using the changeset viewer.