using Deltares.Standard.EventPublisher; namespace Deltares.Stability { public class CalculationParameters { private double halfSectionLength = 0; private bool isEndSectionFrictionUsed = false; private double minimalRequiredDepth = 0; private double startValueSafetyFactor = 1; public CalculationParameters() {} /// /// Minimum Circle Depth for Bishop,Bishop Probabilstic Random Field and UpliftVan Models /// public double MinimalRequiredDepth { get { return minimalRequiredDepth; } set { DataEventPublisher.BeforeChange(this, "MinimalRequiredDepth"); minimalRequiredDepth = value; DataEventPublisher.AfterChange(this, "MinimalRequiredDepth"); } } /// /// Start value saftey factor for Bishop and UpliftVan Models /// public double StartValueSafetyFactor { get { return startValueSafetyFactor; } set { DataEventPublisher.BeforeChange(this, "StartValueSafetyFactor"); startValueSafetyFactor = value; DataEventPublisher.AfterChange(this, "StartValueSafetyFactor"); } } /// /// Expected length of sliding surface for Bishop model /// public double HalfSectionLength { get { return halfSectionLength; } set { DataEventPublisher.BeforeChange(this, "HalfSectionLength"); halfSectionLength = value; DataEventPublisher.AfterChange(this, "HalfSectionLength"); } } /// /// gets or sets the value indicating whether end section friction is used or not /// public bool IsEndSectionFrictionUsed { get { return isEndSectionFrictionUsed; } set { DataEventPublisher.BeforeChange(this, "IsEndSectionFrictionUsed"); isEndSectionFrictionUsed = value; DataEventPublisher.AfterChange(this, "IsEndSectionFrictionUsed"); } } } }