Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/MacroStabilityInwardsCalculator.cs =================================================================== diff -u -r1d6eb4a980508dc55fca5a225fe777c7fd3cbd2e -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/MacroStabilityInwardsCalculator.cs (.../MacroStabilityInwardsCalculator.cs) (revision 1d6eb4a980508dc55fca5a225fe777c7fd3cbd2e) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/MacroStabilityInwardsCalculator.cs (.../MacroStabilityInwardsCalculator.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -62,7 +62,7 @@ public MacroStabilityInwardsCalculatorResult Calculate() { - IUpliftVanCalculator upliftVanCalculator = CalculateUpliftVan(); + IUpliftVanKernel upliftVanCalculator = CalculateUpliftVan(); return new MacroStabilityInwardsCalculatorResult( MacroStabilityInwardsSlidingCurveResultCreator.Create(upliftVanCalculator.SlidingCurveResult), @@ -83,9 +83,9 @@ return new List(); } - private IUpliftVanCalculator CalculateUpliftVan() + private IUpliftVanKernel CalculateUpliftVan() { - IUpliftVanCalculator upliftVanCalculator = CreateUpliftVanCalculator(); + IUpliftVanKernel upliftVanCalculator = CreateUpliftVanCalculator(); try { @@ -99,9 +99,9 @@ return upliftVanCalculator; } - private IUpliftVanCalculator CreateUpliftVanCalculator() + private IUpliftVanKernel CreateUpliftVanCalculator() { - IUpliftVanCalculator calculator = factory.CreateUpliftVanCalculator(); + IUpliftVanKernel calculator = factory.CreateUpliftVanCalculator(); calculator.MoveGrid = input.MoveGrid; calculator.MaximumSliceWidth = input.MaximumSliceWidth; Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj =================================================================== diff -u -r966dc7335defa901104fd4168d57c08315db2de0 -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision 966dc7335defa901104fd4168d57c08315db2de0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -64,7 +64,7 @@ - + Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/IMacroStabilityInwardsSubCalculatorFactory.cs =================================================================== diff -u -r01bd90d4fab9699280c5619754fc55b4f03be08a -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/IMacroStabilityInwardsSubCalculatorFactory.cs (.../IMacroStabilityInwardsSubCalculatorFactory.cs) (revision 01bd90d4fab9699280c5619754fc55b4f03be08a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/IMacroStabilityInwardsSubCalculatorFactory.cs (.../IMacroStabilityInwardsSubCalculatorFactory.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -29,7 +29,7 @@ /// /// Creates the Uplift Van calculator. /// - /// A new . - IUpliftVanCalculator CreateUpliftVanCalculator(); + /// A new . + IUpliftVanKernel CreateUpliftVanCalculator(); } } \ No newline at end of file Fisheye: Tag dea4b8c2f53fe77b14bdcf4bce131f47ece21664 refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/IUpliftVanCalculator.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/IUpliftVanKernel.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/IUpliftVanKernel.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/IUpliftVanKernel.cs (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -0,0 +1,147 @@ +// 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 Deltares.WTIStability; +using Deltares.WTIStability.Data.Geo; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.SubCalculator +{ + /// + /// Interface representing Uplift Van kernel input, methods and output. + /// + /// + /// This interface is introduced for being able to test the conversion of: + /// + /// input into kernel input; + /// kernel output into output. + /// + /// + public interface IUpliftVanKernel + { + /// + /// Sets the soil model. + /// + SoilModel SoilModel { set; } + + /// + /// Sets the soil profile. + /// + SoilProfile2D SoilProfile { set; } + + /// + /// Sets the location. + /// + StabilityLocation Location { set; } + + /// + /// Sets the surface line. + /// + SurfaceLine2 SurfaceLine { set; } + + /// + /// Sets the move grid property. + /// + bool MoveGrid { set; } + + /// + /// Sets the maximum slice width. + /// [m] + /// + double MaximumSliceWidth { set; } + + /// + /// Sets the slip plane Uplift Van. + /// + SlipPlaneUpliftVan SlipPlaneUpliftVan { set; } + + /// + /// Sets whether the grid is automatically determined or not. + /// + bool GridAutomaticDetermined { set; } + + /// + /// Sets whether zones should be created. + /// + bool CreateZones { set; } + + /// + /// Sets whether forbidden zones are automatically determined or not. + /// + bool AutomaticForbiddenZones { set; } + + /// + /// Sets the minimum depth of the slip plane. + /// [m] + /// + double SlipPlaneMinimumDepth { set; } + + /// + /// Sets the minimum length of the slip plane. + /// [m] + /// + double SlipPlaneMinimumLength { set; } + + /// + /// Gets the factor of stability. + /// + double FactoryOfStability { get; } + + /// + /// Gets the z value. + /// + double ZValue { get; } + + /// + /// Gets the forbidden zones x entry min. + /// + double ForbiddenZonesXEntryMin { get; } + + /// + /// Gets the forbidden zones x entry max. + /// + double ForbiddenZonesXEntryMax { get; } + + /// + /// Gets whether the forbidden zones are automatically calculated. + /// + bool ForbiddenZonesAutomaticallyCalculated { get; } + + /// + /// Gets whether the grid is automatically calculated. + /// + bool GridAutomaticallyCalculated { get; } + + /// + /// Gets the sliding curve result. + /// + SlidingDualCircle SlidingCurveResult { get; } + + /// + /// Gets the slip plane result. + /// + SlipPlaneUpliftVan SlipPlaneResult { get; } + + /// + /// Performs the Uplift Van calculation. + /// + void Calculate(); + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/MacroStabilityInwardsSubCalculatorFactory.cs =================================================================== diff -u -r4304327f96a967967877c287ed20f85d51255b41 -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/MacroStabilityInwardsSubCalculatorFactory.cs (.../MacroStabilityInwardsSubCalculatorFactory.cs) (revision 4304327f96a967967877c287ed20f85d51255b41) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/MacroStabilityInwardsSubCalculatorFactory.cs (.../MacroStabilityInwardsSubCalculatorFactory.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -45,7 +45,7 @@ } } - public IUpliftVanCalculator CreateUpliftVanCalculator() + public IUpliftVanKernel CreateUpliftVanCalculator() { return new UpliftVanCalculator(); } Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/UpliftVanCalculator.cs =================================================================== diff -u -r01bd90d4fab9699280c5619754fc55b4f03be08a -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/UpliftVanCalculator.cs (.../UpliftVanCalculator.cs) (revision 01bd90d4fab9699280c5619754fc55b4f03be08a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/SubCalculator/UpliftVanCalculator.cs (.../UpliftVanCalculator.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -32,7 +32,7 @@ /// /// Class for performing an Uplift Van calculation based on . /// - public class UpliftVanCalculator : IUpliftVanCalculator + public class UpliftVanCalculator : IUpliftVanKernel { private readonly WTIStabilityCalculation wrappedCalculator; private readonly StabilityModel calculatorInput; Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/SubCalculator/MacroStabilityInwardsSubCalculatorFactoryTest.cs =================================================================== diff -u -r1d6eb4a980508dc55fca5a225fe777c7fd3cbd2e -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/SubCalculator/MacroStabilityInwardsSubCalculatorFactoryTest.cs (.../MacroStabilityInwardsSubCalculatorFactoryTest.cs) (revision 1d6eb4a980508dc55fca5a225fe777c7fd3cbd2e) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/SubCalculator/MacroStabilityInwardsSubCalculatorFactoryTest.cs (.../MacroStabilityInwardsSubCalculatorFactoryTest.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -73,7 +73,7 @@ IMacroStabilityInwardsSubCalculatorFactory factory = MacroStabilityInwardsSubCalculatorFactory.Instance; // Call - IUpliftVanCalculator subCalculator = factory.CreateUpliftVanCalculator(); + IUpliftVanKernel subCalculator = factory.CreateUpliftVanCalculator(); // Assert Assert.IsNotNull(subCalculator); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/SubCalculator/UpliftVanCalculatorTest.cs =================================================================== diff -u -r815d6acccf30d1310d695a0b4a90d33a6cdd497a -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/SubCalculator/UpliftVanCalculatorTest.cs (.../UpliftVanCalculatorTest.cs) (revision 815d6acccf30d1310d695a0b4a90d33a6cdd497a) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/SubCalculator/UpliftVanCalculatorTest.cs (.../UpliftVanCalculatorTest.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -34,7 +34,7 @@ var calculator = new UpliftVanCalculator(); // Assert - Assert.IsInstanceOf(calculator); + Assert.IsInstanceOf(calculator); } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/SubCalculator/TestMacroStabilityInwardsSubCalculatorFactoryTest.cs =================================================================== diff -u -r4304327f96a967967877c287ed20f85d51255b41 -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/SubCalculator/TestMacroStabilityInwardsSubCalculatorFactoryTest.cs (.../TestMacroStabilityInwardsSubCalculatorFactoryTest.cs) (revision 4304327f96a967967877c287ed20f85d51255b41) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/SubCalculator/TestMacroStabilityInwardsSubCalculatorFactoryTest.cs (.../TestMacroStabilityInwardsSubCalculatorFactoryTest.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -46,7 +46,7 @@ var factory = new TestMacroStabilityInwardsSubCalculatorFactory(); // Call - IUpliftVanCalculator subCalculator = factory.CreateUpliftVanCalculator(); + IUpliftVanKernel subCalculator = factory.CreateUpliftVanCalculator(); // Assert Assert.AreSame(factory.LastCreatedUpliftVanCalculator, subCalculator); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/SubCalculator/TestMacroStabilityInwardsSubCalculatorFactory.cs =================================================================== diff -u -r4304327f96a967967877c287ed20f85d51255b41 -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/SubCalculator/TestMacroStabilityInwardsSubCalculatorFactory.cs (.../TestMacroStabilityInwardsSubCalculatorFactory.cs) (revision 4304327f96a967967877c287ed20f85d51255b41) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/SubCalculator/TestMacroStabilityInwardsSubCalculatorFactory.cs (.../TestMacroStabilityInwardsSubCalculatorFactory.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -39,7 +39,7 @@ public UpliftVanCalculatorStub LastCreatedUpliftVanCalculator { get; } - public IUpliftVanCalculator CreateUpliftVanCalculator() + public IUpliftVanKernel CreateUpliftVanCalculator() { return LastCreatedUpliftVanCalculator; } Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/SubCalculator/UpliftVanCalculatorStub.cs =================================================================== diff -u -rfed1915e1f165e844339d8cf21479f4639cfe546 -rdea4b8c2f53fe77b14bdcf4bce131f47ece21664 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/SubCalculator/UpliftVanCalculatorStub.cs (.../UpliftVanCalculatorStub.cs) (revision fed1915e1f165e844339d8cf21479f4639cfe546) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/SubCalculator/UpliftVanCalculatorStub.cs (.../UpliftVanCalculatorStub.cs) (revision dea4b8c2f53fe77b14bdcf4bce131f47ece21664) @@ -28,7 +28,7 @@ /// /// Stub for the real Uplift Van sub calculator of macro stability inwards. /// - public class UpliftVanCalculatorStub : IUpliftVanCalculator + public class UpliftVanCalculatorStub : IUpliftVanKernel { /// /// Gets a value indicating whether was called or not.