// 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; namespace Ringtoets.Piping.IO.Readers { /// /// Class that represents a piping calculation that is read via . /// public class ReadPipingCalculation : IReadPipingCalculationItem { /// /// Creates a new instance of . /// /// The container of the properties for the . /// Thrown when is null. public ReadPipingCalculation(ConstructionProperties constructionProperties) { if (constructionProperties == null) { throw new ArgumentNullException(nameof(constructionProperties)); } Name = constructionProperties.Name; AssessmentLevel = constructionProperties.AssessmentLevel; HydraulicBoundaryLocation = constructionProperties.HydraulicBoundaryLocation; SurfaceLine = constructionProperties.SurfaceLine; EntryPointL = constructionProperties.EntryPointL; ExitPointL = constructionProperties.ExitPointL; StochasticSoilModel = constructionProperties.StochasticSoilModel; StochasticSoilProfile = constructionProperties.StochasticSoilProfile; PhreaticLevelExitMean = constructionProperties.PhreaticLevelExitMean; PhreaticLevelExitStandardDeviation = constructionProperties.PhreaticLevelExitStandardDeviation; DampingFactorExitMean = constructionProperties.DampingFactorExitMean; DampingFactorExitStandardDeviation = constructionProperties.DampingFactorExitStandardDeviation; } /// /// Gets the assessment level of the read piping calculation. /// public double AssessmentLevel { get; } /// /// Gets the name of the hydraulic boundary location of the read piping calculation. /// public string HydraulicBoundaryLocation { get; } /// /// Gets the name of the surface line of the read piping calculation. /// public string SurfaceLine { get; } /// /// Gets the l-coordinate of the entry point of the read piping calculation. /// public double EntryPointL { get; } /// /// Gets the l-coordinate of the exit point of the read piping calculation. /// public double ExitPointL { get; } /// /// Gets the name of the stochastic soil model of the read piping calculation. /// public string StochasticSoilModel { get; } /// /// Gets the name of the stochastic soil profile of the read piping calculation. /// public string StochasticSoilProfile { get; } /// /// Gets the mean of the phreatic level exit of the read piping calculation. /// public double PhreaticLevelExitMean { get; } /// /// Gets the standard deviation of the phreatic level exit of the read piping calculation. /// public double PhreaticLevelExitStandardDeviation { get; } /// /// Gets the mean of the damping factor exit of the read piping calculation. /// public double DampingFactorExitMean { get; } /// /// Gets the standard deviation of the damping factor exit of the read piping calculation. /// public double DampingFactorExitStandardDeviation { get; } public string Name { get; } /// /// Class holding the various construction parameters for . /// public class ConstructionProperties { /// /// Gets or sets the value for /// public string Name { internal get; set; } /// /// Gets or sets the value for /// public double AssessmentLevel { internal get; set; } /// /// Gets or sets the value for /// public string HydraulicBoundaryLocation { internal get; set; } /// /// Gets or sets the value for /// public string SurfaceLine { internal get; set; } /// /// Gets or sets the value for /// public double EntryPointL { internal get; set; } /// /// Gets or sets the value for /// public double ExitPointL { internal get; set; } /// /// Gets or sets the value for /// public string StochasticSoilModel { internal get; set; } /// /// Gets or sets the value for /// public string StochasticSoilProfile { internal get; set; } /// /// Gets or sets the value for /// public double PhreaticLevelExitMean { internal get; set; } /// /// Gets or sets the value for /// public double PhreaticLevelExitStandardDeviation { internal get; set; } /// /// Gets or sets the value for /// public double DampingFactorExitMean { internal get; set; } /// /// Gets or sets the value for /// public double DampingFactorExitStandardDeviation { internal get; set; } } } }