Index: DamEngine/trunk/src/Deltares.DamEngine.Data/General/FailureMechanismParametersMStab.cs =================================================================== diff -u -r4000 -r4052 --- DamEngine/trunk/src/Deltares.DamEngine.Data/General/FailureMechanismParametersMStab.cs (.../FailureMechanismParametersMStab.cs) (revision 4000) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/General/FailureMechanismParametersMStab.cs (.../FailureMechanismParametersMStab.cs) (revision 4052) @@ -23,106 +23,105 @@ using Deltares.DamEngine.Data.Standard; using Deltares.DamEngine.Data.Standard.Validation; -namespace Deltares.DamEngine.Data.General +namespace Deltares.DamEngine.Data.General; + +public class FailureMechanismParametersMStab : IAssignable, ICloneable { - public class FailureMechanismParametersMStab : IAssignable, ICloneable + /// + /// Additional specifications/settings of calculation using MStab + /// + public FailureMechanismParametersMStab() { - /// - /// Additional specifications/settings of calculation using MStab - /// - public FailureMechanismParametersMStab() - { - MStabParameters = new MStabParameters(); - IsStabilityCheckOnUplift = false; - } + MStabParameters = new MStabParameters(); + IsStabilityCheckOnUplift = false; + } - /// - /// Gets or sets the project working path. - /// - /// - /// The project working path. - /// - public string ProjectWorkingPath { get; set; } + /// + /// Gets or sets the project working path. + /// + /// + /// The project working path. + /// + public string ProjectWorkingPath { get; set; } - public Location Location { get; set; } - public SurfaceLine2 SurfaceLine { get; set; } - public PlLines.PlLines PlLines { get; set; } + public Location Location { get; set; } + public SurfaceLine2 SurfaceLine { get; set; } + public PlLines.PlLines PlLines { get; set; } - public SoilProfile1D SoilProfile { get; set; } - public string SoilGeometry2DName { get; set; } - public double RiverLevel { get; set; } - public double DikeTableHeight { get; set; } - public double TrafficLoad { get; set; } + public SoilProfile1D SoilProfile { get; set; } + public string SoilGeometry2DName { get; set; } + public double RiverLevel { get; set; } + public double DikeTableHeight { get; set; } + public double TrafficLoad { get; set; } - /// - /// Gets or sets the traffic load degree of consolidation. - /// Note: this number is a fraction so between 0-1 - /// - /// - /// The traffic load degree of consolidation. - /// - public double? TrafficLoadDegreeOfConsolidation { get; set; } + /// + /// Gets or sets the traffic load degree of consolidation. + /// Note: this number is a fraction so between 0-1 + /// + /// + /// The traffic load degree of consolidation. + /// + public double? TrafficLoadDegreeOfConsolidation { get; set; } - /// - /// Indicates whether in stability calculation a check on uplift will be performed before performin UpliftVan calculation. - /// Default it is false (set in constructor) - /// - public bool IsStabilityCheckOnUplift { get; set; } + /// + /// Indicates whether in stability calculation a check on uplift will be performed before performin UpliftVan calculation. + /// Default it is false (set in constructor) + /// + public bool IsStabilityCheckOnUplift { get; set; } - public EmbankmentDesignParameters EmbankmentDesignParameters { get; set; } + public EmbankmentDesignParameters EmbankmentDesignParameters { get; set; } - [Validate] public MStabParameters MStabParameters { get; set; } + [Validate] public MStabParameters MStabParameters { get; set; } - /// - /// Checks whether all required data is there. - /// - public bool IsComplete + /// + /// Checks whether all required data is there. + /// + public bool IsComplete + { + get { - get - { - return - !string.IsNullOrEmpty(MStabParameters.SoilDatabaseName) && - PlLines != null && - (SoilProfile != null || MStabParameters.GeometryCreationOptions.SoilGeometry2DFilename != "") && - Location != null && - SurfaceLine != null && - !string.IsNullOrEmpty(MStabParameters.ProjectFileName); - } + return + !string.IsNullOrEmpty(MStabParameters.SoilDatabaseName) && + PlLines != null && + (SoilProfile != null || MStabParameters.GeometryCreationOptions.SoilGeometry2DFilename != "") && + Location != null && + SurfaceLine != null && + !string.IsNullOrEmpty(MStabParameters.ProjectFileName); } + } - /// - /// Performs the Assignment - /// - /// - public void Assign(FailureMechanismParametersMStab failureMechanismParametersMStab) - { - ProjectWorkingPath = failureMechanismParametersMStab.ProjectWorkingPath; + /// + /// Performs the Assignment + /// + /// + public void Assign(FailureMechanismParametersMStab failureMechanismParametersMStab) + { + ProjectWorkingPath = failureMechanismParametersMStab.ProjectWorkingPath; - Location = failureMechanismParametersMStab.Location; - SurfaceLine = failureMechanismParametersMStab.SurfaceLine; - SoilProfile = failureMechanismParametersMStab.SoilProfile; - SoilGeometry2DName = failureMechanismParametersMStab.SoilGeometry2DName; - PlLines = failureMechanismParametersMStab.PlLines; + Location = failureMechanismParametersMStab.Location; + SurfaceLine = failureMechanismParametersMStab.SurfaceLine; + SoilProfile = failureMechanismParametersMStab.SoilProfile; + SoilGeometry2DName = failureMechanismParametersMStab.SoilGeometry2DName; + PlLines = failureMechanismParametersMStab.PlLines; - RiverLevel = failureMechanismParametersMStab.RiverLevel; - DikeTableHeight = failureMechanismParametersMStab.DikeTableHeight; - TrafficLoad = failureMechanismParametersMStab.TrafficLoad; - EmbankmentDesignParameters = failureMechanismParametersMStab.EmbankmentDesignParameters; + RiverLevel = failureMechanismParametersMStab.RiverLevel; + DikeTableHeight = failureMechanismParametersMStab.DikeTableHeight; + TrafficLoad = failureMechanismParametersMStab.TrafficLoad; + EmbankmentDesignParameters = failureMechanismParametersMStab.EmbankmentDesignParameters; - MStabParameters.Assign(failureMechanismParametersMStab.MStabParameters); - } + MStabParameters.Assign(failureMechanismParametersMStab.MStabParameters); + } - /// - /// Clones the object. - /// - /// FailureMechanismParametersMStab - public FailureMechanismParametersMStab Clone() - { - var failureMechanismParametersMStab = new FailureMechanismParametersMStab(); - failureMechanismParametersMStab.MStabParameters = MStabParameters.Clone(); - failureMechanismParametersMStab.Assign(this); + /// + /// Clones the object. + /// + /// FailureMechanismParametersMStab + public FailureMechanismParametersMStab Clone() + { + var failureMechanismParametersMStab = new FailureMechanismParametersMStab(); + failureMechanismParametersMStab.MStabParameters = MStabParameters.Clone(); + failureMechanismParametersMStab.Assign(this); - return failureMechanismParametersMStab; - } + return failureMechanismParametersMStab; } } \ No newline at end of file