Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilLayer.cs
===================================================================
diff -u -r4000 -r4052
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilLayer.cs (.../SoilLayer.cs) (revision 4000)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilLayer.cs (.../SoilLayer.cs) (revision 4052)
@@ -25,73 +25,72 @@
using Deltares.DamEngine.Data.Standard.Language;
using Deltares.DamEngine.Data.Standard.Validation;
-namespace Deltares.DamEngine.Data.Geotechnics
+namespace Deltares.DamEngine.Data.Geotechnics;
+
+///
+/// Soil Layer object
+///
+public class SoilLayer : GeometryObject
{
+ private string soilName;
+
///
- /// Soil Layer object
+ /// Gets or sets the soil object
///
- public class SoilLayer : GeometryObject
- {
- private string soilName;
+ /// soil value
+ public virtual Soil Soil { get; set; }
- ///
- /// Gets or sets the soil object
- ///
- /// soil value
- public virtual Soil Soil { get; set; }
-
- ///
- /// Gets or sets the name of the soil.
- /// When needed, it is used as a placeholder to be able to retrieve the soil by name
- ///
- ///
- /// The name of the soil.
- ///
- public virtual string SoilName
+ ///
+ /// Gets or sets the name of the soil.
+ /// When needed, it is used as a placeholder to be able to retrieve the soil by name
+ ///
+ ///
+ /// The name of the soil.
+ ///
+ public virtual string SoilName
+ {
+ get
{
- get
+ if (string.IsNullOrEmpty(soilName) && Soil != null)
{
- if (string.IsNullOrEmpty(soilName) && Soil != null)
- {
- soilName = Soil.Name;
- }
-
- return soilName;
+ soilName = Soil.Name;
}
- set
- {
- soilName = value;
- }
+
+ return soilName;
}
+ set
+ {
+ soilName = value;
+ }
+ }
- ///
- /// Defines whether the layer acts as aquifer (true) or aquitard (false).
- ///
- public virtual bool IsAquifer { get; set; }
+ ///
+ /// Defines whether the layer acts as aquifer (true) or aquitard (false).
+ ///
+ public virtual bool IsAquifer { get; set; }
- ///
- /// Gets or sets the waterpressure interpolation model.
- ///
- ///
- /// The waterpressure interpolation model.
- ///
- public virtual WaterpressureInterpolationModel WaterpressureInterpolationModel { get; set; }
+ ///
+ /// Gets or sets the waterpressure interpolation model.
+ ///
+ ///
+ /// The waterpressure interpolation model.
+ ///
+ public virtual WaterpressureInterpolationModel WaterpressureInterpolationModel { get; set; }
- ///
- /// Validates the layer.
- ///
- ///
- [Validate]
- public ValidationResult[] ValidateLayer()
+ ///
+ /// Validates the layer.
+ ///
+ ///
+ [Validate]
+ public ValidationResult[] ValidateLayer()
+ {
+ var results = new List();
{
- var results = new List();
+ if (Soil == null)
{
- if (Soil == null)
- {
- results.Add(new ValidationResult(ValidationResultType.Error, LocalizationManager.GetTranslatedText(GetType(), "NoSoilAssigned"), this));
- }
+ results.Add(new ValidationResult(ValidationResultType.Error, LocalizationManager.GetTranslatedText(GetType(), "NoSoilAssigned"), this));
}
- return results.ToArray();
}
+ return results.ToArray();
}
}
\ No newline at end of file