Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/AlgorithmProblemItem.cs @ 18242

Last change on this file since 18242 was 16996, checked in by gkronber, 6 years ago

#2520 Update plugin dependencies and references for HL.MetaOptimization for new persistence

File size: 1.2 KB
RevLine 
[5665]1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Optimization;
4using HeuristicLab.Parameters;
[16574]5using HEAL.Attic;
[5665]6
7namespace HeuristicLab.Problems.MetaOptimization {
[16574]8  [StorableType("4A2B5B18-F678-45FE-B59E-06BD79F5982A")]
[5665]9  public class AlgorithmProblemItem : ParameterizedNamedItem {
10    #region Parameter Properties
11    public IValueParameter<IAlgorithm> AlgorithmParameter {
12      get { return (ValueParameter<IAlgorithm>)Parameters["Algorithm"]; }
13    }
14    public IValueParameter<IProblem> ProblemParameter {
15      get { return (ValueParameter<IProblem>)Parameters["Problem"]; }
16    }
17    #endregion
18
19    #region Constructors and Cloning
20    [StorableConstructor]
[16574]21    protected AlgorithmProblemItem(StorableConstructorFlag _) : base(_) { }
[5665]22    public AlgorithmProblemItem() {
23      this.Parameters.Add(new ValueParameter<IAlgorithm>("Algorithm"));
24      this.Parameters.Add(new ValueParameter<IProblem>("Problem"));
25    }
26    protected AlgorithmProblemItem(AlgorithmProblemItem original, Cloner cloner)
27      : base(original, cloner) {
28    }
29    public override IDeepCloneable Clone(Cloner cloner) {
30      return new AlgorithmProblemItem(this, cloner);
31    }
32    #endregion
33  }
34}
Note: See TracBrowser for help on using the repository browser.