Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/TargetProbabilityCalculationOutput.cs =================================================================== diff -u --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/TargetProbabilityCalculationOutput.cs (revision 0) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/TargetProbabilityCalculationOutput.cs (revision 7cbe49a37b2a60f38278548b42fc6a20e82680ce) @@ -0,0 +1,65 @@ +// 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.Data.Output +{ + /// + /// Container of all relevant output generated by a type 2 calculation via Hydra-Ring ("iterate towards a target probability, provided as reliability index"). + /// + public class TargetProbabilityCalculationOutput + { + private readonly double result; + private readonly double actualTargetProbability; + + /// + /// Creates a new instance of the class. + /// + /// The result corresponding to . + /// The actual target probability that was reached. + public TargetProbabilityCalculationOutput(double result, double actualTargetProbability) + { + this.result = result; + this.actualTargetProbability = actualTargetProbability; + } + + /// + /// Gets the result corresponding to . + /// + public double Result + { + get + { + return result; + } + } + + /// + /// Gets the actual target probability that was reached. + /// + public double ActualTargetProbability + { + get + { + return actualTargetProbability; + } + } + } +} Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Ringtoets.HydraRing.Calculation.csproj =================================================================== diff -u -rde737ee4b24659d188bb137d385572159bc099ff -r7cbe49a37b2a60f38278548b42fc6a20e82680ce --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Ringtoets.HydraRing.Calculation.csproj (.../Ringtoets.HydraRing.Calculation.csproj) (revision de737ee4b24659d188bb137d385572159bc099ff) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Ringtoets.HydraRing.Calculation.csproj (.../Ringtoets.HydraRing.Calculation.csproj) (revision 7cbe49a37b2a60f38278548b42fc6a20e82680ce) @@ -41,6 +41,7 @@ + Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Data/Output/TargetProbabilityCalculationOutputTest.cs =================================================================== diff -u --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Data/Output/TargetProbabilityCalculationOutputTest.cs (revision 0) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Data/Output/TargetProbabilityCalculationOutputTest.cs (revision 7cbe49a37b2a60f38278548b42fc6a20e82680ce) @@ -0,0 +1,41 @@ +// 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 NUnit.Framework; +using Ringtoets.HydraRing.Calculation.Data.Output; + +namespace Ringtoets.HydraRing.Calculation.Test.Data.Output +{ + [TestFixture] + public class TargetProbabilityCalculationOutputTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var targetProbabilityCalculationOutput = new TargetProbabilityCalculationOutput(1.1, 2.2); + + // Assert + Assert.AreEqual(1.1, targetProbabilityCalculationOutput.Result); + Assert.AreEqual(2.2, targetProbabilityCalculationOutput.ActualTargetProbability); + } + } +} Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Ringtoets.HydraRing.Calculation.Test.csproj =================================================================== diff -u -rde737ee4b24659d188bb137d385572159bc099ff -r7cbe49a37b2a60f38278548b42fc6a20e82680ce --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Ringtoets.HydraRing.Calculation.Test.csproj (.../Ringtoets.HydraRing.Calculation.Test.csproj) (revision de737ee4b24659d188bb137d385572159bc099ff) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Ringtoets.HydraRing.Calculation.Test.csproj (.../Ringtoets.HydraRing.Calculation.Test.csproj) (revision 7cbe49a37b2a60f38278548b42fc6a20e82680ce) @@ -49,6 +49,7 @@ +