Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/FaultTreeIllustrationPoint.cs =================================================================== diff -u -r0fd23ff8e68b5f0d18d344d104bc68216cb49b51 -r0748ce1d3449ef7d34ce00c68fa7319ab9d4fbfe --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/FaultTreeIllustrationPoint.cs (.../FaultTreeIllustrationPoint.cs) (revision 0fd23ff8e68b5f0d18d344d104bc68216cb49b51) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/FaultTreeIllustrationPoint.cs (.../FaultTreeIllustrationPoint.cs) (revision 0748ce1d3449ef7d34ce00c68fa7319ab9d4fbfe) @@ -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 @@ -30,24 +31,44 @@ public class FaultTreeIllustrationPoint : IIllustrationPoint { /// - /// Gets or sets the name. + /// Creates a new instance of . /// - public string Name { get; set; } + /// The name of the fault tree illustration point + /// The combined beta values of its children. + /// The way in which the sub illustration points are combined. + /// Thrown when is null. + public FaultTreeIllustrationPoint(string name, double beta, CombinationType combinationType) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + Beta = beta; + CombinationType = combinationType; + Name = name; + Stochasts = new List(); + } + /// + /// Gets the name. + /// + public string Name { get; } + + /// /// Gets the combined stochasts of its children. /// - public ICollection Stochasts { get; } = new List(); + public ICollection Stochasts { get; } /// /// Gets the combined beta values of its children. /// - public double Beta { get; set; } = double.NaN; + public double Beta { get; } /// - /// The way in which the sub illustration points are combined to + /// Gets the way in which the sub illustration points are combined to /// obtain a result for the fault tree illustration point. /// - public CombinationType CombinationType { get; set; } + public CombinationType CombinationType { get; } } } \ No newline at end of file