Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Results/IResult.cs @ 17747

Last change on this file since 17747 was 17594, checked in by mkommend, 5 years ago

#2521: Added first version of new results. The first algorithm that has been adapted for testing purposes is the hill climber.

File size: 1.9 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using HEAL.Attic;
24using HeuristicLab.Core;
25
26namespace HeuristicLab.Optimization {
27  [StorableType("62D2A0C2-52A0-4788-8666-E575790B29DA")]
28  /// <summary>
29  /// Represents the definition of a result with name, description and data type
30  /// </summary>
31  public interface IResultDefinition : INamedItem {
32    Type DataType { get; }
33    //TODO implement enabled property for deactivation of result calculation
34    //bool Enabled { get; set; }
35  }
36
37  [StorableType("e05050f3-5f92-4245-b733-7097d496e781")]
38  /// <summary>
39  /// Represents a result which has a name and a data type and holds an IItem.
40  /// </summary>
41  public interface IResult : IResultDefinition {
42    IItem Value { get; set; }
43    bool HasValue { get; }
44
45    void Reset();
46    event EventHandler ValueChanged;
47  }
48
49  [StorableType("3B7B9DF0-0BEB-4FF5-8430-A07749FF2EB4")]
50  /// <summary>
51  /// Represents a typed result which has a name and a data type.
52  /// </summary>
53  public interface IResult<T> : IResult {
54    new T Value { get; set; }
55  }
56
57
58}
Note: See TracBrowser for help on using the repository browser.