Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/Manager/ApplicationDescription.cs @ 17717

Last change on this file since 17717 was 15583, checked in by swagner, 7 years ago

#2640: Updated year of copyrights in license headers

File size: 2.7 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2018 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;
23
24namespace HeuristicLab.PluginInfrastructure.Manager {
25  /// <summary>
26  /// Class that provides information about an application.
27  /// </summary>
28  [Serializable]
29  public sealed class ApplicationDescription : IApplicationDescription {
30    private string name;
31
32    /// <summary>
33    /// Gets or sets the name of the application.
34    /// </summary>
35    public string Name {
36      get { return name; }
37      internal set { name = value; }
38    }
39    private Version version;
40
41    /// <summary>
42    /// Gets or sets the version of the application.
43    /// </summary>
44    internal Version Version {
45      get { return version; }
46      set { version = value; }
47    }
48    private string description;
49
50    /// <summary>
51    /// Gets or sets the description of the application.
52    /// </summary>
53    public string Description {
54      get { return description; }
55      internal set { description = value; }
56    }
57
58    private bool autoRestart;
59    /// <summary>
60    /// Gets or sets the boolean flag if the application should be automatically restarted.
61    /// </summary>
62    internal bool AutoRestart {
63      get { return autoRestart; }
64      set { autoRestart = value; }
65    }
66
67    private string declaringAssemblyName;
68    /// <summary>
69    /// Gets or sets the name of the assembly that contains the IApplication type.
70    /// </summary>
71    internal string DeclaringAssemblyName {
72      get { return declaringAssemblyName; }
73      set { declaringAssemblyName = value; }
74    }
75
76    private string declaringTypeName;
77    /// <summary>
78    /// Gets or sets the name of the type that implements the interface IApplication.
79    /// </summary>
80    internal string DeclaringTypeName {
81      get { return declaringTypeName; }
82      set { declaringTypeName = value; }
83    }
84
85    public override string ToString() {
86      return Name + " " + Version;
87    }
88  }
89}
Note: See TracBrowser for help on using the repository browser.