Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/21/19 17:58:32 (4 years ago)
Author:
mkommend
Message:

#2521: First version of contexts in problem evaluation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/ISolutionContext.cs

    r17357 r17363  
    2424
    2525namespace HeuristicLab.Optimization {
     26  //TODO discuss renaming to solution scope?
    2627  [StorableType("383A35EB-03C9-473D-A20B-EE34E00BC174")]
    2728  public interface ISolutionContext : IItem {
     
    3637  }
    3738
    38   public interface ISingleObjectiveSolutionContext : ISolutionContext {
    39     //TODO discuss with abeham hiding of base property
    40     new ISingleObjectiveEvaluationResult EvaluationResult { get; }
     39  public interface ISolutionContext<TEncodedSolution> : ISolutionContext
     40    where TEncodedSolution : class, IEncodedSolution {
     41    new TEncodedSolution EncodedSolution { get; }
    4142  }
    4243
    43   public interface IMultiObjectiveSolutionContext : ISolutionContext {
    44     new IMultiObjectiveEvaluationResult EvaluationResult { get; }
     44
     45  public interface ISingleObjectiveSolutionContext<TEncodedSolution> : ISolutionContext<TEncodedSolution>
     46    where TEncodedSolution : class, IEncodedSolution {
     47    //TODO discuss with abeham hiding of base property
     48    new ISingleObjectiveEvaluationResult EvaluationResult { get; set; }
     49  }
     50
     51  public interface IMultiObjectiveSolutionContext<TEncodedSolution> : ISolutionContext<TEncodedSolution>
     52    where TEncodedSolution : class, IEncodedSolution {
     53    new IMultiObjectiveEvaluationResult EvaluationResult { get; set; }
    4554  }
    4655
Note: See TracChangeset for help on using the changeset viewer.