Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/SubmechanismIllustrationPoint.cs
===================================================================
diff -u -r5f1c70d7eea83fca2ef6305a87a8098820ded1d9 -ra6da010d4a68dbf5b4571ea39850ee92f62d2496
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/SubmechanismIllustrationPoint.cs (.../SubmechanismIllustrationPoint.cs) (revision 5f1c70d7eea83fca2ef6305a87a8098820ded1d9)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/SubmechanismIllustrationPoint.cs (.../SubmechanismIllustrationPoint.cs) (revision a6da010d4a68dbf5b4571ea39850ee92f62d2496)
@@ -33,20 +33,36 @@
/// Creates a new instance of .
///
/// The name of the illustration point.
+ /// A collection of
+ /// that are associated with this illustration point.
+ /// A collection of
+ /// that are associated with this
+ /// illustration point.
/// The beta value of the illustration point
/// Thrown when
/// is null.
- public SubMechanismIllustrationPoint(string name, double beta)
+ public SubMechanismIllustrationPoint(string name,
+ IEnumerable stochasts,
+ IEnumerable illustrationPointResults,
+ double beta)
{
if (name == null)
{
throw new ArgumentNullException(nameof(name));
}
+ if (stochasts == null)
+ {
+ throw new ArgumentNullException(nameof(stochasts));
+ }
+ if (illustrationPointResults == null)
+ {
+ throw new ArgumentNullException(nameof(illustrationPointResults));
+ }
Name = name;
Beta = beta;
- Stochasts = new List();
- Results = new List();
+ Stochasts = stochasts;
+ Results = illustrationPointResults;
}
@@ -58,7 +74,7 @@
///
/// Gets the stochasts that were realized.
///
- public ICollection Stochasts { get; }
+ public IEnumerable Stochasts { get; }
///
/// Gets the beta values that were realized.
@@ -68,6 +84,6 @@
///
/// Gets the output variables.
///
- public ICollection Results { get; }
+ public IEnumerable Results { get; }
}
}
\ No newline at end of file