Index: Riskeer/Storage/src/Riskeer.Storage.Core/Create/FailurePathCreateExtensions.cs
===================================================================
diff -u -rc5219e29c90757003a649a2b39d0e18fcbad1782 -r3234a1e938a7c8046e8d8694eaea1cf7456206e6
--- Riskeer/Storage/src/Riskeer.Storage.Core/Create/FailurePathCreateExtensions.cs (.../FailurePathCreateExtensions.cs) (revision c5219e29c90757003a649a2b39d0e18fcbad1782)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/Create/FailurePathCreateExtensions.cs (.../FailurePathCreateExtensions.cs) (revision 3234a1e938a7c8046e8d8694eaea1cf7456206e6)
@@ -29,7 +29,7 @@
namespace Riskeer.Storage.Core.Create
{
///
- /// Extension methods for related to creating a .
+ /// Extension methods for related to creating a .
///
internal static class FailurePathCreateExtensions
{
@@ -114,7 +114,7 @@
}
private static T Create(this IFailureMechanism failurePath, PersistenceRegistry registry)
- where T : IFailurePathEntity, new()
+ where T : IFailureMechanismEntity, new()
{
FailurePathAssemblyResult assemblyResult = failurePath.AssemblyResult;
var entity = new T
@@ -135,7 +135,7 @@
private static void AddEntitiesForFailureMechanismSections(this IFailureMechanism specificFailurePath,
PersistenceRegistry registry,
- IFailurePathEntity entity)
+ IFailureMechanismEntity entity)
{
foreach (FailureMechanismSection failureMechanismSection in specificFailurePath.Sections)
{
Index: Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IFailureMechanismEntity.cs
===================================================================
diff -u
--- Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IFailureMechanismEntity.cs (revision 0)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IFailureMechanismEntity.cs (revision 3234a1e938a7c8046e8d8694eaea1cf7456206e6)
@@ -0,0 +1,71 @@
+// Copyright (C) Stichting Deltares 2021. 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.Collections.Generic;
+
+namespace Riskeer.Storage.Core.DbContext
+{
+ ///
+ /// Interface for an entity that contains failure mechanism information.
+ ///
+ public interface IFailureMechanismEntity
+ {
+ ///
+ /// Gets or sets an indicator whether the failure path is part of the assembly.
+ ///
+ byte InAssembly { get; set; }
+
+ ///
+ /// Gets or sets the source path of the imported collection of failure mechanism sections.
+ ///
+ string FailureMechanismSectionCollectionSourcePath { get; set; }
+
+ ///
+ /// Gets or sets the comments associated with the input when it is part of the assembly.
+ ///
+ string InAssemblyInputComments { get; set; }
+
+ ///
+ /// Gets or sets the comments associated with the output when it is part of the assembly.
+ ///
+ string InAssemblyOutputComments { get; set; }
+
+ ///
+ /// Gets or sets the comments associated when the failure mechanism is set to not be part of the assembly.
+ ///
+ string NotInAssemblyComments { get; set; }
+
+ ///
+ /// Gets or sets the collection of .
+ ///
+ ICollection FailureMechanismSectionEntities { get; set; }
+
+ ///
+ /// Gets or sets the failure mechanism assembly probability result type.
+ ///
+ byte FailurePathAssemblyProbabilityResultType { get; set; }
+
+ ///
+ /// Gets or sets the manual failure mechanism assembly probability.
+ ///
+ double? ManualFailurePathAssemblyProbability { get; set; }
+ }
+}
\ No newline at end of file
Fisheye: Tag 3234a1e938a7c8046e8d8694eaea1cf7456206e6 refers to a dead (removed) revision in file `Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IFailurePathEntity.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialFailureMechanismEntity.cs
===================================================================
diff -u -rc75d8f1dc12bfd0f3fb66a88f19742f6b59cd060 -r3234a1e938a7c8046e8d8694eaea1cf7456206e6
--- Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialFailureMechanismEntity.cs (.../PartialFailureMechanismEntity.cs) (revision c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialFailureMechanismEntity.cs (.../PartialFailureMechanismEntity.cs) (revision 3234a1e938a7c8046e8d8694eaea1cf7456206e6)
@@ -23,7 +23,7 @@
{
///
/// Partial implementation of that implements a
- /// .
+ /// .
///
- public partial class FailureMechanismEntity : IFailurePathEntity {}
+ public partial class FailureMechanismEntity : IFailureMechanismEntity {}
}
\ No newline at end of file
Index: Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialSpecificFailurePathEntity.cs
===================================================================
diff -u -rc75d8f1dc12bfd0f3fb66a88f19742f6b59cd060 -r3234a1e938a7c8046e8d8694eaea1cf7456206e6
--- Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialSpecificFailurePathEntity.cs (.../PartialSpecificFailurePathEntity.cs) (revision c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialSpecificFailurePathEntity.cs (.../PartialSpecificFailurePathEntity.cs) (revision 3234a1e938a7c8046e8d8694eaea1cf7456206e6)
@@ -23,7 +23,7 @@
{
///
/// Partial implementation of that implements a
- /// .
+ /// .
///
- public partial class SpecificFailurePathEntity : IFailurePathEntity {}
+ public partial class SpecificFailurePathEntity : IFailureMechanismEntity {}
}
\ No newline at end of file
Index: Riskeer/Storage/src/Riskeer.Storage.Core/Read/FailurePathEntityReadExtensions.cs
===================================================================
diff -u -rc5219e29c90757003a649a2b39d0e18fcbad1782 -r3234a1e938a7c8046e8d8694eaea1cf7456206e6
--- Riskeer/Storage/src/Riskeer.Storage.Core/Read/FailurePathEntityReadExtensions.cs (.../FailurePathEntityReadExtensions.cs) (revision c5219e29c90757003a649a2b39d0e18fcbad1782)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/Read/FailurePathEntityReadExtensions.cs (.../FailurePathEntityReadExtensions.cs) (revision 3234a1e938a7c8046e8d8694eaea1cf7456206e6)
@@ -30,7 +30,7 @@
{
///
/// This class defines extension methods for read operations for an implementation based on the
- ///
+ ///
///
internal static class FailurePathEntityReadExtensions
{
@@ -42,7 +42,7 @@
/// The object keeping track of read operations.
/// Thrown when any parameter is null.
internal static void ReadCommonFailurePathProperties(this T entity, IFailureMechanism failurePath, ReadConversionCollector collector)
- where T : IFailurePathEntity
+ where T : IFailureMechanismEntity
{
if (entity == null)
{
@@ -99,7 +99,7 @@
}
///
- /// Reads the and uses the information to create a .
+ /// Reads the and uses the information to create a .
///
/// The to create a with.
/// The object keeping track of read operations.
@@ -132,7 +132,7 @@
return specificFailurePath;
}
- private static void ReadAssemblyResult(IFailurePathEntity entity, IFailureMechanism failurePath)
+ private static void ReadAssemblyResult(IFailureMechanismEntity entity, IFailureMechanism failurePath)
{
FailurePathAssemblyResult assemblyResult = failurePath.AssemblyResult;
assemblyResult.ProbabilityResultType = (FailurePathAssemblyProbabilityResultType) entity.FailurePathAssemblyProbabilityResultType;
@@ -142,7 +142,7 @@
}
}
- private static void ReadFailureMechanismSections(this IFailurePathEntity entity,
+ private static void ReadFailureMechanismSections(this IFailureMechanismEntity entity,
IFailureMechanism specificFailurePath,
ReadConversionCollector collector)
{
@@ -156,7 +156,7 @@
}
}
- private static void ReadNonAdoptableWithProfileProbabilityFailureMechanismSectionResults(this IFailurePathEntity entity,
+ private static void ReadNonAdoptableWithProfileProbabilityFailureMechanismSectionResults(this IFailureMechanismEntity entity,
SpecificFailurePath specificFailurePath,
ReadConversionCollector collector)
{
Index: Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailurePathEntityReadExtensionsTest.cs
===================================================================
diff -u -rc5219e29c90757003a649a2b39d0e18fcbad1782 -r3234a1e938a7c8046e8d8694eaea1cf7456206e6
--- Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailurePathEntityReadExtensionsTest.cs (.../FailurePathEntityReadExtensionsTest.cs) (revision c5219e29c90757003a649a2b39d0e18fcbad1782)
+++ Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailurePathEntityReadExtensionsTest.cs (.../FailurePathEntityReadExtensionsTest.cs) (revision 3234a1e938a7c8046e8d8694eaea1cf7456206e6)
@@ -444,7 +444,7 @@
specificFailurePath.SectionResults.Single());
}
- private static void AssertCommonFailurePathProperties(IFailurePathEntity entity, IFailureMechanism failurePath)
+ private static void AssertCommonFailurePathProperties(IFailureMechanismEntity entity, IFailureMechanism failurePath)
{
var inAssembly = Convert.ToBoolean(entity.InAssembly);