Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.BioBoost/HeuristicLab.Problems.BioBoost.Views/3.3/RegionDetailData.cs @ 13072

Last change on this file since 13072 was 13072, checked in by gkronber, 7 years ago

#2499: added code from HeuristicLab.BioBoost.Views (from private repository) nothing much has been changed

File size: 1.7 KB
Line 
1using HeuristicLab.BioBoost.Representation;
2using HeuristicLab.Common;
3using HeuristicLab.Core;
4using HeuristicLab.Data;
5using HeuristicLab.Parameters;
6using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
7using System;
8
9namespace HeuristicLab.BioBoost.Views {
10
11  [StorableClass]
12  public class RegionDetailData : ParameterizedNamedItem {
13
14    public override bool CanChangeName { get { return false; } }
15
16    #region Parameters
17    public ValueParameter<BioBoostCompoundSolution> SolutionParameter {
18      get { return (ValueParameter<BioBoostCompoundSolution>) Parameters["Solution"]; }
19    }
20    public ValueParameter<StringValue> RegionNameParameter {
21      get { return (ValueParameter<StringValue>) Parameters["RegionName"]; }
22    }
23    #endregion
24
25    #region Parameter Values
26    public BioBoostCompoundSolution Solution {
27      get { return SolutionParameter.Value; }
28      set { SolutionParameter.Value = value;  }
29    }
30    public String RegionName {
31      get { return RegionNameParameter.Value.Value; }
32      set { RegionNameParameter.Value.Value = value; }
33    }
34    #endregion
35
36    [StorableConstructor]
37    protected RegionDetailData(bool isDeserializing) : base(isDeserializing) {}
38    protected RegionDetailData(RegionDetailData orig, Cloner cloner) : base(orig, cloner) {}
39    public RegionDetailData() {
40      Parameters.Add(new ValueParameter<BioBoostCompoundSolution>("Solution", "The solution from which the detail should be obtained."));
41      Parameters.Add(new ValueParameter<StringValue>("RegionName", "The name of the region for which details show be displayed."));
42    }
43    public override IDeepCloneable Clone(Cloner cloner) {
44      return new RegionDetailData(this, cloner);
45    }
46
47  }
48}
Note: See TracBrowser for help on using the repository browser.