Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/Stochast.cs =================================================================== diff -u -r0fd23ff8e68b5f0d18d344d104bc68216cb49b51 -rbe6a13ac1251d94b796612190233ac7a380b328e --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/Stochast.cs (.../Stochast.cs) (revision 0fd23ff8e68b5f0d18d344d104bc68216cb49b51) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/Stochast.cs (.../Stochast.cs) (revision be6a13ac1251d94b796612190233ac7a380b328e) @@ -19,6 +19,8 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; + namespace Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints { /// @@ -27,18 +29,37 @@ public class Stochast { /// - /// Gets or sets the name. + /// Creates an instance of . /// - public string Name { get; set; } + /// The name. + /// The duration. + /// The alpha value. + /// Thrown when + /// is null. + public Stochast(string name, double duration, double alpha) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + Name = name; + Duration = duration; + Alpha = alpha; + } /// - /// Gets or sets the duration. + /// Gets the name. /// - public double Duration { get; set; } = double.NaN; + public string Name { get; } /// - /// Gets or sets the alpha value. + /// Gets the duration. /// - public double Alpha { get; set; } = double.NaN; + public double Duration { get; } + + /// + /// Gets the alpha value. + /// + public double Alpha { get; } } } \ No newline at end of file