// 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 Core.Common.Base; using Core.Common.Base.Data; using Ringtoets.Common.Data.Calculation; namespace Ringtoets.Piping.Data { /// /// Simple class containing the results of a Piping calculation. /// public class PipingOutput : Observable, ICalculationOutput { /// /// Creates a new instance of . /// /// The calculated z-value for the uplift sub calculation. /// The factor of safety for the uplift sub calculation. /// The calculated z-value for the heave sub calculation. /// The factor of safety for the heave sub calculation. /// The calculated z-value for the Sellmeijer sub calculation. /// The factor of safety for the Sellmeijer sub calculation. /// The gradient calculated for the heave sub calculation. /// The creep coefficient calculated for the Sellmeijer sub calculation. /// The critical fall calculated for the Sellmeijer sub calculation. /// The reduced fall calculated for the Sellmeijer sub calculation. public PipingOutput(double upliftZValue, double upliftFactorOfSafety, double heaveZValue, double heaveFactorOfSafety, double sellmeijerZValue, double sellmeijerFactorOfSafety, double heaveGradient, double sellmeijerCreepCoefficient, double sellmeijerCriticalFall, double sellmeijerReducedFall) { HeaveFactorOfSafety = heaveFactorOfSafety; HeaveZValue = heaveZValue; UpliftFactorOfSafety = upliftFactorOfSafety; UpliftZValue = upliftZValue; SellmeijerFactorOfSafety = sellmeijerFactorOfSafety; SellmeijerZValue = sellmeijerZValue; HeaveGradient = new RoundedDouble(2, heaveGradient); SellmeijerCreepCoefficient = new RoundedDouble(1, sellmeijerCreepCoefficient); SellmeijerCriticalFall = new RoundedDouble(2, sellmeijerCriticalFall); SellmeijerReducedFall = new RoundedDouble(2, sellmeijerReducedFall); } /// /// The calculated z-value for the uplift sub calculation. /// public double UpliftZValue { get; private set; } /// /// The factor of safety for the uplift sub calculation. /// public double UpliftFactorOfSafety { get; private set; } /// /// The calculated z-value for the heave sub calculation. /// public double HeaveZValue { get; private set; } /// /// The factor of safety for the heave sub calculation. /// public double HeaveFactorOfSafety { get; private set; } /// /// The calculated z-value for the Sellmeijer sub calculation. /// public double SellmeijerZValue { get; private set; } /// /// The factor of safety for the Sellmeijer sub calculation. /// public double SellmeijerFactorOfSafety { get; private set; } /// /// The gradient that was calculated for the heave sub calculation. /// public RoundedDouble HeaveGradient { get; private set; } /// /// The creep coefficient that was calculated for the Sellmeijer sub calculation. /// public RoundedDouble SellmeijerCreepCoefficient { get; private set; } /// /// The critical fall that was calculated for the Sellmeijer sub calculation. /// public RoundedDouble SellmeijerCriticalFall { get; private set; } /// /// The reduced fall that was calculated for the Sellmeijer sub calculation. /// public RoundedDouble SellmeijerReducedFall { get; private set; } } }