Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingProbabilityAssessmentInput.cs =================================================================== diff -u -rfcc734ebbc1e5c6c02ae2dae2a184fdcb9aa4d1b -rc09b65e09c7af06495433e73530b900c46414392 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingProbabilityAssessmentInput.cs (.../PipingProbabilityAssessmentInput.cs) (revision fcc734ebbc1e5c6c02ae2dae2a184fdcb9aa4d1b) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingProbabilityAssessmentInput.cs (.../PipingProbabilityAssessmentInput.cs) (revision c09b65e09c7af06495433e73530b900c46414392) @@ -19,28 +19,48 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; +using Core.Common.Base.Properties; + namespace Ringtoets.Piping.Data { /// /// This class holds parameters which influence the probability estimate for a piping assessment. /// public class PipingProbabilityAssessmentInput { + private double a; + /// /// Creates a new instance of . /// public PipingProbabilityAssessmentInput() { - A = 1.0; - B = 350.0; + A = 0.4; + B = 300.0; SectionLength = double.NaN; } /// /// Gets 'a' parameter used to factor in the 'length effect' when determining the /// maximum tolerated probability of failure. /// - public double A { get; private set; } + public double A + { + get + { + return a; + } + set + { + if (!(value >= 0) || !(value <= 1)) + { + throw new ArgumentException(Resources.PipingProbabilityAssessmentInput_A_Value_must_be_between_zero_and_one); + } + + a = value; + } + } /// /// Gets 'b' parameter used to factor in the 'length effect' when determining the