Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Services.OKB/3.3/Interfaces/IAdminService.cs @ 4381

Last change on this file since 4381 was 4381, checked in by swagner, 14 years ago

Worked on OKB data model and services (#1174).

File size: 4.2 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 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.Net.Security;
23using System.ServiceModel;
24using HeuristicLab.Services.OKB.DataAccess;
25
26namespace HeuristicLab.Services.OKB {
27  /// <summary>
28  /// Allows updating the implementation of algorithms and problems. All
29  /// other entities can be modified using the <see cref="TableService"/>
30  /// </summary> 
31  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
32  public interface IAdminService {
33
34    /// <summary>
35    /// Gets all available platforms.
36    /// </summary>
37    /// <returns>A list of <see cref="Platform"/>s.</returns>
38    [OperationContract]
39    Platform[] GetPlatforms();
40
41    /// <summary>
42    /// Gets the complete algorithm object graph up to the following entities:
43    /// <list type="bullet">
44    /// <item>Parameter</item>
45    /// <item>Algorithm_Paramters.Parameter.DataType</item>
46    /// <item>Algorithm_Results.Result.DataType</item>
47    /// </list>
48    /// </summary>
49    /// <param name="id">The algorithm id.</param>
50    /// <returns>An <see cref="Algorithm"/></returns>
51    [OperationContract]
52    Algorithm GetCompleteAlgorithm(int id);
53
54    /// <summary>
55    /// Gets the complete problem object graph up to the following entities:
56    /// <list type="bullet">
57    /// <item>Platform</item>
58    /// <item>SolutionRepresentation</item>
59    /// <item>Problem_Parameters.Parameter</item>
60    /// <item>IntProblemCharacteristicValues.ProblemCharacteristic.DataType</item>
61    /// <item>FloatProblemCharacteristicValues.ProblemCharacteristic.DataType</item>
62    /// <item>CharProblemCharacteristicValues.ProblemCharacteristic.DataType</item>
63    /// </list>
64    /// </summary>
65    /// <param name="id">The problem id.</param>
66    /// <returns>A <see cref="Problem"/></returns>
67    [OperationContract]
68    Problem GetCompleteProblem(int id);
69
70    /// <summary>
71    /// Updates the algorithm object graph including the following properties and linked entitites:
72    /// <list type="bullet">
73    /// <item>Name</item>
74    /// <item>Description</item>
75    /// <item>AlgorithmClassId</item>
76    /// <item>PlatformId</item>
77    /// <item>Algorithm_Parameters</item>
78    /// <item>Algorithm_Results</item>
79    /// </list>
80    /// <remarks>
81    /// New <see cref="Parameter"/>s or <see cref="Result"/>s will not be
82    /// created but have to be pre-existing.
83    /// </remarks>
84    /// </summary>
85    /// <param name="algorithm">The algorithm.</param>
86    [OperationContract]
87    void UpdateCompleteAlgorithm(Algorithm algorithm);
88
89    /// <summary>
90    /// Updates the problem object graph including the following properties and linked entities:
91    /// <list type="bullet">
92    /// <item>Name</item>
93    /// <item>Description</item>
94    /// <item>ProblemClassId</item>
95    /// <item>PlatformId</item>
96    /// <item>SolutionRepresentationId</item>
97    /// <item>IntProblemCharacteristicValues.Value</item>
98    /// <item>FloatProblemCharacteristicValues.Value</item>
99    /// <item>CharProblemCharacteristicValues.Value</item>
100    /// <item>Problem_Parameters</item>
101    /// </list>
102    /// <remarks>
103    /// New <see cref="ProblemCharacteristic"/>s or <see cref="Parameter"/>s will
104    /// not be created but have to be pre-existing.
105    /// </remarks>
106    /// </summary>
107    /// <param name="problem">The problem.</param>
108    [OperationContract]
109    void UpdateCompleteProblem(Problem problem);
110  }
111}
Note: See TracBrowser for help on using the repository browser.