Free cookie consent management tool by TermsFeed Policy Generator

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

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

Integrated OKB services (#1166)

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