Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/11 14:33:18 (14 years ago)
Author:
mkommend
Message:

#1418: Added IHeuristicOptimizationProblem and adapted all according classes.

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Problems.ArtificialAnt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntProblem.cs

    r5445 r5578  
    4141  [Creatable("Problems")]
    4242  [StorableClass]
    43   public sealed class ArtificialAntProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     43  public sealed class ArtificialAntProblem : ParameterizedNamedItem, ISingleObjectiveHeuristicOptimizationProblem, IStorableContent {
    4444    public string Filename { get; set; }
    4545
     
    8989      get { return (ValueParameter<BoolValue>)Parameters["Maximization"]; }
    9090    }
    91     IParameter ISingleObjectiveProblem.MaximizationParameter {
     91    IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter {
    9292      get { return MaximizationParameter; }
    9393    }
     
    9595      get { return (ValueParameter<SymbolicExpressionTreeCreator>)Parameters["SolutionCreator"]; }
    9696    }
    97     IParameter IProblem.SolutionCreatorParameter {
     97    IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter {
    9898      get { return SolutionCreatorParameter; }
    9999    }
     
    101101      get { return (ValueParameter<Evaluator>)Parameters["Evaluator"]; }
    102102    }
    103     IParameter IProblem.EvaluatorParameter {
     103    IParameter IHeuristicOptimizationProblem.EvaluatorParameter {
    104104      get { return EvaluatorParameter; }
    105105    }
     
    129129      get { return (ValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    130130    }
    131     IParameter ISingleObjectiveProblem.BestKnownQualityParameter {
     131    IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter {
    132132      get { return BestKnownQualityParameter; }
    133133    }
     
    163163      set { SolutionCreatorParameter.Value = value; }
    164164    }
    165     ISolutionCreator IProblem.SolutionCreator {
     165    ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator {
    166166      get { return SolutionCreatorParameter.Value; }
    167167    }
     
    170170      set { EvaluatorParameter.Value = value; }
    171171    }
    172     ISingleObjectiveEvaluator ISingleObjectiveProblem.Evaluator {
     172    ISingleObjectiveEvaluator ISingleObjectiveHeuristicOptimizationProblem.Evaluator {
    173173      get { return EvaluatorParameter.Value; }
    174174    }
    175     IEvaluator IProblem.Evaluator {
     175    IEvaluator IHeuristicOptimizationProblem.Evaluator {
    176176      get { return EvaluatorParameter.Value; }
    177177    }
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.ArtificialAnt/3.4/ArtificialAntProblem.cs

    r5528 r5578  
    3838  [Creatable("Problems")]
    3939  [StorableClass]
    40   public sealed class ArtificialAntProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     40  public sealed class ArtificialAntProblem : ParameterizedNamedItem, ISingleObjectiveHeuristicOptimizationProblem, IStorableContent {
    4141    public string Filename { get; set; }
    4242
     
    8686      get { return (IValueParameter<BoolValue>)Parameters["Maximization"]; }
    8787    }
    88     IParameter ISingleObjectiveProblem.MaximizationParameter {
     88    IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter {
    8989      get { return MaximizationParameter; }
    9090    }
     
    9292      get { return (IValueParameter<ISymbolicExpressionTreeCreator>)Parameters["SolutionCreator"]; }
    9393    }
    94     IParameter IProblem.SolutionCreatorParameter {
     94    IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter {
    9595      get { return SolutionCreatorParameter; }
    9696    }
     
    9898      get { return (IValueParameter<Evaluator>)Parameters["Evaluator"]; }
    9999    }
    100     IParameter IProblem.EvaluatorParameter {
     100    IParameter IHeuristicOptimizationProblem.EvaluatorParameter {
    101101      get { return EvaluatorParameter; }
    102102    }
     
    126126      get { return (IValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    127127    }
    128     IParameter ISingleObjectiveProblem.BestKnownQualityParameter {
     128    IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter {
    129129      get { return BestKnownQualityParameter; }
    130130    }
     
    160160      set { SolutionCreatorParameter.Value = value; }
    161161    }
    162     ISolutionCreator IProblem.SolutionCreator {
     162    ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator {
    163163      get { return SolutionCreatorParameter.Value; }
    164164    }
     
    167167      set { EvaluatorParameter.Value = value; }
    168168    }
    169     ISingleObjectiveEvaluator ISingleObjectiveProblem.Evaluator {
     169    ISingleObjectiveEvaluator ISingleObjectiveHeuristicOptimizationProblem.Evaluator {
    170170      get { return EvaluatorParameter.Value; }
    171171    }
    172     IEvaluator IProblem.Evaluator {
     172    IEvaluator IHeuristicOptimizationProblem.Evaluator {
    173173      get { return EvaluatorParameter.Value; }
    174174    }
Note: See TracChangeset for help on using the changeset viewer.