1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2008 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 |
|
---|
22 | using System;
|
---|
23 | using System.Collections.Generic;
|
---|
24 | using System.Text;
|
---|
25 | using System.Runtime.Serialization;
|
---|
26 |
|
---|
27 | namespace HeuristicLab.PluginInfrastructure {
|
---|
28 | [Serializable]
|
---|
29 | public class ApplicationInfo {
|
---|
30 | private string name;
|
---|
31 |
|
---|
32 | public string Name {
|
---|
33 | get { return name; }
|
---|
34 | set { name = value; }
|
---|
35 | }
|
---|
36 | private Version version;
|
---|
37 |
|
---|
38 | public Version Version {
|
---|
39 | get { return version; }
|
---|
40 | set { version = value; }
|
---|
41 | }
|
---|
42 | private string description;
|
---|
43 |
|
---|
44 | public string Description {
|
---|
45 | get { return description; }
|
---|
46 | set { description = value; }
|
---|
47 | }
|
---|
48 |
|
---|
49 | private bool autoRestart;
|
---|
50 | public bool AutoRestart {
|
---|
51 | get { return autoRestart; }
|
---|
52 | set { autoRestart = value; }
|
---|
53 | }
|
---|
54 |
|
---|
55 | private string pluginAssembly;
|
---|
56 | /// <summary>
|
---|
57 | /// Name of the assembly that contains the IApplication type.
|
---|
58 | /// </summary>
|
---|
59 | public string PluginAssembly {
|
---|
60 | get { return pluginAssembly; }
|
---|
61 | set { pluginAssembly = value; }
|
---|
62 | }
|
---|
63 |
|
---|
64 | private string pluginType;
|
---|
65 | /// <summary>
|
---|
66 | /// Name of the type that implements the interface IApplication.
|
---|
67 | /// </summary>
|
---|
68 | public string PluginType {
|
---|
69 | get { return pluginType; }
|
---|
70 | set { pluginType = value; }
|
---|
71 | }
|
---|
72 |
|
---|
73 | public override string ToString() {
|
---|
74 | return Name + " " + Version + " " + Description + " " + pluginAssembly + " " + pluginType;
|
---|
75 | }
|
---|
76 | }
|
---|
77 | }
|
---|