// Copyright (C) Stichting Deltares 2018. All rights reserved. // // This file is part of the application DAM - Clients Library. // // DAM - UI is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // All names, logos, and references to "Deltares" are registered trademarks of // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. using System.ComponentModel; using Deltares.Standard.Attributes; using Deltares.Standard.EventPublisher; using Deltares.Standard.Validation; namespace Deltares.Dam.Data { public class SchematizationFactorData { private double schematizationFactorMin = 1.05; private double schematizationFactorMax = 1.25; private double schematizationFactorDelta = 0.025; private double requiredProbability = 70.0; [Label("Minimum schematization factor")] [Description("Minimum value for SchematizationFactor")] [Format("F3")] [Minimum(1.0)] [Maximum(1.3)] public double SchematizationFactorMin { get { return schematizationFactorMin; } set { DataEventPublisher.BeforeChange(this, "SchematizationFactorMin"); schematizationFactorMin = value; DataEventPublisher.AfterChange(this, "SchematizationFactorMin"); } } [Label("Maximum schematization factor")] [Description("Maximum value for SchematizationFactor")] [Format("F3")] [Minimum(1.0)] [Maximum(1.3)] public double SchematizationFactorMax { get { return schematizationFactorMax; } set { DataEventPublisher.BeforeChange(this, "SchematizationFactorMax"); schematizationFactorMax = value; DataEventPublisher.AfterChange(this, "SchematizationFactorMax"); } } [Label("Delta schematization factor")] [Description("Value of increment for SchematizationFactor")] [Format("F3")] [Minimum(0.01)] [Maximum(0.1)] public double SchematizationFactorDelta { get { return schematizationFactorDelta; } set { DataEventPublisher.BeforeChange(this, "SchematizationFactorDelta"); schematizationFactorDelta = value; DataEventPublisher.AfterChange(this, "SchematizationFactorDelta"); } } [Label("Required probability")] [Description("Required minimum probabilty in determination of basic schematization")] [Format("F2")] [Minimum(0.01)] [Maximum(100)] public double RequiredProbability { get { return requiredProbability; } set { DataEventPublisher.BeforeChange(this, "RequiredProbability"); requiredProbability = value; DataEventPublisher.AfterChange(this, "RequiredProbability"); } } } }