Free cookie consent management tool by TermsFeed Policy Generator

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

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

Worked on OKB data model and services (#1174)

File size: 4.7 KB
RevLine 
[4279]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
[4426]22using System.Collections.Generic;
[4279]23using System.Net.Security;
24using System.ServiceModel;
25using HeuristicLab.Services.OKB.DataAccess;
26
27namespace HeuristicLab.Services.OKB {
28  /// <summary>
[4407]29  /// Service of administrating the OKB.
[4279]30  /// </summary> 
31  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
32  public interface IAdminService {
[4407]33    [OperationContract]
[4426]34    AlgorithmClass GetAlgorithmClass(long algorithmClassId);
[4407]35    [OperationContract]
[4426]36    IEnumerable<AlgorithmClass> GetAlgorithmClasses();
[4407]37    [OperationContract]
[4426]38    void StoreAlgorithmClass(AlgorithmClass algorithmClass);
[4407]39    [OperationContract]
40    void DeleteAlgorithmClass(long algorithmClassId);
[4279]41
[4407]42    [OperationContract]
[4426]43    Algorithm GetAlgorithm(long algorithmId);
[4407]44    [OperationContract]
[4426]45    IEnumerable<Algorithm> GetAlgorithms();
[4407]46    [OperationContract]
[4426]47    void StoreAlgorithm(Algorithm algorithm);
[4407]48    [OperationContract]
49    void DeleteAlgorithm(long algorithmId);
50
51
52
53
54
[4279]55    /// <summary>
56    /// Gets all available platforms.
57    /// </summary>
58    /// <returns>A list of <see cref="Platform"/>s.</returns>
59    [OperationContract]
[4381]60    Platform[] GetPlatforms();
[4279]61
62    /// <summary>
63    /// Gets the complete algorithm object graph up to the following entities:
64    /// <list type="bullet">
65    /// <item>Parameter</item>
66    /// <item>Algorithm_Paramters.Parameter.DataType</item>
67    /// <item>Algorithm_Results.Result.DataType</item>
68    /// </list>
69    /// </summary>
70    /// <param name="id">The algorithm id.</param>
71    /// <returns>An <see cref="Algorithm"/></returns>
72    [OperationContract]
73    Algorithm GetCompleteAlgorithm(int id);
74
75    /// <summary>
76    /// Gets the complete problem object graph up to the following entities:
77    /// <list type="bullet">
78    /// <item>Platform</item>
79    /// <item>SolutionRepresentation</item>
80    /// <item>Problem_Parameters.Parameter</item>
81    /// <item>IntProblemCharacteristicValues.ProblemCharacteristic.DataType</item>
82    /// <item>FloatProblemCharacteristicValues.ProblemCharacteristic.DataType</item>
83    /// <item>CharProblemCharacteristicValues.ProblemCharacteristic.DataType</item>
84    /// </list>
85    /// </summary>
86    /// <param name="id">The problem id.</param>
87    /// <returns>A <see cref="Problem"/></returns>
88    [OperationContract]
89    Problem GetCompleteProblem(int id);
90
91    /// <summary>
92    /// Updates the algorithm object graph including the following properties and linked entitites:
93    /// <list type="bullet">
94    /// <item>Name</item>
95    /// <item>Description</item>
96    /// <item>AlgorithmClassId</item>
97    /// <item>PlatformId</item>
98    /// <item>Algorithm_Parameters</item>
99    /// <item>Algorithm_Results</item>
100    /// </list>
101    /// <remarks>
102    /// New <see cref="Parameter"/>s or <see cref="Result"/>s will not be
103    /// created but have to be pre-existing.
104    /// </remarks>
105    /// </summary>
106    /// <param name="algorithm">The algorithm.</param>
107    [OperationContract]
108    void UpdateCompleteAlgorithm(Algorithm algorithm);
109
110    /// <summary>
111    /// Updates the problem object graph including the following properties and linked entities:
112    /// <list type="bullet">
113    /// <item>Name</item>
114    /// <item>Description</item>
115    /// <item>ProblemClassId</item>
116    /// <item>PlatformId</item>
117    /// <item>SolutionRepresentationId</item>
118    /// <item>IntProblemCharacteristicValues.Value</item>
119    /// <item>FloatProblemCharacteristicValues.Value</item>
120    /// <item>CharProblemCharacteristicValues.Value</item>
121    /// <item>Problem_Parameters</item>
122    /// </list>
123    /// <remarks>
124    /// New <see cref="ProblemCharacteristic"/>s or <see cref="Parameter"/>s will
125    /// not be created but have to be pre-existing.
126    /// </remarks>
127    /// </summary>
128    /// <param name="problem">The problem.</param>
129    [OperationContract]
130    void UpdateCompleteProblem(Problem problem);
131  }
132}
Note: See TracBrowser for help on using the repository browser.