Fisheye: Tag 8d58c2884c6a1b3d7f277e3ee8f2d01fcf21bf26 refers to a dead (removed) revision in file `Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationContext.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationScenarioContext.cs
===================================================================
diff -u
--- Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationScenarioContext.cs (revision 0)
+++ Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/Probabilistic/ProbabilisticPipingCalculationScenarioContext.cs (revision 8d58c2884c6a1b3d7f277e3ee8f2d01fcf21bf26)
@@ -0,0 +1,87 @@
+// Copyright (C) Stichting Deltares 2019. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using Core.Common.Controls.PresentationObjects;
+using Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Data.Calculation;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.Piping.Data;
+using Riskeer.Piping.Data.Probabilistic;
+using Riskeer.Piping.Data.SoilProfile;
+using Riskeer.Piping.Primitives;
+
+namespace Riskeer.Piping.Forms.PresentationObjects.Probabilistic
+{
+ ///
+ /// Presentation object for all data required to configure an instance of
+ /// in order to prepare it for performing a calculation.
+ ///
+ public class ProbabilisticPipingCalculationScenarioContext : PipingContext,
+ ICalculationContext
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The instance wrapped by this context object.
+ /// The that owns the wrapped scenario.
+ /// The surface lines available within the piping context.
+ /// The stochastic soil models available within the piping context.
+ /// The piping failure mechanism which the piping context belongs to.
+ /// The assessment section which the piping context belongs to.
+ /// Thrown when any input argument is null.
+ public ProbabilisticPipingCalculationScenarioContext(ProbabilisticPipingCalculationScenario calculation,
+ CalculationGroup parent,
+ IEnumerable surfaceLines,
+ IEnumerable stochasticSoilModels,
+ PipingFailureMechanism pipingFailureMechanism,
+ IAssessmentSection assessmentSection)
+ : base(calculation, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection)
+ {
+ if (parent == null)
+ {
+ throw new ArgumentNullException(nameof(parent));
+ }
+
+ Parent = parent;
+ }
+
+ public CalculationGroup Parent { get; }
+
+ public override bool Equals(WrappedObjectContextBase other)
+ {
+ return base.Equals(other)
+ && other is ProbabilisticPipingCalculationScenarioContext context
+ && ReferenceEquals(Parent, context.Parent);
+ }
+
+ public override bool Equals(object obj)
+ {
+ return Equals(obj as ProbabilisticPipingCalculationScenarioContext);
+ }
+
+ public override int GetHashCode()
+ {
+ return base.GetHashCode() ^ Parent.GetHashCode();
+ }
+ }
+}
\ No newline at end of file
Index: Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/SemiProbabilisticPipingCalculationScenarioContext.cs
===================================================================
diff -u -racf81a7c0b090870e29e5a53a6368832cadb6573 -r8d58c2884c6a1b3d7f277e3ee8f2d01fcf21bf26
--- Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/SemiProbabilisticPipingCalculationScenarioContext.cs (.../SemiProbabilisticPipingCalculationScenarioContext.cs) (revision acf81a7c0b090870e29e5a53a6368832cadb6573)
+++ Riskeer/Piping/src/Riskeer.Piping.Forms/PresentationObjects/SemiProbabilistic/SemiProbabilisticPipingCalculationScenarioContext.cs (.../SemiProbabilisticPipingCalculationScenarioContext.cs) (revision 8d58c2884c6a1b3d7f277e3ee8f2d01fcf21bf26)
@@ -33,16 +33,16 @@
namespace Riskeer.Piping.Forms.PresentationObjects.SemiProbabilistic
{
///
- /// Presentation object for all data required to configure an instance of
+ /// Presentation object for all data required to configure an instance of
/// in order to prepare it for performing a calculation.
///
public class SemiProbabilisticPipingCalculationScenarioContext : PipingContext,
ICalculationContext
{
///
- /// Initializes a new instance of the class.
+ /// Creates a new instance of .
///
- /// The instance wrapped by this context object.
+ /// The instance wrapped by this context object.
/// The that owns the wrapped scenario.
/// The surface lines available within the piping context.
/// The stochastic soil models available within the piping context.
@@ -70,8 +70,8 @@
public override bool Equals(WrappedObjectContextBase other)
{
return base.Equals(other)
- && other is SemiProbabilisticPipingCalculationScenarioContext
- && ReferenceEquals(Parent, ((SemiProbabilisticPipingCalculationScenarioContext) other).Parent);
+ && other is SemiProbabilisticPipingCalculationScenarioContext context
+ && ReferenceEquals(Parent, context.Parent);
}
public override bool Equals(object obj)