Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanismSectionResult.cs
===================================================================
diff -u -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 -rd9c981f7b4c64d16e55fca0cb51eb9f4c9aec28f
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanismSectionResult.cs (.../HeightStructuresFailureMechanismSectionResult.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanismSectionResult.cs (.../HeightStructuresFailureMechanismSectionResult.cs) (revision d9c981f7b4c64d16e55fca0cb51eb9f4c9aec28f)
@@ -30,17 +30,12 @@
///
public class HeightStructuresFailureMechanismSectionResult : FailureMechanismSectionResult
{
- private readonly double assessmentLayerTwoA;
-
///
/// Creates a new instance of .
///
/// The to get the result from.
/// Thrown when is null.
- public HeightStructuresFailureMechanismSectionResult(FailureMechanismSection section) : base(section)
- {
- assessmentLayerTwoA = double.NaN;
- }
+ public HeightStructuresFailureMechanismSectionResult(FailureMechanismSection section) : base(section) {}
///
/// Gets the value of assessment layer two a.
@@ -49,7 +44,11 @@
{
get
{
- return assessmentLayerTwoA;
+ if (Calculation == null || !Calculation.HasOutput)
+ {
+ return double.NaN;
+ }
+ return Calculation.Output.Probability;
}
}