Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/HydraRingConfigurationSettings.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/HydraRingConfigurationSettings.cs (revision 0)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/HydraRingConfigurationSettings.cs (revision cfbf9b34d71b46cca6c038e90e45db85d883ea30)
@@ -0,0 +1,34 @@
+// Copyright (C) Stichting Deltares 2016. 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.
+
+namespace Ringtoets.HydraRing.Calculation
+{
+ ///
+ /// Container for configuration settings on a per basis.
+ ///
+ public class HydraRingConfigurationSettings
+ {
+ ///
+ /// Gets or sets the of the .
+ ///
+ public HydraRingFailureMechanismType HydraRingFailureMechanismType { get; set; }
+ }
+}
Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/HydraRingFailureMechanismType.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/HydraRingFailureMechanismType.cs (revision 0)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/HydraRingFailureMechanismType.cs (revision cfbf9b34d71b46cca6c038e90e45db85d883ea30)
@@ -0,0 +1,43 @@
+// Copyright (C) Stichting Deltares 2016. 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.
+
+namespace Ringtoets.HydraRing.Calculation
+{
+ ///
+ /// Enumeration that defines the failure mechanism types supported by Hydra-Ring.
+ ///
+ ///
+ /// The integer values correspond to failure mechanism ids defined within Hydra-Ring.
+ ///
+ public enum HydraRingFailureMechanismType
+ {
+ AssessmentLevel = 1,
+ QVariant = 3,
+ WaveHeight = 11,
+ WavePeakPeriod = 11,
+ WaveSpectralPeriod = 11,
+ DikesOvertopping = 101,
+ DikesPiping = 103,
+ StructuresOvertopping = 110,
+ StructuresClosure = 111,
+ StructuresStructuralFailure = 112
+ }
+}
Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Ringtoets.HydraRing.Calculation.csproj
===================================================================
diff -u -rcf2d321fa6dce0263e5a63d60f45ecde4b328086 -rcfbf9b34d71b46cca6c038e90e45db85d883ea30
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Ringtoets.HydraRing.Calculation.csproj (.../Ringtoets.HydraRing.Calculation.csproj) (revision cf2d321fa6dce0263e5a63d60f45ecde4b328086)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Ringtoets.HydraRing.Calculation.csproj (.../Ringtoets.HydraRing.Calculation.csproj) (revision cfbf9b34d71b46cca6c038e90e45db85d883ea30)
@@ -39,7 +39,9 @@
Properties\GlobalAssembly.cs
+
+
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/HydraRingFailureMechanismTypeTest.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/HydraRingFailureMechanismTypeTest.cs (revision 0)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/HydraRingFailureMechanismTypeTest.cs (revision cfbf9b34d71b46cca6c038e90e45db85d883ea30)
@@ -0,0 +1,51 @@
+// Copyright (C) Stichting Deltares 2016. 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 NUnit.Framework;
+
+namespace Ringtoets.HydraRing.Calculation.Test
+{
+ [TestFixture]
+ public class HydraRingFailureMechanismTypeTest
+ {
+ [Test]
+ public void Values_HasTen()
+ {
+ Assert.AreEqual(10, Enum.GetValues(typeof(HydraRingFailureMechanismType)).Length);
+ }
+
+ [Test]
+ public void ConvertToInteger_ForAllValues_ReturnsExpectedInteger()
+ {
+ Assert.AreEqual(1, (int) HydraRingFailureMechanismType.AssessmentLevel);
+ Assert.AreEqual(3, (int) HydraRingFailureMechanismType.QVariant);
+ Assert.AreEqual(11, (int) HydraRingFailureMechanismType.WaveHeight);
+ Assert.AreEqual(11, (int) HydraRingFailureMechanismType.WavePeakPeriod);
+ Assert.AreEqual(11, (int) HydraRingFailureMechanismType.WaveSpectralPeriod);
+ Assert.AreEqual(101, (int) HydraRingFailureMechanismType.DikesOvertopping);
+ Assert.AreEqual(103, (int) HydraRingFailureMechanismType.DikesPiping);
+ Assert.AreEqual(110, (int) HydraRingFailureMechanismType.StructuresOvertopping);
+ Assert.AreEqual(111, (int) HydraRingFailureMechanismType.StructuresClosure);
+ Assert.AreEqual(112, (int) HydraRingFailureMechanismType.StructuresStructuralFailure);
+ }
+ }
+}
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Ringtoets.HydraRing.Calculation.Test.csproj
===================================================================
diff -u -rcf2d321fa6dce0263e5a63d60f45ecde4b328086 -rcfbf9b34d71b46cca6c038e90e45db85d883ea30
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Ringtoets.HydraRing.Calculation.Test.csproj (.../Ringtoets.HydraRing.Calculation.Test.csproj) (revision cf2d321fa6dce0263e5a63d60f45ecde4b328086)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Ringtoets.HydraRing.Calculation.Test.csproj (.../Ringtoets.HydraRing.Calculation.Test.csproj) (revision cfbf9b34d71b46cca6c038e90e45db85d883ea30)
@@ -49,6 +49,7 @@
+