// 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.HydraRing.Calculation.Data.Settings; using Ringtoets.HydraRing.Calculation.Data.Variables; namespace Ringtoets.HydraRing.Calculation.Data.Input { /// /// Container of all data necessary for performing a Hydra-Ring calculation. /// public abstract class HydraRingCalculationInput { /// /// Creates a new instance of the class. /// /// The id of the hydraulic boundary location to use during the calculation. protected HydraRingCalculationInput(long hydraulicBoundaryLocationId) { HydraulicBoundaryLocationId = hydraulicBoundaryLocationId; } /// /// Gets or sets the preprocessor settings. /// public PreprocessorSetting PreprocessorSetting { get; set; } /// /// Gets or sets the design tables settings. /// public DesignTablesSetting DesignTablesSetting { get; set; } /// /// Gets or sets the collection of numerics settings specified per sub mechanism. /// public Dictionary NumericsSettings { get; set; } /// /// Gets or sets the time integration settings. /// public TimeIntegrationSetting TimeIntegrationSetting { get; set; } /// /// Gets the . /// public abstract HydraRingFailureMechanismType FailureMechanismType { get; } /// /// Gets the id corresponding to the type of calculation that should be performed. /// public abstract int CalculationTypeId { get; } /// /// Gets the id of the variable that is relevant during the calculation. /// public abstract int VariableId { get; } /// /// Gets the id of the hydraulic boundary location to use during the calculation. /// public long HydraulicBoundaryLocationId { get; } /// /// Gets the section to perform the calculation for. /// public abstract HydraRingSection Section { get; } /// /// Gets the variables to use during the calculation. /// public virtual IEnumerable Variables { get { yield break; } } /// /// Gets the profile points to use during the calculation. /// public virtual IEnumerable ProfilePoints { get { yield break; } } /// /// Gets the foreland points to use during the calculation. /// public virtual IEnumerable ForelandsPoints { get { yield break; } } /// /// Gets the break water to use during the calculation. /// public virtual HydraRingBreakWater BreakWater { get { return null; } } /// /// Gets the reliability index to use during the calculation. /// /// Only relevant for calculations that iterate towards a reliability index. public virtual double Beta { get { return double.NaN; } } /// /// Gets the sub mechanism model id corresponding to the provided sub mechanism id. /// /// The sub mechanism id to get the sub mechanism model id for. /// The corresponding sub mechanism model id or null otherwise. public virtual int? GetSubMechanismModelId(int subMechanismId) { return null; } } }