[13072] | 1 | using HeuristicLab.BioBoost.Representation;
|
---|
| 2 | using HeuristicLab.Common;
|
---|
| 3 | using HeuristicLab.Core;
|
---|
| 4 | using HeuristicLab.Data;
|
---|
| 5 | using HeuristicLab.Parameters;
|
---|
| 6 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
| 7 | using System;
|
---|
| 8 |
|
---|
| 9 | namespace 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 | }
|
---|