Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/SubmechanismIllustrationPoint.cs
===================================================================
diff -u -r0fd23ff8e68b5f0d18d344d104bc68216cb49b51 -r5f1c70d7eea83fca2ef6305a87a8098820ded1d9
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/SubmechanismIllustrationPoint.cs (.../SubmechanismIllustrationPoint.cs) (revision 0fd23ff8e68b5f0d18d344d104bc68216cb49b51)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/SubmechanismIllustrationPoint.cs (.../SubmechanismIllustrationPoint.cs) (revision 5f1c70d7eea83fca2ef6305a87a8098820ded1d9)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using System.Collections.Generic;
namespace Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints
@@ -29,23 +30,44 @@
public class SubMechanismIllustrationPoint : IIllustrationPoint
{
///
+ /// Creates a new instance of .
+ ///
+ /// The name of the illustration point.
+ /// The beta value of the illustration point
+ /// Thrown when
+ /// is null.
+ public SubMechanismIllustrationPoint(string name, double beta)
+ {
+ if (name == null)
+ {
+ throw new ArgumentNullException(nameof(name));
+ }
+
+ Name = name;
+ Beta = beta;
+ Stochasts = new List();
+ Results = new List();
+ }
+
+
+ ///
/// Gets or sets the name.
///
public string Name { get; set; }
///
/// Gets the stochasts that were realized.
///
- public ICollection Stochasts { get; } = new List();
+ public ICollection Stochasts { get; }
///
/// Gets the beta values that were realized.
///
- public double Beta { get; set; } = double.NaN;
+ public double Beta { get; set; }
///
/// Gets the output variables.
///
- public ICollection Results { get; } = new List();
+ public ICollection Results { get; }
}
}
\ No newline at end of file