Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Optimization;
|
---|
4 | using HeuristicLab.Parameters;
|
---|
5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Problems.MetaOptimization {
|
---|
8 | [StorableClass]
|
---|
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(bool deserializing) : base(deserializing) { }
|
---|
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.