Index: Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/SectionResult/MacrostabilityOutwardsFailureMechanismSectionResult.cs =================================================================== diff -u -r94b85dc077cddf7535b328b8b3a96a494afac0f6 -r8c0ec57a86cd0d73759f178bee1ed647f62692dc --- Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/SectionResult/MacrostabilityOutwardsFailureMechanismSectionResult.cs (.../MacrostabilityOutwardsFailureMechanismSectionResult.cs) (revision 94b85dc077cddf7535b328b8b3a96a494afac0f6) +++ Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/SectionResult/MacrostabilityOutwardsFailureMechanismSectionResult.cs (.../MacrostabilityOutwardsFailureMechanismSectionResult.cs) (revision 8c0ec57a86cd0d73759f178bee1ed647f62692dc) @@ -19,12 +19,51 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; +using Core.Common.Base.Data; using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Data.Properties; namespace Ringtoets.Integration.Data.StandAlone.SectionResult { - public class MacrostabilityOutwardsFailureMechanismSectionResult : ArbitraryProbabilityFailureMechanismSectionResult + public class MacrostabilityOutwardsFailureMechanismSectionResult : FailureMechanismSectionResult { - public MacrostabilityOutwardsFailureMechanismSectionResult(FailureMechanismSection section) : base(section) {} + private RoundedDouble assessmentLayerTwoA; + + public MacrostabilityOutwardsFailureMechanismSectionResult(FailureMechanismSection section) + : base(section) + { + AssessmentLayerTwoA = (RoundedDouble)1.0; + } + + /// + /// Gets the probability value of assessment layer two a. + /// + /// Thrown when is not in range [0,1]. + public RoundedDouble AssessmentLayerTwoA + { + get + { + return assessmentLayerTwoA; + } + set + { + if (value < 0 || value > 1) + { + throw new ArgumentException(Resources.ArbitraryProbabilityFailureMechanismSectionResult_AssessmentLayerTwoA_Value_needs_to_be_between_0_and_1); + } + assessmentLayerTwoA = value; + } + } + + /// + /// Gets or sets the value of assessment layer three. + /// + public RoundedDouble AssessmentLayerThree { get; set; } + + /// + /// Gets or sets the state of the assessment layer one. + /// + public bool AssessmentLayerOne { get; set; } } }