Index: Ringtoets/Common/src/Ringtoets.Common.Data/IllustrationPoints/SubMechanismIllustrationPoint.cs
===================================================================
diff -u -rb7988d7a5616c8c305dac4419a15d5eda07e88bc -r1f8455066f5be4241f587c34283f1d7f8a85f78e
--- Ringtoets/Common/src/Ringtoets.Common.Data/IllustrationPoints/SubMechanismIllustrationPoint.cs (.../SubMechanismIllustrationPoint.cs) (revision b7988d7a5616c8c305dac4419a15d5eda07e88bc)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/IllustrationPoints/SubMechanismIllustrationPoint.cs (.../SubMechanismIllustrationPoint.cs) (revision 1f8455066f5be4241f587c34283f1d7f8a85f78e)
@@ -21,22 +21,21 @@
using System;
using System.Collections.Generic;
-using Core.Common.Base.Data;
namespace Ringtoets.Common.Data.IllustrationPoints
{
///
/// Illustration point which contains the results.
///
- public class SubMechanismIllustrationPoint
+ public class SubMechanismIllustrationPoint : IllustrationPointBase
{
///
/// Creates a new instance of .
///
/// The name of the illustration point result.
+ /// The beta value that was realized.
/// The stochasts for the sub mechanism illustration point.
/// The output variables.
- /// The beta value that was realized.
/// Thrown when any of:
///
///
@@ -45,14 +44,11 @@
///
/// is null.
public SubMechanismIllustrationPoint(string name,
+ double beta,
IEnumerable stochasts,
- IEnumerable illustrationPointResults,
- double beta)
+ IEnumerable illustrationPointResults)
+ : base(name, beta)
{
- if (name == null)
- {
- throw new ArgumentNullException(nameof(name));
- }
if (stochasts == null)
{
throw new ArgumentNullException(nameof(stochasts));
@@ -62,24 +58,11 @@
throw new ArgumentNullException(nameof(illustrationPointResults));
}
- Name = name;
- Beta = new RoundedDouble(5, beta);
-
Stochasts = stochasts;
IllustrationPointResults = illustrationPointResults;
}
///
- /// Gets the name of the illustration point.
- ///
- public string Name { get; }
-
- ///
- /// Gets the beta value that was realized.
- ///
- public RoundedDouble Beta { get; }
-
- ///
/// Gets the stochasts that belong to this submechanism illustration point.
///
public IEnumerable Stochasts { get; }