#region License Information
/* HeuristicLab
* Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
*
* This file is part of HeuristicLab.
*
* HeuristicLab is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* HeuristicLab is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with HeuristicLab. If not, see .
*/
#endregion
using System.Collections.Generic;
using HEAL.Attic;
using HeuristicLab.Core;
namespace HeuristicLab.Optimization {
//TODO discuss renaming to solution scope?
[StorableType("383A35EB-03C9-473D-A20B-EE34E00BC174")]
public interface ISolutionContext : IItem {
bool IsEvaluated { get; }
IEnumerable> AdditionalData { get; }
IEncodedSolution EncodedSolution { get; }
IEvaluationResult EvaluationResult { get; }
//TODO: make methods generic for get/set additional data
void SetAdditionalData(string identifier, object o);
object GetAdditionalData(string identifier);
}
public interface ISolutionContext : ISolutionContext
where TEncodedSolution : class, IEncodedSolution {
new TEncodedSolution EncodedSolution { get; }
}
[StorableType("3A5CA150-1122-4D13-B65D-55D7EC86198F")]
public interface ISingleObjectiveSolutionContext : ISolutionContext
where TEncodedSolution : class, IEncodedSolution {
//TODO discuss with abeham hiding of base property
new ISingleObjectiveEvaluationResult EvaluationResult { get; set; }
}
[StorableType("3110C8C1-11FE-4A24-9B4E-E2EB3B97CBE9")]
public interface IMultiObjectiveSolutionContext : ISolutionContext
where TEncodedSolution : class, IEncodedSolution {
new IMultiObjectiveEvaluationResult EvaluationResult { get; set; }
}
}