// 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 Ringtoets.AssemblyTool.Data; using Ringtoets.Common.Primitives; namespace Ringtoets.AssemblyTool.KernelWrapper.Calculators.Assembly { /// /// Interface representing a failure mechanism section assembly calculator. /// /// /// This interface is introduced for being able to test the conversion of: /// /// Ringtoets failure mechanism section assembly input into kernel input; /// kernel output into Ringtoets failure mechanism section assembly output. /// /// public interface IFailureMechanismSectionAssemblyCalculator { /// /// Assembles the simple assessment for the given . /// /// The to assemble for. /// A . /// Thrown when /// an error occurs when performing the assembly. FailureMechanismSectionAssembly AssembleSimpleAssessment(SimpleAssessmentResultType input); /// /// Assembles the simple assessment for the given . /// /// The to assemble for. /// A . /// Thrown when /// an error occurs when performing the assembly. FailureMechanismSectionAssembly AssembleSimpleAssessment(SimpleAssessmentResultValidityOnlyType input); /// /// Assembles the detailed assessment based on the input parameters. /// /// The calculated probability. /// The list of categories for this failure mechanism section. /// A . /// Thrown when /// an error occurs when performing the assembly. FailureMechanismSectionAssembly AssembleDetailedAssessment(double probability, IEnumerable categories); /// /// Assembles the detailed assessment based on the input parameters. /// /// The calculated probability. /// The list of categories for this failure mechanism section. /// The 'N' parameter used to factor in the 'length effect'. /// A . /// Thrown when /// an error occurs when performing the assembly. FailureMechanismSectionAssembly AssembleDetailedAssessment(double probability, IEnumerable categories, double n); } }