Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/MacroStabilityInwards/MacroStabilityInwardsCalculationScenarioCreateExtensions.cs =================================================================== diff -u -rde4ebfc961abbbcd502b9932f52c21e315a631c3 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/MacroStabilityInwards/MacroStabilityInwardsCalculationScenarioCreateExtensions.cs (.../MacroStabilityInwardsCalculationScenarioCreateExtensions.cs) (revision de4ebfc961abbbcd502b9932f52c21e315a631c3) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/MacroStabilityInwards/MacroStabilityInwardsCalculationScenarioCreateExtensions.cs (.../MacroStabilityInwardsCalculationScenarioCreateExtensions.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -23,6 +23,7 @@ using Application.Ringtoets.Storage.DbContext; using Core.Common.Utils.Extensions; using Ringtoets.MacroStabilityInwards.Data; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Application.Ringtoets.Storage.Create.MacroStabilityInwards { @@ -139,7 +140,7 @@ } private static void SetLocationInputDailyParametersToEntity(MacroStabilityInwardsCalculationEntity entity, - MacroStabilityInwardsLocationInputDaily inputParameters) + IMacroStabilityInwardsLocationInputDaily inputParameters) { entity.LocationInputDailyWaterLevelPolder = inputParameters.WaterLevelPolder.ToNaNAsNull(); entity.LocationInputDailyUseDefaultOffsets = Convert.ToByte(inputParameters.UseDefaultOffsets); @@ -151,7 +152,7 @@ } private static void SetLocationInputExtremeParametersToEntity(MacroStabilityInwardsCalculationEntity entity, - MacroStabilityInwardsLocationInputExtreme inputParameters) + IMacroStabilityInwardsLocationInputExtreme inputParameters) { entity.LocationInputExtremeWaterLevelPolder = inputParameters.WaterLevelPolder.ToNaNAsNull(); entity.LocationInputExtremeUseDefaultOffsets = Convert.ToByte(inputParameters.UseDefaultOffsets); Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityReadExtensions.cs =================================================================== diff -u -r33d8b4610b6bc2979e35aa3e23b881a9933e40b5 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityReadExtensions.cs (.../MacroStabilityInwardsCalculationEntityReadExtensions.cs) (revision 33d8b4610b6bc2979e35aa3e23b881a9933e40b5) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityReadExtensions.cs (.../MacroStabilityInwardsCalculationEntityReadExtensions.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -171,7 +171,7 @@ } } - private static void SetLocationInputDailyToInput(MacroStabilityInwardsLocationInputDaily inputDaily, + private static void SetLocationInputDailyToInput(IMacroStabilityInwardsLocationInputDaily inputDaily, MacroStabilityInwardsCalculationEntity entity) { inputDaily.WaterLevelPolder = (RoundedDouble) entity.LocationInputDailyWaterLevelPolder.ToNullAsNaN(); @@ -183,7 +183,7 @@ inputDaily.PhreaticLineOffsetBelowDikeToeAtPolder = (RoundedDouble) entity.LocationInputDailyPhreaticLineOffsetDikeToeAtPolder.ToNullAsNaN(); } - private static void SetLocationInputExtremeToInput(MacroStabilityInwardsLocationInputExtreme inputExtreme, + private static void SetLocationInputExtremeToInput(IMacroStabilityInwardsLocationInputExtreme inputExtreme, MacroStabilityInwardsCalculationEntity entity) { inputExtreme.WaterLevelPolder = (RoundedDouble) entity.LocationInputExtremeWaterLevelPolder.ToNullAsNaN(); Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsSoilLayerOneDEntityReadExtensions.cs =================================================================== diff -u -r69d647795daacbf48e17d0cf3a02a21865ab4ae6 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsSoilLayerOneDEntityReadExtensions.cs (.../MacroStabilityInwardsSoilLayerOneDEntityReadExtensions.cs) (revision 69d647795daacbf48e17d0cf3a02a21865ab4ae6) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsSoilLayerOneDEntityReadExtensions.cs (.../MacroStabilityInwardsSoilLayerOneDEntityReadExtensions.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -23,8 +23,8 @@ using System.Drawing; using Application.Ringtoets.Storage.DbContext; using Core.Common.Base.Data; -using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Application.Ringtoets.Storage.Read.MacroStabilityInwards { Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsSoilLayerTwoDEntityReadExtensions.cs =================================================================== diff -u -r69d647795daacbf48e17d0cf3a02a21865ab4ae6 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsSoilLayerTwoDEntityReadExtensions.cs (.../MacroStabilityInwardsSoilLayerTwoDEntityReadExtensions.cs) (revision 69d647795daacbf48e17d0cf3a02a21865ab4ae6) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/MacroStabilityInwards/MacroStabilityInwardsSoilLayerTwoDEntityReadExtensions.cs (.../MacroStabilityInwardsSoilLayerTwoDEntityReadExtensions.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -24,8 +24,8 @@ using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.Serializers; using Core.Common.Base.Data; -using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Application.Ringtoets.Storage.Read.MacroStabilityInwards { Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer1DCreateExtensionsTest.cs =================================================================== diff -u -r69d647795daacbf48e17d0cf3a02a21865ab4ae6 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer1DCreateExtensionsTest.cs (.../MacroStabilityInwardsSoilLayer1DCreateExtensionsTest.cs) (revision 69d647795daacbf48e17d0cf3a02a21865ab4ae6) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer1DCreateExtensionsTest.cs (.../MacroStabilityInwardsSoilLayer1DCreateExtensionsTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -26,8 +26,8 @@ using Core.Common.Base.Data; using Core.Common.TestUtil; using NUnit.Framework; -using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Application.Ringtoets.Storage.Test.Create.MacroStabilityInwards { Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs =================================================================== diff -u -r69d647795daacbf48e17d0cf3a02a21865ab4ae6 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs (.../MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs) (revision 69d647795daacbf48e17d0cf3a02a21865ab4ae6) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs (.../MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -29,8 +29,8 @@ using Core.Common.Base.Geometry; using Core.Common.TestUtil; using NUnit.Framework; -using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Application.Ringtoets.Storage.Test.Create.MacroStabilityInwards { Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityTestHelper.cs =================================================================== diff -u -rde4ebfc961abbbcd502b9932f52c21e315a631c3 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityTestHelper.cs (.../MacroStabilityInwardsCalculationEntityTestHelper.cs) (revision de4ebfc961abbbcd502b9932f52c21e315a631c3) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityTestHelper.cs (.../MacroStabilityInwardsCalculationEntityTestHelper.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -25,6 +25,7 @@ using NUnit.Framework; using Ringtoets.Common.Data.TestUtil; using Ringtoets.MacroStabilityInwards.Data; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Application.Ringtoets.Storage.TestUtil.MacroStabilityInwards { @@ -126,8 +127,8 @@ Assert.AreEqual(rightGrid.NumberOfVerticalPoints, entity.RightGridNrOfVerticalPoints); } - private static void AssertLocationInputs(MacroStabilityInwardsLocationInputExtreme locationInputExtreme, - MacroStabilityInwardsLocationInputDaily locationInputDaily, + private static void AssertLocationInputs(IMacroStabilityInwardsLocationInputExtreme locationInputExtreme, + IMacroStabilityInwardsLocationInputDaily locationInputDaily, MacroStabilityInwardsCalculationEntity entity) { AssertAreEqual(locationInputExtreme.WaterLevelPolder, entity.LocationInputExtremeWaterLevelPolder); Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs =================================================================== diff -u -r7438751456088ede76933c01627857c4e11681c9 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs (.../MacroStabilityInwardsInput.cs) (revision 7438751456088ede76933c01627857c4e11681c9) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs (.../MacroStabilityInwardsInput.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -34,7 +34,7 @@ /// Class that holds all macro stability inwards calculation specific input parameters, i.e. the values /// that can differ across various calculations. /// - public class MacroStabilityInwardsInput : Observable, ICalculationInput + public class MacroStabilityInwardsInput : Observable, ICalculationInput, IMacroStabilityInwardsWaternetInput { private static readonly Range tangentLineNumberValidityRange = new Range(1, 50); @@ -200,10 +200,7 @@ } } - /// - /// Gets the profile which contains a 2 dimensional definition of soil layers with properties. - /// - public MacroStabilityInwardsSoilProfileUnderSurfaceLine SoilProfileUnderSurfaceLine { get; private set; } + public IMacroStabilityInwardsSoilProfileUnderSurfaceLine SoilProfileUnderSurfaceLine { get; private set; } /// /// Gets the derived waternet calculation output under extreme circumstances. @@ -561,15 +558,9 @@ } } - /// - /// Gets the locations input values for extreme conditions. - /// - public MacroStabilityInwardsLocationInputExtreme LocationInputExtreme { get; } + public IMacroStabilityInwardsLocationInputExtreme LocationInputExtreme { get; } - /// - /// Gets the locations input values for daily conditions. - /// - public MacroStabilityInwardsLocationInputDaily LocationInputDaily { get; } + public IMacroStabilityInwardsLocationInputDaily LocationInputDaily { get; } /// /// Gets or sets whether zones should be created. Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInput.cs =================================================================== diff -u -r18df5753718d7753b00cc3d40fde1a90a99b87ed -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInput.cs (.../MacroStabilityInwardsLocationInput.cs) (revision 18df5753718d7753b00cc3d40fde1a90a99b87ed) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInput.cs (.../MacroStabilityInwardsLocationInput.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -20,14 +20,15 @@ // All rights reserved. using Core.Common.Base.Data; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data { /// /// Base class that holds all locations input for either daily or /// extreme conditions for the macro stability inwards calculation. /// - public abstract class MacroStabilityInwardsLocationInput + public abstract class MacroStabilityInwardsLocationInput : IMacroStabilityInwardsLocationInput { private RoundedDouble waterLevelPolder; private RoundedDouble phreaticLineOffsetBelowDikeTopAtRiver; @@ -50,10 +51,6 @@ phreaticLineOffsetBelowDikeToeAtPolder = new RoundedDouble(2, double.NaN); } - /// - /// Gets or sets the polder water level. - /// [m+NAP] - /// public RoundedDouble WaterLevelPolder { get @@ -66,15 +63,8 @@ } } - /// - /// Gets or sets whether the default offsets should be used. - /// public bool UseDefaultOffsets { get; set; } - /// - /// Gets or sets the offset of the phreatic line below dike top at river. - /// [m] - /// public RoundedDouble PhreaticLineOffsetBelowDikeTopAtRiver { get @@ -87,10 +77,6 @@ } } - /// - /// Gets or sets the offset of the phreatic line below dike top at polder. - /// [m] - /// public RoundedDouble PhreaticLineOffsetBelowDikeTopAtPolder { get @@ -103,10 +89,6 @@ } } - /// - /// Gets or sets the offset of the phreatic line below shoulder base inside. - /// [m] - /// public RoundedDouble PhreaticLineOffsetBelowShoulderBaseInside { get @@ -119,10 +101,6 @@ } } - /// - /// Gets or sets the offset of the phreatic line below dike toe at polder. - /// [m] - /// public RoundedDouble PhreaticLineOffsetBelowDikeToeAtPolder { get Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInputDaily.cs =================================================================== diff -u -r2986fcc9781597b8251a1c6551ec1453459472cc -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInputDaily.cs (.../MacroStabilityInwardsLocationInputDaily.cs) (revision 2986fcc9781597b8251a1c6551ec1453459472cc) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInputDaily.cs (.../MacroStabilityInwardsLocationInputDaily.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -20,14 +20,15 @@ // All rights reserved. using Core.Common.Base.Data; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data { /// /// Class that holds all locations input daily conditions /// for the macro stability inwards calculation. /// - public class MacroStabilityInwardsLocationInputDaily : MacroStabilityInwardsLocationInput + public class MacroStabilityInwardsLocationInputDaily : MacroStabilityInwardsLocationInput, IMacroStabilityInwardsLocationInputDaily { /// /// Initializes a new instance of the class. @@ -37,10 +38,6 @@ PenetrationLength = new RoundedDouble(2); } - /// - /// Gets the penetration length. - /// [m] - /// public RoundedDouble PenetrationLength { get; } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInputExtreme.cs =================================================================== diff -u -ra4daa6d1ccb443d5ab7901f3ac8578dca7064476 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInputExtreme.cs (.../MacroStabilityInwardsLocationInputExtreme.cs) (revision a4daa6d1ccb443d5ab7901f3ac8578dca7064476) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsLocationInputExtreme.cs (.../MacroStabilityInwardsLocationInputExtreme.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -20,14 +20,15 @@ // All rights reserved. using Core.Common.Base.Data; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data { /// /// Base class that holds all locations input for extreme conditions /// for the macro stability inwards calculation. /// - public class MacroStabilityInwardsLocationInputExtreme : MacroStabilityInwardsLocationInput + public class MacroStabilityInwardsLocationInputExtreme : MacroStabilityInwardsLocationInput, IMacroStabilityInwardsLocationInputExtreme { private RoundedDouble penetrationLength; @@ -39,10 +40,6 @@ penetrationLength = new RoundedDouble(2, double.NaN); } - /// - /// Gets or sets the penetration length. - /// [m] - /// public RoundedDouble PenetrationLength { get Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsSemiProbabilisticDesignVariableFactory.cs =================================================================== diff -u -r69d647795daacbf48e17d0cf3a02a21865ab4ae6 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsSemiProbabilisticDesignVariableFactory.cs (.../MacroStabilityInwardsSemiProbabilisticDesignVariableFactory.cs) (revision 69d647795daacbf48e17d0cf3a02a21865ab4ae6) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsSemiProbabilisticDesignVariableFactory.cs (.../MacroStabilityInwardsSemiProbabilisticDesignVariableFactory.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -20,7 +20,7 @@ // All rights reserved. using Ringtoets.Common.Data.Probabilistics; -using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data { @@ -30,9 +30,9 @@ public static class MacroStabilityInwardsSemiProbabilisticDesignVariableFactory { /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetAbovePhreaticLevel(MacroStabilityInwardsSoilLayerData data) + public static VariationCoefficientDesignVariable GetAbovePhreaticLevel(IMacroStabilityInwardsSoilLayerData data) { return new VariationCoefficientLogNormalDistributionDesignVariable(data.AbovePhreaticLevel) { @@ -41,9 +41,9 @@ } /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetBelowPhreaticLevel(MacroStabilityInwardsSoilLayerData data) + public static VariationCoefficientDesignVariable GetBelowPhreaticLevel(IMacroStabilityInwardsSoilLayerData data) { return new VariationCoefficientLogNormalDistributionDesignVariable(data.BelowPhreaticLevel) { @@ -52,9 +52,9 @@ } /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetCohesion(MacroStabilityInwardsSoilLayerData data) + public static VariationCoefficientDesignVariable GetCohesion(IMacroStabilityInwardsSoilLayerData data) { return new VariationCoefficientLogNormalDistributionDesignVariable(data.Cohesion) { @@ -63,9 +63,9 @@ } /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetFrictionAngle(MacroStabilityInwardsSoilLayerData data) + public static VariationCoefficientDesignVariable GetFrictionAngle(IMacroStabilityInwardsSoilLayerData data) { return new VariationCoefficientLogNormalDistributionDesignVariable(data.FrictionAngle) { @@ -74,9 +74,9 @@ } /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetShearStrengthRatio(MacroStabilityInwardsSoilLayerData data) + public static VariationCoefficientDesignVariable GetShearStrengthRatio(IMacroStabilityInwardsSoilLayerData data) { return new VariationCoefficientLogNormalDistributionDesignVariable(data.ShearStrengthRatio) { @@ -85,9 +85,9 @@ } /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetStrengthIncreaseExponent(MacroStabilityInwardsSoilLayerData data) + public static VariationCoefficientDesignVariable GetStrengthIncreaseExponent(IMacroStabilityInwardsSoilLayerData data) { return new VariationCoefficientLogNormalDistributionDesignVariable(data.StrengthIncreaseExponent) { @@ -96,9 +96,9 @@ } /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetPop(MacroStabilityInwardsSoilLayerData data) + public static VariationCoefficientDesignVariable GetPop(IMacroStabilityInwardsSoilLayerData data) { return new VariationCoefficientLogNormalDistributionDesignVariable(data.Pop) { @@ -107,9 +107,9 @@ } /// - /// Creates the design variable for . + /// Creates the design variable for . /// - public static VariationCoefficientDesignVariable GetPreconsolidationStress(MacroStabilityInwardsPreconsolidationStress preconsolidationStressUnderSurfaceLine) + public static VariationCoefficientDesignVariable GetPreconsolidationStress(IMacroStabilityInwardsPreconsolidationStress preconsolidationStressUnderSurfaceLine) { return new VariationCoefficientLogNormalDistributionDesignVariable(preconsolidationStressUnderSurfaceLine.Stress) { Fisheye: Tag 90a9502badff5788374461a1b2179a5dd0e866a2 refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsShearStrengthModel.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj =================================================================== diff -u -r14c118039f313ea66787d8065daad0aa783b731a -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj (.../Ringtoets.MacroStabilityInwards.Data.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj (.../Ringtoets.MacroStabilityInwards.Data.csproj) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -72,7 +72,6 @@ - Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsPreconsolidationStress.cs =================================================================== diff -u -r15f9709130561c93bb217e1c7b5ab942be97f958 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsPreconsolidationStress.cs (.../MacroStabilityInwardsPreconsolidationStress.cs) (revision 15f9709130561c93bb217e1c7b5ab942be97f958) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsPreconsolidationStress.cs (.../MacroStabilityInwardsPreconsolidationStress.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -23,14 +23,15 @@ using Core.Common.Base.Geometry; using Ringtoets.Common.Data.Probabilistics; using Ringtoets.MacroStabilityInwards.Data.Properties; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.SoilProfile { /// /// This class represents a preconsolidation stress definition that was imported /// from D-Soil model. /// - public class MacroStabilityInwardsPreconsolidationStress + public class MacroStabilityInwardsPreconsolidationStress : IMacroStabilityInwardsPreconsolidationStress { /// /// Creates a new instance of . @@ -62,17 +63,8 @@ }; } - /// - /// Gets the distribution for the preconsolidation stress. - /// [kN/m�] - /// public VariationCoefficientLogNormalDistribution Stress { get; } - /// - /// Gets the location of the preconsolidation stress - /// [m] - /// - /// The has the unit [m+NAP] public Point2D Location { get; } public override bool Equals(object obj) Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilLayerData.cs =================================================================== diff -u -r33b3ee972d9039d09ecbb8f7db037036af5ec786 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilLayerData.cs (.../MacroStabilityInwardsSoilLayerData.cs) (revision 33b3ee972d9039d09ecbb8f7db037036af5ec786) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilLayerData.cs (.../MacroStabilityInwardsSoilLayerData.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -23,13 +23,14 @@ using System.Drawing; using Core.Common.Base.Data; using Ringtoets.Common.Data.Probabilistics; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.SoilProfile { /// /// Data of a soil layer. /// - public class MacroStabilityInwardsSoilLayerData + public class MacroStabilityInwardsSoilLayerData : IMacroStabilityInwardsSoilLayerData { private readonly VariationCoefficientLogNormalDistribution abovePhreaticLevel; private readonly VariationCoefficientLogNormalDistribution belowPhreaticLevel; @@ -86,15 +87,8 @@ ShearStrengthModel = MacroStabilityInwardsShearStrengthModel.CPhi; } - /// - /// Gets or sets a value indicating whether the layer is an aquifer. - /// public bool IsAquifer { get; set; } - /// - /// Gets or sets the name of the material that was assigned to the layer. - /// - /// Thrown when is null. public string MaterialName { get @@ -111,25 +105,12 @@ } } - /// - /// Gets or sets the that was used to represent the layer. - /// public Color Color { get; set; } - /// - /// Gets or sets a value indicating whether to use POP for the layer. - /// public bool UsePop { get; set; } - /// - /// Gets or sets the shear strength model to use for the layer. - /// public MacroStabilityInwardsShearStrengthModel ShearStrengthModel { get; set; } - /// - /// Gets or sets the volumic weight of the layer above the phreatic level. - /// [kN/m³] - /// public VariationCoefficientLogNormalDistribution AbovePhreaticLevel { get @@ -144,10 +125,6 @@ } } - /// - /// Gets or sets the volumic weight of the layer below the phreatic level. - /// [kN/m³] - /// public VariationCoefficientLogNormalDistribution BelowPhreaticLevel { get @@ -162,10 +139,6 @@ } } - /// - /// Gets or sets the cohesion. - /// [kN/m³] - /// public VariationCoefficientLogNormalDistribution Cohesion { get @@ -179,10 +152,6 @@ } } - /// - /// Gets or sets the friction angle. - /// [°] - /// public VariationCoefficientLogNormalDistribution FrictionAngle { get @@ -196,10 +165,6 @@ } } - /// - /// Gets or sets the strength increase component. - /// [-] - /// public VariationCoefficientLogNormalDistribution StrengthIncreaseExponent { get @@ -213,10 +178,6 @@ } } - /// - /// Gets or sets the shear strength ratio. - /// [-] - /// public VariationCoefficientLogNormalDistribution ShearStrengthRatio { get @@ -230,10 +191,6 @@ } } - /// - /// Gets or sets the POP. - /// [kN/m²] - /// public VariationCoefficientLogNormalDistribution Pop { get Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilLayerUnderSurfaceLine.cs =================================================================== diff -u -r69d647795daacbf48e17d0cf3a02a21865ab4ae6 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilLayerUnderSurfaceLine.cs (.../MacroStabilityInwardsSoilLayerUnderSurfaceLine.cs) (revision 69d647795daacbf48e17d0cf3a02a21865ab4ae6) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilLayerUnderSurfaceLine.cs (.../MacroStabilityInwardsSoilLayerUnderSurfaceLine.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -23,21 +23,22 @@ using System.Collections.Generic; using System.Linq; using Core.Common.Base.Geometry; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.SoilProfile { /// /// A 2D soil layer that has been adapted by using a surface line. /// - public class MacroStabilityInwardsSoilLayerUnderSurfaceLine + public class MacroStabilityInwardsSoilLayerUnderSurfaceLine : IMacroStabilityInwardsSoilLayerUnderSurfaceLine { /// /// Creates a new instance of . /// /// The outer ring of the geometry of the soil layer. /// The data of the soil layer. /// Thrown when any parameter is null. - public MacroStabilityInwardsSoilLayerUnderSurfaceLine(Point2D[] outerRing, MacroStabilityInwardsSoilLayerData data) + public MacroStabilityInwardsSoilLayerUnderSurfaceLine(Point2D[] outerRing, IMacroStabilityInwardsSoilLayerData data) : this(outerRing, Enumerable.Empty(), data) {} /// @@ -47,7 +48,7 @@ /// The holes of the geometry of the soil layer. /// The data of the soil layer. /// Thrown when any parameter is null. - public MacroStabilityInwardsSoilLayerUnderSurfaceLine(Point2D[] outerRing, IEnumerable holes, MacroStabilityInwardsSoilLayerData data) + public MacroStabilityInwardsSoilLayerUnderSurfaceLine(Point2D[] outerRing, IEnumerable holes, IMacroStabilityInwardsSoilLayerData data) { if (outerRing == null) { @@ -66,19 +67,10 @@ Data = data; } - /// - /// Gets the outer ring of the geometry. - /// public Point2D[] OuterRing { get; } - /// - /// Gets the holes of the geometry. - /// public IEnumerable Holes { get; } - /// - /// Gets the data of the soil layer. - /// - public MacroStabilityInwardsSoilLayerData Data { get; } + public IMacroStabilityInwardsSoilLayerData Data { get; } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs =================================================================== diff -u -rf2838b78c54529e9b15208b44de854f7760e350f -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs (.../MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs) (revision f2838b78c54529e9b15208b44de854f7760e350f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs (.../MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -21,22 +21,23 @@ using System; using System.Collections.Generic; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.SoilProfile { /// /// A soil profile for which its properties have been adapted using a surface line. /// - public class MacroStabilityInwardsSoilProfileUnderSurfaceLine + public class MacroStabilityInwardsSoilProfileUnderSurfaceLine : IMacroStabilityInwardsSoilProfileUnderSurfaceLine { /// /// Creates a new instance of . /// /// The layers in the profile. /// The preconsolidation stresses defined for the profile. /// Thrown when any parameter is null. - public MacroStabilityInwardsSoilProfileUnderSurfaceLine(IEnumerable layers, - IEnumerable preconsolidationStresses) + public MacroStabilityInwardsSoilProfileUnderSurfaceLine(IEnumerable layers, + IEnumerable preconsolidationStresses) { if (layers == null) { @@ -49,15 +50,9 @@ Layers = layers; PreconsolidationStresses = preconsolidationStresses; } + + public IEnumerable Layers { get; } - /// - /// Gets the layers in the profile. - /// - public IEnumerable Layers { get; } - - /// - /// Gets the preconsolidation stresses in the profile. - /// - public IEnumerable PreconsolidationStresses { get; } + public IEnumerable PreconsolidationStresses { get; } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs =================================================================== diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs (.../MacroStabilityInwardsWaterStressesProperties.cs) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs (.../MacroStabilityInwardsWaterStressesProperties.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -256,7 +256,7 @@ { get { - return new MacroStabilityInwardsLocationExtremeProperties(data.LocationInputExtreme, propertyChangeHandler); + return new MacroStabilityInwardsLocationExtremeProperties((MacroStabilityInwardsLocationInputExtreme) data.LocationInputExtreme, propertyChangeHandler); } } @@ -268,7 +268,7 @@ { get { - return new MacroStabilityInwardsLocationDailyProperties(data.LocationInputDaily, propertyChangeHandler); + return new MacroStabilityInwardsLocationDailyProperties((MacroStabilityInwardsLocationInputDaily) data.LocationInputDaily, propertyChangeHandler); } } Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/SoilProfiles/MacroStabilityInwardsSoilLayerTransformer.cs =================================================================== diff -u -rbe51145e1b013ea9e1353a6b8618bdc6fd855ff8 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/SoilProfiles/MacroStabilityInwardsSoilLayerTransformer.cs (.../MacroStabilityInwardsSoilLayerTransformer.cs) (revision be51145e1b013ea9e1353a6b8618bdc6fd855ff8) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/SoilProfiles/MacroStabilityInwardsSoilLayerTransformer.cs (.../MacroStabilityInwardsSoilLayerTransformer.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -30,6 +30,7 @@ using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.IO.Properties; +using Ringtoets.MacroStabilityInwards.Primitives; using RingtoetsCommonIOResources = Ringtoets.Common.IO.Properties.Resources; namespace Ringtoets.MacroStabilityInwards.IO.SoilProfiles @@ -101,13 +102,13 @@ } /// - /// Sets the properties of the . + /// Sets the properties of the . /// /// The soil layer to get the data from. /// The data to set the properties upon. /// Thrown when transformation would not result /// in a valid transformed instance. - private static void SetProperties(SoilLayerBase soilLayer, MacroStabilityInwardsSoilLayerData data) + private static void SetProperties(SoilLayerBase soilLayer, IMacroStabilityInwardsSoilLayerData data) { data.ShearStrengthModel = TransformShearStrengthModel(soilLayer.ShearStrengthModel); data.UsePop = TransformUsePop(soilLayer.UsePop); Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInput.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInput.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInput.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,67 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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 Core.Common.Base.Data; + +namespace Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface that holds all locations input for either daily or + /// extreme conditions for the macro stability inwards calculation. + /// + public interface IMacroStabilityInwardsLocationInput + { + /// + /// Gets or sets the polder water level. + /// [m+NAP] + /// + RoundedDouble WaterLevelPolder { get; set; } + + /// + /// Gets or sets whether the default offsets should be used. + /// + bool UseDefaultOffsets { get; set; } + + /// + /// Gets or sets the offset of the phreatic line below dike top at river. + /// [m] + /// + RoundedDouble PhreaticLineOffsetBelowDikeTopAtRiver { get; set; } + + /// + /// Gets or sets the offset of the phreatic line below dike top at polder. + /// [m] + /// + RoundedDouble PhreaticLineOffsetBelowDikeTopAtPolder { get; set; } + + /// + /// Gets or sets the offset of the phreatic line below shoulder base inside. + /// [m] + /// + RoundedDouble PhreaticLineOffsetBelowShoulderBaseInside { get; set; } + + /// + /// Gets or sets the offset of the phreatic line below dike toe at polder. + /// [m] + /// + RoundedDouble PhreaticLineOffsetBelowDikeToeAtPolder { get; set; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInputDaily.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInputDaily.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInputDaily.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,38 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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 Core.Common.Base.Data; + +namespace Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface that holds all locations input daily conditions + /// for the macro stability inwards calculation. + /// + public interface IMacroStabilityInwardsLocationInputDaily : IMacroStabilityInwardsLocationInput + { + /// + /// Gets the penetration length. + /// [m] + /// + RoundedDouble PenetrationLength { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInputExtreme.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInputExtreme.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsLocationInputExtreme.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,38 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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 Core.Common.Base.Data; + +namespace Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface class that holds all locations input for extreme conditions + /// for the macro stability inwards calculation. + /// + public interface IMacroStabilityInwardsLocationInputExtreme : IMacroStabilityInwardsLocationInput + { + /// + /// Gets or sets the penetration length. + /// [m] + /// + RoundedDouble PenetrationLength { get; set; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsPreconsolidationStress.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsPreconsolidationStress.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsPreconsolidationStress.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,46 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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 Core.Common.Base.Geometry; +using Ringtoets.Common.Data.Probabilistics; + +namespace Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface that represents a preconsolidation stress definition that was imported + /// from D-Soil model. + /// + public interface IMacroStabilityInwardsPreconsolidationStress + { + /// + /// Gets the distribution for the preconsolidation stress. + /// [kN/m�] + /// + VariationCoefficientLogNormalDistribution Stress { get; } + + /// + /// Gets the location of the preconsolidation stress + /// [m] + /// + /// The has the unit [m+NAP] + Point2D Location { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilLayerData.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilLayerData.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilLayerData.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,101 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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.Drawing; +using Ringtoets.Common.Data.Probabilistics; + +namespace Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface for defining the data of a soil layer. + /// + public interface IMacroStabilityInwardsSoilLayerData + { + /// + /// Gets or sets a value indicating whether the layer is an aquifer. + /// + bool IsAquifer { get; set; } + + /// + /// Gets or sets the name of the material that was assigned to the layer. + /// + /// Thrown when is null. + string MaterialName { get; set; } + + /// + /// Gets or sets the that was used to represent the layer. + /// + Color Color { get; set; } + + /// + /// Gets or sets a value indicating whether to use POP for the layer. + /// + bool UsePop { get; set; } + + /// + /// Gets or sets the shear strength model to use for the layer. + /// + MacroStabilityInwardsShearStrengthModel ShearStrengthModel { get; set; } + + /// + /// Gets or sets the volumic weight of the layer above the phreatic level. + /// [kN/m³] + /// + VariationCoefficientLogNormalDistribution AbovePhreaticLevel { get; set; } + + /// + /// Gets or sets the volumic weight of the layer below the phreatic level. + /// [kN/m³] + /// + VariationCoefficientLogNormalDistribution BelowPhreaticLevel { get; set; } + + /// + /// Gets or sets the cohesion. + /// [kN/m³] + /// + VariationCoefficientLogNormalDistribution Cohesion { get; set; } + + /// + /// Gets or sets the friction angle. + /// [°] + /// + VariationCoefficientLogNormalDistribution FrictionAngle { get; set; } + + /// + /// Gets or sets the strength increase component. + /// [-] + /// + VariationCoefficientLogNormalDistribution StrengthIncreaseExponent { get; set; } + + /// + /// Gets or sets the shear strength ratio. + /// [-] + /// + VariationCoefficientLogNormalDistribution ShearStrengthRatio { get; set; } + + /// + /// Gets or sets the POP. + /// [kN/m²] + /// + VariationCoefficientLogNormalDistribution Pop { get; set; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilLayerUnderSurfaceLine.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilLayerUnderSurfaceLine.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilLayerUnderSurfaceLine.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,47 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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; +using Core.Common.Base.Geometry; + +namespace Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface for a 2D soil layer that has been adapted by using a surface line. + /// + public interface IMacroStabilityInwardsSoilLayerUnderSurfaceLine + { + /// + /// Gets the outer ring of the geometry. + /// + Point2D[] OuterRing { get; } + + /// + /// Gets the holes of the geometry. + /// + IEnumerable Holes { get; } + + /// + /// Gets the data of the soil layer. + /// + IMacroStabilityInwardsSoilLayerData Data { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilProfileUnderSurfaceLine.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilProfileUnderSurfaceLine.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsSoilProfileUnderSurfaceLine.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,41 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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 Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface for a soil profile for which its properties have been adapted using a surface line. + /// + public interface IMacroStabilityInwardsSoilProfileUnderSurfaceLine + { + /// + /// Gets the layers in the profile. + /// + IEnumerable Layers { get; } + + /// + /// Gets the preconsolidation stresses in the profile. + /// + IEnumerable PreconsolidationStresses { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsWaternetInput.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsWaternetInput.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/IMacroStabilityInwardsWaternetInput.cs (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -0,0 +1,139 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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 Core.Common.Base.Data; + +namespace Ringtoets.MacroStabilityInwards.Primitives +{ + /// + /// Interface that holds macro stability inwards calculation specific input parameters for + /// a Waternet calculation. + /// + public interface IMacroStabilityInwardsWaternetInput + { + /// + /// Gets the surface line. + /// + MacroStabilityInwardsSurfaceLine SurfaceLine { get; } + + /// + /// Gets the outside high water level. + /// [m+NAP] + /// + RoundedDouble AssessmentLevel { get; } + + /// + /// Gets the profile which contains a 2 dimensional definition of soil layers with properties. + /// + IMacroStabilityInwardsSoilProfileUnderSurfaceLine SoilProfileUnderSurfaceLine { get; } + + /// + /// Gets the dike soil scenario. + /// + MacroStabilityInwardsDikeSoilScenario DikeSoilScenario { get; } + + /// + /// Gets the average river water level. + /// [m+NAP] + /// + RoundedDouble WaterLevelRiverAverage { get; } + + /// + /// Gets whether a drainage construction is present. + /// + bool DrainageConstructionPresent { get; } + + /// + /// Gets the x coordinate of the drainage construction. + /// [m] + /// + RoundedDouble XCoordinateDrainageConstruction { get; } + + /// + /// Gets the z coordinate of the drainage construction. + /// [m+NAP] + /// + RoundedDouble ZCoordinateDrainageConstruction { get; } + + /// + /// Gets the minimum level phreatic line at dike top river. + /// [m+NAP] + /// + RoundedDouble MinimumLevelPhreaticLineAtDikeTopRiver { get; } + + /// + /// Gets the minimum level phreatic line at dike top polder. + /// [m+NAP] + /// + RoundedDouble MinimumLevelPhreaticLineAtDikeTopPolder { get; } + + /// + /// Gets whether phreatic line 3 and 4 should be adjusted for Uplift. + /// + bool AdjustPhreaticLine3And4ForUplift { get; } + + /// + /// Gets the leakage length outwards of phreatic line 3. + /// [m] + /// + RoundedDouble LeakageLengthOutwardsPhreaticLine3 { get; } + + /// + /// Gets the leakage length inwards of phreatic line 3. + /// [m] + /// + RoundedDouble LeakageLengthInwardsPhreaticLine3 { get; } + + /// + /// Gets the leakage length outwards of phreatic line 4. + /// [m] + /// + RoundedDouble LeakageLengthOutwardsPhreaticLine4 { get; } + + /// + /// Gets the leakage length inwards of phreatic line 4. + /// [m] + /// + RoundedDouble LeakageLengthInwardsPhreaticLine4 { get; } + + /// + /// Gets the piezometric head of the phreatic line 2 outwards. + /// [m+NAP] + /// + RoundedDouble PiezometricHeadPhreaticLine2Outwards { get; } + + /// + /// Gets the piezometric head of the phreatic line 2 inwards. + /// [m+NAP] + /// + RoundedDouble PiezometricHeadPhreaticLine2Inwards { get; } + + /// + /// Gets the locations input values for extreme conditions. + /// + IMacroStabilityInwardsLocationInputExtreme LocationInputExtreme { get; } + + /// + /// Gets the locations input values for daily conditions. + /// + IMacroStabilityInwardsLocationInputDaily LocationInputDaily { get; } + } +} \ No newline at end of file Fisheye: Tag 9f936b0b29f490a024df02345df182133b1c041a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsShearStrengthModel.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj =================================================================== diff -u -r14c118039f313ea66787d8065daad0aa783b731a -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.csproj) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -36,13 +36,23 @@ + Properties\GlobalAssembly.cs + + + + + + + + + Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/PhreaticLineOffsetsConverter.cs =================================================================== diff -u -r484ac98127f04b1d315c98fdada7bd9f5a004872 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/PhreaticLineOffsetsConverter.cs (.../PhreaticLineOffsetsConverter.cs) (revision 484ac98127f04b1d315c98fdada7bd9f5a004872) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/PhreaticLineOffsetsConverter.cs (.../PhreaticLineOffsetsConverter.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -22,6 +22,7 @@ using System; using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.Input; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Service.Converters { @@ -39,7 +40,7 @@ /// The converted . /// Thrown when /// is null. - public static PhreaticLineOffsets Convert(MacroStabilityInwardsLocationInput input) + public static PhreaticLineOffsets Convert(IMacroStabilityInwardsLocationInput input) { if (input == null) { Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/SoilProfileConverter.cs =================================================================== diff -u -rf2838b78c54529e9b15208b44de854f7760e350f -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/SoilProfileConverter.cs (.../SoilProfileConverter.cs) (revision f2838b78c54529e9b15208b44de854f7760e350f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/SoilProfileConverter.cs (.../SoilProfileConverter.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -24,32 +24,32 @@ using System.ComponentModel; using System.Linq; using Ringtoets.MacroStabilityInwards.Data; -using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.Input; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Service.Converters { /// - /// Converter to convert + /// Converter to convert /// into . /// internal static class SoilProfileConverter { /// - /// Converts + /// Converts /// into . /// /// The soil profile to convert. /// The converted . /// Thrown when /// is null. /// Thrown when - /// + /// /// is an invalid value. /// Thrown when - /// + /// /// is a valid value but unsupported. - public static SoilProfile Convert(MacroStabilityInwardsSoilProfileUnderSurfaceLine soilProfile) + public static SoilProfile Convert(IMacroStabilityInwardsSoilProfileUnderSurfaceLine soilProfile) { if (soilProfile == null) { @@ -63,22 +63,22 @@ } /// - /// Converts + /// Converts /// into . /// /// The layers to convert. /// The converted . /// Thrown when - /// + /// /// is an invalid value. /// Thrown when - /// + /// /// is a valid value but unsupported. - private static IEnumerable ConvertLayers(IEnumerable layers) + private static IEnumerable ConvertLayers(IEnumerable layers) { return layers.Select(l => { - MacroStabilityInwardsSoilLayerData data = l.Data; + IMacroStabilityInwardsSoilLayerData data = l.Data; return new SoilLayer(l.OuterRing, l.Holes, new SoilLayer.ConstructionProperties { MaterialName = data.MaterialName, @@ -99,7 +99,7 @@ } private static IEnumerable ConvertPreconsolidationStresses( - IEnumerable preconsolidationStresses) + IEnumerable preconsolidationStresses) { return preconsolidationStresses.Select(ps => new PreconsolidationStress( ps.Location, Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsInputTest.cs =================================================================== diff -u -r7438751456088ede76933c01627857c4e11681c9 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsInputTest.cs (.../MacroStabilityInwardsInputTest.cs) (revision 7438751456088ede76933c01627857c4e11681c9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsInputTest.cs (.../MacroStabilityInwardsInputTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -46,6 +46,7 @@ // Assert Assert.IsInstanceOf(inputParameters); Assert.IsInstanceOf(inputParameters); + Assert.IsInstanceOf(inputParameters); Assert.IsNull(inputParameters.SurfaceLine); Assert.IsNull(inputParameters.StochasticSoilModel); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputDailyTest.cs =================================================================== diff -u -ra4daa6d1ccb443d5ab7901f3ac8578dca7064476 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputDailyTest.cs (.../MacroStabilityInwardsLocationInputDailyTest.cs) (revision a4daa6d1ccb443d5ab7901f3ac8578dca7064476) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputDailyTest.cs (.../MacroStabilityInwardsLocationInputDailyTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -20,6 +20,7 @@ // All rights reserved. using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.Test { @@ -33,6 +34,7 @@ // Assert Assert.IsInstanceOf(locationInput); + Assert.IsInstanceOf(locationInput); Assert.IsTrue(locationInput.UseDefaultOffsets); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputExtremeTest.cs =================================================================== diff -u -ra4daa6d1ccb443d5ab7901f3ac8578dca7064476 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputExtremeTest.cs (.../MacroStabilityInwardsLocationInputExtremeTest.cs) (revision a4daa6d1ccb443d5ab7901f3ac8578dca7064476) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputExtremeTest.cs (.../MacroStabilityInwardsLocationInputExtremeTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -22,6 +22,7 @@ using System; using Core.Common.Base.Data; using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.Test { @@ -35,6 +36,7 @@ // Assert Assert.IsInstanceOf(locationInput); + Assert.IsInstanceOf(locationInput); Assert.IsTrue(locationInput.UseDefaultOffsets); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputTest.cs =================================================================== diff -u -r18df5753718d7753b00cc3d40fde1a90a99b87ed -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputTest.cs (.../MacroStabilityInwardsLocationInputTest.cs) (revision 18df5753718d7753b00cc3d40fde1a90a99b87ed) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsLocationInputTest.cs (.../MacroStabilityInwardsLocationInputTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -22,6 +22,7 @@ using System; using Core.Common.Base.Data; using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.Test { @@ -34,6 +35,7 @@ var locationInput = new TestMacroStabilityInwardsLocationInput(); // Assert + Assert.IsInstanceOf(locationInput); Assert.IsTrue(locationInput.UseDefaultOffsets); Assert.IsNaN(locationInput.PhreaticLineOffsetBelowDikeTopAtRiver); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsShearStrengthModelTest.cs =================================================================== diff -u -rfaff4cd6fe5f5933babb1123fad2230589aa8f4d -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsShearStrengthModelTest.cs (.../MacroStabilityInwardsShearStrengthModelTest.cs) (revision faff4cd6fe5f5933babb1123fad2230589aa8f4d) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsShearStrengthModelTest.cs (.../MacroStabilityInwardsShearStrengthModelTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -21,6 +21,7 @@ using System; using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.Test { Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsPreconsolidationStressTest.cs =================================================================== diff -u -rd2548d8c57adf0df3e06c5e7ceb3eb9086d84cb2 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsPreconsolidationStressTest.cs (.../MacroStabilityInwardsPreconsolidationStressTest.cs) (revision d2548d8c57adf0df3e06c5e7ceb3eb9086d84cb2) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsPreconsolidationStressTest.cs (.../MacroStabilityInwardsPreconsolidationStressTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -28,6 +28,7 @@ using Ringtoets.Common.Data.Probabilistics; using Ringtoets.Common.Data.TestUtil; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.Test.SoilProfile { @@ -87,6 +88,7 @@ var stress = new MacroStabilityInwardsPreconsolidationStress(location, distribution); // Assert + Assert.IsInstanceOf(stress); Assert.AreEqual(location, stress.Location); DistributionAssert.AreEqual(new VariationCoefficientLogNormalDistribution(2) Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsSoilLayerDataTest.cs =================================================================== diff -u -r3faf4e513cd3a662427ce5aed527bb994f740c18 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsSoilLayerDataTest.cs (.../MacroStabilityInwardsSoilLayerDataTest.cs) (revision 3faf4e513cd3a662427ce5aed527bb994f740c18) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsSoilLayerDataTest.cs (.../MacroStabilityInwardsSoilLayerDataTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -29,6 +29,7 @@ using Ringtoets.Common.Data.Probabilistics; using Ringtoets.Common.Data.TestUtil; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.Data.Test.SoilProfile { @@ -42,6 +43,7 @@ var data = new MacroStabilityInwardsSoilLayerData(); // Assert + Assert.IsInstanceOf(data); Assert.IsFalse(data.IsAquifer); Assert.IsEmpty(data.MaterialName); Assert.AreEqual(Color.Empty, data.Color); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationDailyPropertiesTest.cs =================================================================== diff -u -rc6719f7c61c39cbeda54d041a604c98cc4a83970 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationDailyPropertiesTest.cs (.../MacroStabilityInwardsLocationDailyPropertiesTest.cs) (revision c6719f7c61c39cbeda54d041a604c98cc4a83970) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationDailyPropertiesTest.cs (.../MacroStabilityInwardsLocationDailyPropertiesTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -138,10 +138,10 @@ { // Given var calculationItem = new MacroStabilityInwardsCalculationScenario(); - MacroStabilityInwardsLocationInput input = calculationItem.InputParameters.LocationInputDaily; + var input = (MacroStabilityInwardsLocationInputDaily) calculationItem.InputParameters.LocationInputDaily; var handler = new ObservablePropertyChangeHandler(calculationItem, calculationItem.InputParameters); - var properties = new MacroStabilityInwardsLocationDailyProperties(calculationItem.InputParameters.LocationInputDaily, handler); + var properties = new MacroStabilityInwardsLocationDailyProperties(input, handler); var random = new Random(); double waterLevelPolder = random.Next(); @@ -180,7 +180,7 @@ observable }); - var properties = new MacroStabilityInwardsLocationDailyProperties(input.LocationInputDaily, handler); + var properties = new MacroStabilityInwardsLocationDailyProperties((MacroStabilityInwardsLocationInputDaily) input.LocationInputDaily, handler); // Call setProperty(properties); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationExtremePropertiesTest.cs =================================================================== diff -u -rc6719f7c61c39cbeda54d041a604c98cc4a83970 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationExtremePropertiesTest.cs (.../MacroStabilityInwardsLocationExtremePropertiesTest.cs) (revision c6719f7c61c39cbeda54d041a604c98cc4a83970) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationExtremePropertiesTest.cs (.../MacroStabilityInwardsLocationExtremePropertiesTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -137,10 +137,10 @@ { // Given var calculationItem = new MacroStabilityInwardsCalculationScenario(); - MacroStabilityInwardsLocationInputExtreme input = calculationItem.InputParameters.LocationInputExtreme; + var input = (MacroStabilityInwardsLocationInputExtreme) calculationItem.InputParameters.LocationInputExtreme; var handler = new ObservablePropertyChangeHandler(calculationItem, calculationItem.InputParameters); - var properties = new MacroStabilityInwardsLocationExtremeProperties(calculationItem.InputParameters.LocationInputExtreme, handler); + var properties = new MacroStabilityInwardsLocationExtremeProperties(input, handler); var random = new Random(); double waterLevelPolder = random.Next(); @@ -193,7 +193,7 @@ observable }); - var properties = new MacroStabilityInwardsLocationExtremeProperties(input.LocationInputExtreme, handler); + var properties = new MacroStabilityInwardsLocationExtremeProperties((MacroStabilityInwardsLocationInputExtreme) input.LocationInputExtreme, handler); // Call setProperty(properties); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationPropertiesTest.cs =================================================================== diff -u -rc6719f7c61c39cbeda54d041a604c98cc4a83970 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationPropertiesTest.cs (.../MacroStabilityInwardsLocationPropertiesTest.cs) (revision c6719f7c61c39cbeda54d041a604c98cc4a83970) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsLocationPropertiesTest.cs (.../MacroStabilityInwardsLocationPropertiesTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -157,10 +157,10 @@ { // Given var calculationItem = new MacroStabilityInwardsCalculationScenario(); - MacroStabilityInwardsLocationInput input = calculationItem.InputParameters.LocationInputExtreme; + var input = (MacroStabilityInwardsLocationInput) calculationItem.InputParameters.LocationInputExtreme; var handler = new ObservablePropertyChangeHandler(calculationItem, calculationItem.InputParameters); - var properties = new TestMacroStabilityInwardsLocationProperties(calculationItem.InputParameters.LocationInputExtreme, handler); + var properties = new TestMacroStabilityInwardsLocationProperties(input, handler); var random = new Random(); double waterLevelPolder = random.Next(); @@ -217,7 +217,7 @@ observable }); - var properties = new TestMacroStabilityInwardsLocationProperties(input.LocationInputExtreme, handler); + var properties = new TestMacroStabilityInwardsLocationProperties((MacroStabilityInwardsLocationInput) input.LocationInputExtreme, handler); // Call setProperty(properties); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsOffsetPropertiesTest.cs =================================================================== diff -u -r18df5753718d7753b00cc3d40fde1a90a99b87ed -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsOffsetPropertiesTest.cs (.../MacroStabilityInwardsOffsetPropertiesTest.cs) (revision 18df5753718d7753b00cc3d40fde1a90a99b87ed) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsOffsetPropertiesTest.cs (.../MacroStabilityInwardsOffsetPropertiesTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -187,7 +187,7 @@ { // Given var calculationItem = new MacroStabilityInwardsCalculationScenario(); - MacroStabilityInwardsLocationInput input = calculationItem.InputParameters.LocationInputExtreme; + var input = (MacroStabilityInwardsLocationInput) calculationItem.InputParameters.LocationInputExtreme; var handler = new ObservablePropertyChangeHandler(calculationItem, calculationItem.InputParameters); var properties = new MacroStabilityInwardsOffsetProperties(input, handler); @@ -319,7 +319,7 @@ observable.Expect(o => o.NotifyObservers()); mocks.ReplayAll(); - MacroStabilityInwardsLocationInput input = calculation.InputParameters.LocationInputExtreme; + var input = (MacroStabilityInwardsLocationInput) calculation.InputParameters.LocationInputExtreme; var handler = new SetPropertyValueAfterConfirmationParameterTester(new[] { Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsSoilLayerTransformerTest.cs =================================================================== diff -u -re7264aaab63be7a266ae8340fdb9eac7dba28c4e -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsSoilLayerTransformerTest.cs (.../MacroStabilityInwardsSoilLayerTransformerTest.cs) (revision e7264aaab63be7a266ae8340fdb9eac7dba28c4e) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsSoilLayerTransformerTest.cs (.../MacroStabilityInwardsSoilLayerTransformerTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -34,6 +34,7 @@ using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.IO.SoilProfiles; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.IO.Test.SoilProfiles { Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsStochasticSoilModelTransformerTest.cs =================================================================== diff -u -re343b677ebba0cff9ce37025214aa3109af39a1a -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsStochasticSoilModelTransformerTest.cs (.../MacroStabilityInwardsStochasticSoilModelTransformerTest.cs) (revision e343b677ebba0cff9ce37025214aa3109af39a1a) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsStochasticSoilModelTransformerTest.cs (.../MacroStabilityInwardsStochasticSoilModelTransformerTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -33,6 +33,7 @@ using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.IO.SoilProfiles; using Ringtoets.MacroStabilityInwards.IO.TestUtil; +using Ringtoets.MacroStabilityInwards.Primitives; namespace Ringtoets.MacroStabilityInwards.IO.Test.SoilProfiles { Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/SoilProfileConverterTest.cs =================================================================== diff -u -rf2838b78c54529e9b15208b44de854f7760e350f -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/SoilProfileConverterTest.cs (.../SoilProfileConverterTest.cs) (revision f2838b78c54529e9b15208b44de854f7760e350f) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/SoilProfileConverterTest.cs (.../SoilProfileConverterTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -28,9 +28,9 @@ using Core.Common.TestUtil; using NUnit.Framework; using Ringtoets.Common.Data.Probabilistics; -using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.Input; +using Ringtoets.MacroStabilityInwards.Primitives; using Ringtoets.MacroStabilityInwards.Service.Converters; using Ringtoets.MacroStabilityInwards.Service.TestUtil; Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs =================================================================== diff -u -r457252870eff6f6c559976ae2a479112b5754bec -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs (.../MacroStabilityInwardsCalculationServiceTest.cs) (revision 457252870eff6f6c559976ae2a479112b5754bec) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs (.../MacroStabilityInwardsCalculationServiceTest.cs) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -36,6 +36,7 @@ using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input; using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Output; using Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Calculators; +using Ringtoets.MacroStabilityInwards.Primitives; using Ringtoets.MacroStabilityInwards.Service.TestUtil; namespace Ringtoets.MacroStabilityInwards.Service.Test @@ -630,7 +631,7 @@ Assert.AreEqual(originalInput.ZCoordinateDrainageConstruction, actualInput.ZCoordinate); } - private static void AssertPhreaticLineOffsets(MacroStabilityInwardsLocationInput expected, PhreaticLineOffsets actual) + private static void AssertPhreaticLineOffsets(IMacroStabilityInwardsLocationInput expected, PhreaticLineOffsets actual) { Assert.AreEqual(expected.UseDefaultOffsets, actual.UseDefaults); Assert.AreEqual(expected.PhreaticLineOffsetBelowDikeTopAtRiver, actual.BelowDikeTopAtRiver); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.TestUtil/Ringtoets.MacroStabilityInwards.Service.TestUtil.csproj =================================================================== diff -u -r3faf4e513cd3a662427ce5aed527bb994f740c18 -r90a9502badff5788374461a1b2179a5dd0e866a2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.TestUtil/Ringtoets.MacroStabilityInwards.Service.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.Service.TestUtil.csproj) (revision 3faf4e513cd3a662427ce5aed527bb994f740c18) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.TestUtil/Ringtoets.MacroStabilityInwards.Service.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.Service.TestUtil.csproj) (revision 90a9502badff5788374461a1b2179a5dd0e866a2) @@ -75,6 +75,10 @@ {3c0d3b38-a9f7-4b22-9705-513da26ae2cc} Ringtoets.MacroStabilityInwards.KernelWrapper + + {E9B39743-2DC9-4922-9E0F-6BA3E0E54189} + Ringtoets.MacroStabilityInwards.Primitives +