Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Utils/ClosingStructuresHelper.cs
===================================================================
diff -u -r73597729ce18d3ee00d8036bca8341e9c12f2953 -rab20c4eb4ca81bd3845d50210d2bdb301177af6a
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Utils/ClosingStructuresHelper.cs (.../ClosingStructuresHelper.cs) (revision 73597729ce18d3ee00d8036bca8341e9c12f2953)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Utils/ClosingStructuresHelper.cs (.../ClosingStructuresHelper.cs) (revision ab20c4eb4ca81bd3845d50210d2bdb301177af6a)
@@ -26,17 +26,18 @@
using Ringtoets.Common.Data.FailureMechanism;
using Ringtoets.Common.Utils;
using Ringtoets.ClosingStructures.Data;
+using Ringtoets.Common.Data.Structures;
namespace Ringtoets.ClosingStructures.Utils
{
///
/// Class holds helper methods to match objects
- /// with objects.
+ /// with objects.
///
public static class ClosingStructuresHelper
{
///
- /// Determine which objects are available for a
+ /// Determine which objects are available for a
/// .
///
/// The objects.
@@ -49,23 +50,23 @@
/// Thrown when an element in is
/// null.
public static Dictionary> CollectCalculationsPerSection(IEnumerable sections,
- IEnumerable calculations)
+ IEnumerable> calculations)
{
return AssignUnassignCalculations.CollectCalculationsPerSection(sections, AsCalculationsWithLocations(calculations));
}
///
- /// Determine which geometrically contains the .
+ /// Determine which geometrically contains the .
///
/// The objects
/// whose are considered.
- /// The .
+ /// The .
/// The containing , or null if none found.
/// Thrown when is null
/// Thrown when an element in is null.
///
public static FailureMechanismSection FailureMechanismSectionForCalculation(IEnumerable sections,
- ClosingStructuresCalculation calculation)
+ StructuresCalculation calculation)
{
CalculationWithLocation calculationWithLocation = AsCalculationWithLocation(calculation);
if (calculationWithLocation != null)
@@ -80,13 +81,13 @@
/// assigned, or should have the assigned.
///
/// The of to iterate while
- /// possibly updating the assigned to it.
- /// The which has a location that has been updated.
+ /// possibly updating the assigned to it.
+ /// The which has a location that has been updated.
/// Thrown when is null
/// Thrown when element in is
/// null.
public static void Update(IEnumerable sectionResults,
- ClosingStructuresCalculation calculation)
+ StructuresCalculation calculation)
{
ValidateSectionResults(sectionResults);
@@ -103,16 +104,16 @@
///
/// The of to iterate while
/// removing the reference to the if present.
- /// The which has a location that has been updated.
- /// The of that were left after removing
+ /// The which has a location that has been updated.
+ /// The of that were left after removing
/// .
/// Thrown when any input parameter is null or when an element
/// in is null.
/// Thrown when element in is
/// null.
public static void Delete(IEnumerable sectionResults,
- ClosingStructuresCalculation calculation,
- IEnumerable calculations)
+ StructuresCalculation calculation,
+ IEnumerable> calculations)
{
ValidateSectionResults(sectionResults);
@@ -126,11 +127,11 @@
/// Transforms the into and filter out the calculations
/// for which a could not be made.
///
- /// The collection to transform.
+ /// The collection to transform.
/// A collection of .
/// Thrown when is null or when
/// an element in is null.
- private static IEnumerable AsCalculationsWithLocations(IEnumerable calculations)
+ private static IEnumerable AsCalculationsWithLocations(IEnumerable> calculations)
{
if (calculations == null)
{
@@ -151,7 +152,7 @@
}
}
- private static CalculationWithLocation AsCalculationWithLocation(ClosingStructuresCalculation calculation)
+ private static CalculationWithLocation AsCalculationWithLocation(StructuresCalculation calculation)
{
if (calculation == null)
{
@@ -169,7 +170,7 @@
return new SectionResultWithCalculationAssignment(
failureMechanismSectionResult,
result => ((ClosingStructuresFailureMechanismSectionResult)result).Calculation,
- (result, calculation) => ((ClosingStructuresFailureMechanismSectionResult)result).Calculation = (ClosingStructuresCalculation)calculation);
+ (result, calculation) => ((ClosingStructuresFailureMechanismSectionResult)result).Calculation = (StructuresCalculation)calculation);
}
}
}
\ No newline at end of file