// Copyright (C) Stichting Deltares 2018. 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 Riskeer.AssemblyTool.Data; namespace Riskeer.AssemblyTool.KernelWrapper.Calculators.Assembly { /// /// Interface representing an assessment section assembly calculator. /// public interface IAssessmentSectionAssemblyCalculator { /// /// Assembles the failure mechanisms for the given . /// /// The collection of failure mechanism assemblies to assemble for. /// The signaling norm to calculate with. /// The lower limit norm to calculate with. /// The failure probability margin factor to /// calculate with. /// A . /// Thrown when /// an error occurs while assembling. FailureMechanismAssembly AssembleFailureMechanisms(IEnumerable input, double signalingNorm, double lowerLimitNorm, double failureProbabilityMarginFactor); /// /// Assembles the failure mechanisms for the given . /// /// The collection of failure mechanism assembly category groups /// to assemble for. /// A . /// Thrown when /// an error occurs while assembling. FailureMechanismAssemblyCategoryGroup AssembleFailureMechanisms(IEnumerable input); /// /// Assembles the assessment section for the given inputs. /// /// The assembly result for /// failure mechanisms without probability to assemble for. /// The assembly result for /// failure mechanisms with probability to assemble for. /// An . /// Thrown when /// an error occurs while assembling. AssessmentSectionAssemblyCategoryGroup AssembleAssessmentSection(FailureMechanismAssemblyCategoryGroup failureMechanismsWithoutProbability, FailureMechanismAssembly failureMechanismsWithProbability); /// /// Assembles the combined assessment section for the given input. /// /// The collection of failure mechanism section collections to assemble for. /// The length of the assessment section. /// A collection of . /// Thrown when /// an error occurs while assembling. IEnumerable AssembleCombinedFailureMechanismSections(IEnumerable> input, double assessmentSectionLength); } }