[12764] | 1 | #region License Information
|
---|
| 2 | /* HeuristicLab
|
---|
[17226] | 3 | * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
[12764] | 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 |
|
---|
| 22 | using System;
|
---|
[17594] | 23 | using HEAL.Attic;
|
---|
[12764] | 24 | using HeuristicLab.Core;
|
---|
| 25 |
|
---|
| 26 | namespace HeuristicLab.Optimization {
|
---|
[17594] | 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 |
|
---|
[16723] | 37 | [StorableType("e05050f3-5f92-4245-b733-7097d496e781")]
|
---|
[12764] | 38 | /// <summary>
|
---|
| 39 | /// Represents a result which has a name and a data type and holds an IItem.
|
---|
| 40 | /// </summary>
|
---|
[17594] | 41 | public interface IResult : IResultDefinition {
|
---|
[12764] | 42 | IItem Value { get; set; }
|
---|
[17594] | 43 | bool HasValue { get; }
|
---|
[12764] | 44 |
|
---|
[17594] | 45 | void Reset();
|
---|
[12764] | 46 | event EventHandler ValueChanged;
|
---|
| 47 | }
|
---|
[17594] | 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 |
|
---|
[12764] | 58 | }
|
---|