using Deltares.Geotechnics; using Deltares.Probabilistic; using Deltares.Standard.Language; namespace Deltares.DeltaModel { /// /// Reflects the probability definition of a dike line /// public class DikeLineProbabilityDefinition : ProbabilityDefinition { private DikeLine dikeLine; /// /// Initializes a new instance of the class. /// /// The dike line. public DikeLineProbabilityDefinition(DikeLine dikeLine) { this.dikeLine = dikeLine; } /// /// Gets or sets the probability. /// /// /// The probability. /// public override double Probability { get { return dikeLine.AllowedFailureProbability.Probability; } set { dikeLine.AllowedFailureProbability.Probability = value; } } /// /// Returns the translated text for "AllowedFailureProbability". /// /// /// A that represents this instance. /// public override string ToString() { return LocalizationManager.GetTranslatedText(typeof(DikeLine), "AllowedFailureProbability") + " (" + base.ToString() + ")"; } } }