Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs =================================================================== diff -u -r94d4a8c842278686ba4974fd35b40898d11d79af -r68dedcde06592e2c864625e8d2e71c58c1183f73 --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs (.../GrassCoverErosionOutwardsFailureMechanism.cs) (revision 94d4a8c842278686ba4974fd35b40898d11d79af) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs (.../GrassCoverErosionOutwardsFailureMechanism.cs) (revision 68dedcde06592e2c864625e8d2e71c58c1183f73) @@ -40,12 +40,12 @@ IHasSectionResults { private readonly ObservableList sectionResults; - private readonly IList waterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm = new List(); - private readonly IList waterLevelCalculationsForMechanismSpecificSignalingNorm = new List(); - private readonly IList waterLevelCalculationsForMechanismSpecificLowerLimitNorm = new List(); - private readonly IList waveHeightCalculationsForMechanismSpecificFactorizedSignalingNorm = new List(); - private readonly IList waveHeightCalculationsForMechanismSpecificSignalingNorm = new List(); - private readonly IList waveHeightCalculationsForMechanismSpecificLowerLimitNorm = new List(); + private readonly ObservableList waterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm = new ObservableList(); + private readonly ObservableList waterLevelCalculationsForMechanismSpecificSignalingNorm = new ObservableList(); + private readonly ObservableList waterLevelCalculationsForMechanismSpecificLowerLimitNorm = new ObservableList(); + private readonly ObservableList waveHeightCalculationsForMechanismSpecificFactorizedSignalingNorm = new ObservableList(); + private readonly ObservableList waveHeightCalculationsForMechanismSpecificSignalingNorm = new ObservableList(); + private readonly ObservableList waveHeightCalculationsForMechanismSpecificLowerLimitNorm = new ObservableList(); /// /// Initializes a new instance of the class. @@ -91,50 +91,10 @@ /// public ForeshoreProfileCollection ForeshoreProfiles { get; } - public IObservableEnumerable SectionResults - { - get - { - return sectionResults; - } - } - /// - /// Sets hydraulic boundary location calculations for . - /// - /// The hydraulic boundary locations to add calculations for. - /// Thrown when is null. - public void SetHydraulicBoundaryLocationCalculations(IEnumerable hydraulicBoundaryLocations) - { - if (hydraulicBoundaryLocations == null) - { - throw new ArgumentNullException(nameof(hydraulicBoundaryLocations)); - } - - ClearHydraulicBoundaryLocationCalculations(); - - foreach (HydraulicBoundaryLocation hydraulicBoundaryLocation in hydraulicBoundaryLocations) - { - AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocation); - } - } - - public override void AddSection(FailureMechanismSection section) - { - base.AddSection(section); - sectionResults.Add(new GrassCoverErosionOutwardsFailureMechanismSectionResult(section)); - } - - public override void ClearAllSections() - { - base.ClearAllSections(); - sectionResults.Clear(); - } - - /// /// Gets the water level calculations corresponding to the mechanism specific factorized signaling norm. /// - public IEnumerable WaterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm + public IObservableEnumerable WaterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm { get { @@ -145,7 +105,7 @@ /// /// Gets the water level calculations corresponding to the mechanism specific signaling norm. /// - public IEnumerable WaterLevelCalculationsForMechanismSpecificSignalingNorm + public IObservableEnumerable WaterLevelCalculationsForMechanismSpecificSignalingNorm { get { @@ -156,7 +116,7 @@ /// /// Gets the water level calculations corresponding to the mechanism specific lower limit norm. /// - public IEnumerable WaterLevelCalculationsForMechanismSpecificLowerLimitNorm + public IObservableEnumerable WaterLevelCalculationsForMechanismSpecificLowerLimitNorm { get { @@ -167,7 +127,7 @@ /// /// Gets the wave height calculations corresponding to the mechanism specific factorized signaling norm. /// - public IEnumerable WaveHeightCalculationsForMechanismSpecificFactorizedSignalingNorm + public IObservableEnumerable WaveHeightCalculationsForMechanismSpecificFactorizedSignalingNorm { get { @@ -178,7 +138,7 @@ /// /// Gets the wave height calculations corresponding to the mechanism specific signaling norm. /// - public IEnumerable WaveHeightCalculationsForMechanismSpecificSignalingNorm + public IObservableEnumerable WaveHeightCalculationsForMechanismSpecificSignalingNorm { get { @@ -189,14 +149,54 @@ /// /// Gets the wave height calculations corresponding to the mechanism specific lower limit norm. /// - public IEnumerable WaveHeightCalculationsForMechanismSpecificLowerLimitNorm + public IObservableEnumerable WaveHeightCalculationsForMechanismSpecificLowerLimitNorm { get { return waveHeightCalculationsForMechanismSpecificLowerLimitNorm; } } + public IObservableEnumerable SectionResults + { + get + { + return sectionResults; + } + } + + /// + /// Sets hydraulic boundary location calculations for . + /// + /// The hydraulic boundary locations to add calculations for. + /// Thrown when is null. + public void SetHydraulicBoundaryLocationCalculations(IEnumerable hydraulicBoundaryLocations) + { + if (hydraulicBoundaryLocations == null) + { + throw new ArgumentNullException(nameof(hydraulicBoundaryLocations)); + } + + ClearHydraulicBoundaryLocationCalculations(); + + foreach (HydraulicBoundaryLocation hydraulicBoundaryLocation in hydraulicBoundaryLocations) + { + AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocation); + } + } + + public override void AddSection(FailureMechanismSection section) + { + base.AddSection(section); + sectionResults.Add(new GrassCoverErosionOutwardsFailureMechanismSectionResult(section)); + } + + public override void ClearAllSections() + { + base.ClearAllSections(); + sectionResults.Clear(); + } + private void ClearHydraulicBoundaryLocationCalculations() { waterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm.Clear();