Index: Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/AdoptableWithProfileProbabilityFailureMechanismSectionResult.cs
===================================================================
diff -u -r14e49d33e028678a53f848d2c2f33755c32afeff -r9f7be8fc3aefac2d7f28d1a4925f7025aa8a5990
--- Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/AdoptableWithProfileProbabilityFailureMechanismSectionResult.cs (.../AdoptableWithProfileProbabilityFailureMechanismSectionResult.cs) (revision 14e49d33e028678a53f848d2c2f33755c32afeff)
+++ Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/AdoptableWithProfileProbabilityFailureMechanismSectionResult.cs (.../AdoptableWithProfileProbabilityFailureMechanismSectionResult.cs) (revision 9f7be8fc3aefac2d7f28d1a4925f7025aa8a5990)
@@ -48,11 +48,7 @@
///
/// Gets or sets the value of the manual initial failure mechanism result per profile as a probability.
///
- /// Thrown when:
- ///
- /// - is not in range [0,1].
- /// - is greater than the manual initial section probability.
- ///
+ /// Thrown when is not in range [0,1].
public double ManualInitialFailureMechanismResultProfileProbability
{
get => manualInitialFailureMechanismResultProfileProbability;
@@ -71,11 +67,7 @@
///
/// Gets or sets the value of the refined probability per profile.
///
- /// Thrown when:
- ///
- /// - is not in range [0,1].
- /// - is greater than the refined section probability.
- ///
+ /// Thrown when is not in range [0,1].
public double RefinedProfileProbability
{
get => refinedProfileProbability;
Index: Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/FailureMechanismSectionResult.cs
===================================================================
diff -u -rd0c403989e8a54c79a717f9d3fa277313211d393 -r9f7be8fc3aefac2d7f28d1a4925f7025aa8a5990
--- Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/FailureMechanismSectionResult.cs (.../FailureMechanismSectionResult.cs) (revision d0c403989e8a54c79a717f9d3fa277313211d393)
+++ Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/FailureMechanismSectionResult.cs (.../FailureMechanismSectionResult.cs) (revision 9f7be8fc3aefac2d7f28d1a4925f7025aa8a5990)
@@ -62,13 +62,13 @@
///
/// Gets or sets the value of the manual initial failure mechanism result per failure mechanism section as a probability.
///
- /// Thrown when is not in a valid range.
+ /// Thrown when is not in range [0,1].
public double ManualInitialFailureMechanismResultSectionProbability
{
get => manualInitialFailureMechanismResultSectionProbability;
set
{
- ValidateInitialSectionProbability(value);
+ ValidateFailureProbability(value);
manualInitialFailureMechanismResultSectionProbability = value;
}
}
@@ -81,13 +81,13 @@
///
/// Gets or sets the value of the refined probability per failure mechanism section.
///
- /// Thrown when is not in a valid range.
+ /// Thrown when is not in range [0,1].
public double RefinedSectionProbability
{
get => refinedSectionProbability;
set
{
- ValidateRefinedSectionProbability(value);
+ ValidateFailureProbability(value);
refinedSectionProbability = value;
}
}
@@ -96,28 +96,8 @@
/// Gets the encapsulated .
///
public FailureMechanismSection Section { get; }
-
+
///
- /// Validates the initial section probability.
- ///
- /// The probability to validate.
- /// Thrown when is not in a valid range.
- protected virtual void ValidateInitialSectionProbability(double value)
- {
- ValidateFailureProbability(value);
- }
-
- ///
- /// Validates the refined section probability.
- ///
- /// The probability to validate.
- /// Thrown when is not in a valid range.
- protected virtual void ValidateRefinedSectionProbability(double value)
- {
- ValidateFailureProbability(value);
- }
-
- ///
/// Validates the failure probability.
///
/// The probability to validate.
Index: Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/NonAdoptableWithProfileProbabilityFailureMechanismSectionResult.cs
===================================================================
diff -u -r88e9859a054c294d2c441c91d6cd23e435d6cf6d -r9f7be8fc3aefac2d7f28d1a4925f7025aa8a5990
--- Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/NonAdoptableWithProfileProbabilityFailureMechanismSectionResult.cs (.../NonAdoptableWithProfileProbabilityFailureMechanismSectionResult.cs) (revision 88e9859a054c294d2c441c91d6cd23e435d6cf6d)
+++ Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/NonAdoptableWithProfileProbabilityFailureMechanismSectionResult.cs (.../NonAdoptableWithProfileProbabilityFailureMechanismSectionResult.cs) (revision 9f7be8fc3aefac2d7f28d1a4925f7025aa8a5990)
@@ -42,11 +42,7 @@
///
/// Gets or sets the value of the manual initial failure mechanism result per profile as a probability.
///
- /// Thrown when:
- ///
- /// - is not in range [0,1].
- /// - is greater than the manual initial section probability.
- ///
+ /// Thrown when is not in range [0,1].
public double ManualInitialFailureMechanismResultProfileProbability
{
get => manualInitialFailureMechanismResultProfileProbability;
@@ -60,11 +56,7 @@
///
/// Gets or sets the value of the refined probability per profile.
///
- /// Thrown when:
- ///
- /// - is not in range [0,1].
- /// - is greater than the refined section probability.
- ///
+ /// Thrown when is not in range [0,1].
public double RefinedProfileProbability
{
get => refinedProfileProbability;