Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/GeneralResult.cs =================================================================== diff -u -r0fd23ff8e68b5f0d18d344d104bc68216cb49b51 -r66a40e718fdf95596f8897d81af4a1a0144cfae4 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/GeneralResult.cs (.../GeneralResult.cs) (revision 0fd23ff8e68b5f0d18d344d104bc68216cb49b51) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/GeneralResult.cs (.../GeneralResult.cs) (revision 66a40e718fdf95596f8897d81af4a1a0144cfae4) @@ -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,24 +30,56 @@ public class GeneralResult { /// - /// Gets or sets the general beta value. + /// Creates a new instance of . /// - public double Beta { get; set; } = double.NaN; + /// The general beta value. + /// The governing wind direction. + /// The general alpha stochast values. + /// The tree of illustration points for each wind direction + /// and closing situation. + /// Thrown when , + /// , or is null. + public GeneralResult(double beta, WindDirection governingWindDirection, + IEnumerable stochasts, + Dictionary illustrationPoints) + { + if (governingWindDirection == null) + { + throw new ArgumentNullException(nameof(governingWindDirection)); + } + if (stochasts == null) + { + throw new ArgumentNullException(nameof(stochasts)); + } + if (illustrationPoints == null) + { + throw new ArgumentNullException(nameof(illustrationPoints)); + } + Beta = beta; + GoverningWindDirection = governingWindDirection; + Stochasts = stochasts; + IllustrationPoints = illustrationPoints; + } + /// - /// Gets or sets the governing wind direction. + /// Gets the general beta value. /// - public WindDirection GoverningWind { get; set; } + public double Beta { get; } /// - /// Gets or sets the general alpha values. + /// Gets the governing wind direction. /// - public IEnumerable Stochasts { get; set; } + public WindDirection GoverningWindDirection { get; } /// - /// Gets or sets the tree of illustration points for each - /// wind direction and closing situation. + /// Gets the general alpha values. /// - public Dictionary IllustrationPoints { get; set; } + public IEnumerable Stochasts { get; } + + /// + /// Gets the tree of illustration points for each wind direction and closing situation. + /// + public Dictionary IllustrationPoints { get; } } } \ No newline at end of file