// 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;
using System.Drawing;
namespace Ringtoets.MacroStabilityInwards.Primitives
{
///
/// This class represents profiles that were imported from D-Soil Model and will later on be used to create the
/// necessary input for executing a macro stability inwards calculation.
///
public class MacroStabilityInwardsSoilLayer1D
{
///
/// Creates a new instance of , where the top is set to .
///
/// The top level of the layer.
public MacroStabilityInwardsSoilLayer1D(double top)
{
Top = top;
Properties = new SoilLayerProperties();
}
///
/// Gets the properties of the .
///
public SoilLayerProperties Properties { get; }
///
/// Gets the top level of the .
///
public double Top { get; }
///
/// Gets or sets a value indicating whether or not the is an aquifer.
///
public bool IsAquifer
{
get
{
return Properties.IsAquifer;
}
set
{
Properties.IsAquifer = value;
}
}
///
/// Gets or sets a value indicating whether or not to use POP for the .
///
public bool UsePop
{
get
{
return Properties.UsePop;
}
set
{
Properties.UsePop = value;
}
}
///
/// Gets or sets the shear strength model used for the .
///
public ShearStrengthModel ShearStrengthModel
{
get
{
return Properties.ShearStrengthModel;
}
set
{
Properties.ShearStrengthModel = value;
}
}
///
/// Gets or sets the mean of the distrubtion for the volumic weight of the above the phreatic level.
/// [kN/m³]
///
public double AbovePhreaticLevelMean
{
get
{
return Properties.AbovePhreaticLevelMean;
}
set
{
Properties.AbovePhreaticLevelMean = value;
}
}
///
/// Gets or sets the deviation of the distrubtion for the volumic weight of the above the phreatic level.
/// [kN/m³]
///
public double AbovePhreaticLevelDeviation
{
get
{
return Properties.AbovePhreaticLevelDeviation;
}
set
{
Properties.AbovePhreaticLevelDeviation = value;
}
}
///
/// Gets or sets the mean of the distrubtion for the volumic weight of the below the phreatic level.
/// [kN/m³]
///
public double BelowPhreaticLevelMean
{
get
{
return Properties.BelowPhreaticLevelMean;
}
set
{
Properties.BelowPhreaticLevelMean = value;
}
}
///
/// Gets or sets the deviation of the distrubtion for the volumic weight of the below the phreatic level.
/// [kN/m³]
///
public double BelowPhreaticLevelDeviation
{
get
{
return Properties.BelowPhreaticLevelDeviation;
}
set
{
Properties.BelowPhreaticLevelDeviation = value;
}
}
///
/// Gets or sets the mean of the distribution for the friction angle of the
/// [°]
///
public double FrictionAngleMean
{
get
{
return Properties.FrictionAngleMean;
}
set
{
Properties.FrictionAngleMean = value;
}
}
///
/// Gets or sets the deviation of the distribution for the friction angle of the .
/// [°]
///
public double FrictionAngleDeviation
{
get
{
return Properties.FrictionAngleDeviation;
}
set
{
Properties.FrictionAngleDeviation = value;
}
}
///
/// Gets or sets the shift of the distrubtion for the friction angle of the .
/// [°]
///
public double FrictionAngleShift
{
get
{
return Properties.FrictionAngleShift;
}
set
{
Properties.FrictionAngleShift = value;
}
}
///
/// Gets or sets the mean of the distribution for the ratio of shear strength S of the
/// [-]
///
public double ShearStrengthRatioMean
{
get
{
return Properties.ShearStrengthRatioMean;
}
set
{
Properties.ShearStrengthRatioMean = value;
}
}
///
/// Gets or sets the deviation of the distribution for the ratio of shear strength S of the .
/// [-]
///
public double ShearStrengthRatioDeviation
{
get
{
return Properties.ShearStrengthRatioDeviation;
}
set
{
Properties.ShearStrengthRatioDeviation = value;
}
}
///
/// Gets or sets the shift of the distrubtion for the ratio of shear strength S of the .
/// [-]
///
public double ShearStrengthRatioShift
{
get
{
return Properties.ShearStrengthRatioShift;
}
set
{
Properties.ShearStrengthRatioShift = value;
}
}
///
/// Gets or sets the mean of the distribution for the strength increase exponent (m) of the
/// [-]
///
public double StrengthIncreaseExponentMean
{
get
{
return Properties.StrengthIncreaseExponentMean;
}
set
{
Properties.StrengthIncreaseExponentMean = value;
}
}
///
/// Gets or sets the deviation of the distribution for the strength increase exponent (m) of the .
/// [-]
///
public double StrengthIncreaseExponentDeviation
{
get
{
return Properties.StrengthIncreaseExponentDeviation;
}
set
{
Properties.StrengthIncreaseExponentDeviation = value;
}
}
///
/// Gets or sets the shift of the distrubtion for the strength increase exponent (m) of the .
/// [-]
///
public double StrengthIncreaseExponentShift
{
get
{
return Properties.StrengthIncreaseExponentShift;
}
set
{
Properties.StrengthIncreaseExponentShift = value;
}
}
///
/// Gets or sets the mean of the distribution for the cohesion of the
/// [kN/m³]
///
public double CohesionMean
{
get
{
return Properties.CohesionMean;
}
set
{
Properties.CohesionMean = value;
}
}
///
/// Gets or sets the deviation of the distribution for the cohesion of the .
/// [kN/m³]
///
public double CohesionDeviation
{
get
{
return Properties.CohesionDeviation;
}
set
{
Properties.CohesionDeviation = value;
}
}
///
/// Gets or sets the shift of the distrubtion for the cohesion of the .
/// [kN/m³]
///
public double CohesionShift
{
get
{
return Properties.CohesionShift;
}
set
{
Properties.CohesionShift = value;
}
}
///
/// Gets or sets the mean of the distribution for the POP of the
/// [kN/m²]
///
public double PopMean
{
get
{
return Properties.PopMean;
}
set
{
Properties.PopMean = value;
}
}
///
/// Gets or sets the deviation of the distribution for the POP of the .
/// [kN/m²]
///
public double PopDeviation
{
get
{
return Properties.PopDeviation;
}
set
{
Properties.PopDeviation = value;
}
}
///
/// Gets or sets the shift of the distrubtion for the POP of the .
/// [kN/m²]
///
public double PopShift
{
get
{
return Properties.PopShift;
}
set
{
Properties.PopShift = value;
}
}
///
/// Gets or sets the name of the material that was assigned to the .
///
/// Thrown when is null.
public string MaterialName
{
get
{
return Properties.MaterialName;
}
set
{
Properties.MaterialName = value;
}
}
///
/// Gets or sets the that was used to represent the .
///
public Color Color
{
get
{
return Properties.Color;
}
set
{
Properties.Color = value;
}
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj))
{
return false;
}
if (ReferenceEquals(this, obj))
{
return true;
}
if (obj.GetType() != GetType())
{
return false;
}
return Equals((MacroStabilityInwardsSoilLayer1D) obj);
}
public override int GetHashCode()
{
unchecked
{
int hashCode = MaterialName?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ Top.GetHashCode();
hashCode = (hashCode * 397) ^ Properties.GetHashCode();
return hashCode;
}
}
private bool Equals(MacroStabilityInwardsSoilLayer1D other)
{
return string.Equals(MaterialName, other.MaterialName)
&& Top.Equals(other.Top)
&& Properties.Equals(other.Properties);
}
}
}