Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs =================================================================== diff -u -rb1c7ec488d3c3f97a4c3b53669623aa8b678d36b -r70df02232e2470ca8edfa1181512e96c580d264a --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs) (revision b1c7ec488d3c3f97a4c3b53669623aa8b678d36b) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRow.cs) (revision 70df02232e2470ca8edfa1181512e96c580d264a) @@ -21,7 +21,9 @@ using System; using System.ComponentModel; +using Ringtoets.AssemblyTool.Data; using Ringtoets.Common.Data.AssessmentSection; +using Ringtoets.Common.Data.Exceptions; using Ringtoets.Common.Forms.TypeConverters; using Ringtoets.Common.Forms.Views; using Ringtoets.Common.Primitives; @@ -82,6 +84,50 @@ } /// + /// Gets or sets the value representing the detailed assessment result. + /// + public DetailedAssessmentResultType DetailedAssessmentResult + { + get + { + return SectionResult.DetailedAssessmentResult; + } + set + { + SectionResult.DetailedAssessmentResult = value; + SectionResult.NotifyObservers(); + } + } + + /// + /// Gets the value representing the result of the detailed assessment. + /// + [TypeConverter(typeof(NoProbabilityValueDoubleConverter))] + public double DetailedAssessmentProbability + { + get + { + return SectionResult.GetDetailedAssessmentProbability(failureMechanism, assessmentSection); + } + } + + /// + /// Gets or sets the value representing the tailor made assessment result. + /// + public TailorMadeAssessmentProbabilityCalculationResultType TailorMadeAssessmentResult + { + get + { + return SectionResult.TailorMadeAssessmentResult; + } + set + { + SectionResult.TailorMadeAssessmentResult = value; + SectionResult.NotifyObservers(); + } + } + + /// /// Gets or sets the tailor made assessment probability of the . /// /// Thrown when is @@ -101,15 +147,99 @@ } /// - /// Gets the value representing the result of the detailed assessment. + /// Gets the simple assembly category group. /// + /// Thrown when the + /// could not be created. + public FailureMechanismSectionAssemblyCategoryGroup SimpleAssemblyCategoryGroup + { + get + { + return GrassCoverErosionInwardsFailureMechanismSectionResultAssemblyFactory.AssembleSimpleAssessment(SectionResult).Group; + } + } + + /// + /// Gets the detailed assembly category group. + /// + /// Thrown when the + /// could not be created. + public FailureMechanismSectionAssemblyCategoryGroup DetailedAssemblyCategoryGroup + { + get + { + return GrassCoverErosionInwardsFailureMechanismSectionResultAssemblyFactory.AssembleDetailedAssembly( + SectionResult, + failureMechanism, + assessmentSection).Group; + } + } + + /// + /// Gets the tailor made assembly category group. + /// + /// Thrown when the + /// could not be created. + public FailureMechanismSectionAssemblyCategoryGroup TailorMadeAssemblyCategoryGroup + { + get + { + return GrassCoverErosionInwardsFailureMechanismSectionResultAssemblyFactory.AssembleTailorMadeAssembly( + SectionResult, + failureMechanism, + assessmentSection).Group; + } + } + + /// + /// Gets the combined assembly category group. + /// + /// Thrown when the + /// could not be created. + public FailureMechanismSectionAssemblyCategoryGroup CombinedAssemblyCategoryGroup + { + get + { + return GrassCoverErosionInwardsFailureMechanismSectionResultAssemblyFactory.AssembleCombinedAssembly( + SectionResult, + failureMechanism, + assessmentSection).Group; + } + } + + /// + /// Gets or sets the indicator whether the combined assembly should be overwritten by . + /// + public bool UseManualAssemblyProbability + { + get + { + return SectionResult.UseManualAssemblyProbability; + } + set + { + SectionResult.UseManualAssemblyProbability = value; + SectionResult.NotifyObservers(); + } + } + + /// + /// Gets or sets the manually selected assembly probability. + /// + /// Thrown when is + /// not in the range [0,1]. [TypeConverter(typeof(NoProbabilityValueDoubleConverter))] - public double DetailedAssessmentProbability + public double ManualAssemblyProbability { get { - return SectionResult.GetDetailedAssessmentProbability(failureMechanism, assessmentSection); + return SectionResult.ManualAssemblyProbability; } + set + { + SectionResult.ManualAssemblyProbability = value; + SectionResult.NotifyObservers(); + } } ///