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
|
Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Optimization;
|
---|
4 | using HeuristicLab.Parameters;
|
---|
5 | using HEAL.Attic;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Problems.MetaOptimization {
|
---|
8 | [StorableType("4A2B5B18-F678-45FE-B59E-06BD79F5982A")]
|
---|
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]
|
---|
21 | protected AlgorithmProblemItem(StorableConstructorFlag _) : base(_) { }
|
---|
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.