source: branches/RefactorPluginInfrastructure-2522/HeuristicLab.PluginInfrastructure/3.3/ApplicationDescription.cs @ 13389

Last change on this file since 13389 was 13389, checked in by gkronber, 4 years ago

#2522: removed Starter form and instead init plugin discovery and launch of application from Startup project (.exe)

File size: 2.7 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2015 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 {
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    public Version Version {
45      get { return version; }
46      internal 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    public bool AutoRestart {
63      get { return autoRestart; }
64      internal 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    public string DeclaringAssemblyName {
72      get { return declaringAssemblyName; }
73      internal 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    public string DeclaringTypeName {
81      get { return declaringTypeName; }
82      internal 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.