Index: Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs
===================================================================
diff -u -r267be1d4fd22c83ba0ed078df17922adab0658ac -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision 267be1d4fd22c83ba0ed078df17922adab0658ac)
+++ Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -129,10 +129,10 @@
StandardDeviation = originalPhreaticLevelExit.StandardDeviation
};
calculation.InputParameters.SurfaceLine = pipingFailureMechanism.SurfaceLines.First(sl => sl.Name == "PK001_0001");
- calculation.InputParameters.SoilProfile = pipingFailureMechanism
+ calculation.InputParameters.StochasticSoilProfile = pipingFailureMechanism
.StochasticSoilModels
- .SelectMany(sm => sm.StochasticSoilProfiles.Select(ssp => ssp.SoilProfile))
- .First(sp => sp.Name == "W1-6_0_1D1");
+ .SelectMany(sm => sm.StochasticSoilProfiles)
+ .First(sp => sp.SoilProfile.Name == "W1-6_0_1D1");
calculation.InputParameters.HydraulicBoundaryLocation = demoAssessmentSection.HydraulicBoundaryDatabase.Locations.First(hl => hl.Id == 1300001);
calculation.InputParameters.NotifyObservers();
Index: Demo/Ringtoets/test/Demo.Ringtoets.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs
===================================================================
diff -u -r8b5a6f938fe2b04cd78623649df37580e145055f -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Demo/Ringtoets/test/Demo.Ringtoets.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs (.../AddNewDemoAssessmentSectionCommandTest.cs) (revision 8b5a6f938fe2b04cd78623649df37580e145055f)
+++ Demo/Ringtoets/test/Demo.Ringtoets.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs (.../AddNewDemoAssessmentSectionCommandTest.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -120,39 +120,39 @@
var surfaceLine2 = surfaceLines.FirstOrDefault(s => s.Name == "PK001_0002");
var surfaceLine3 = surfaceLines.FirstOrDefault(s => s.Name == "PK001_0003");
var surfaceLine4 = surfaceLines.FirstOrDefault(s => s.Name == "PK001_0004");
-
+
Assert.IsNotNull(surfaceLine1);
Assert.IsNotNull(surfaceLine2);
Assert.IsNotNull(surfaceLine3);
Assert.IsNotNull(surfaceLine4);
- Assert.AreEqual(new Point3D (155883.762, 569864.416, 0.53), surfaceLine1.DitchPolderSide);
- Assert.AreEqual(new Point3D (155882.067, 569866.157, -1.9), surfaceLine1.BottomDitchPolderSide);
- Assert.AreEqual(new Point3D (155874.184, 569874.252, -1.9), surfaceLine1.BottomDitchDikeSide);
- Assert.AreEqual(new Point3D (155872.224, 569876.265, 0.91), surfaceLine1.DitchDikeSide);
- Assert.AreEqual(new Point3D (155864.173, 569884.532, 0.95), surfaceLine1.DikeToeAtPolder);
- Assert.AreEqual(new Point3D (155797.109, 569953.4, -4), surfaceLine1.DikeToeAtRiver);
-
+ Assert.AreEqual(new Point3D(155883.762, 569864.416, 0.53), surfaceLine1.DitchPolderSide);
+ Assert.AreEqual(new Point3D(155882.067, 569866.157, -1.9), surfaceLine1.BottomDitchPolderSide);
+ Assert.AreEqual(new Point3D(155874.184, 569874.252, -1.9), surfaceLine1.BottomDitchDikeSide);
+ Assert.AreEqual(new Point3D(155872.224, 569876.265, 0.91), surfaceLine1.DitchDikeSide);
+ Assert.AreEqual(new Point3D(155864.173, 569884.532, 0.95), surfaceLine1.DikeToeAtPolder);
+ Assert.AreEqual(new Point3D(155797.109, 569953.4, -4), surfaceLine1.DikeToeAtRiver);
+
Assert.IsNull(surfaceLine2.DitchPolderSide);
Assert.IsNull(surfaceLine2.BottomDitchPolderSide);
Assert.IsNull(surfaceLine2.BottomDitchDikeSide);
Assert.IsNull(surfaceLine2.DitchDikeSide);
- Assert.AreEqual(new Point3D (155558.754, 569618.729, 1.45), surfaceLine2.DikeToeAtPolder);
- Assert.AreEqual(new Point3D (155505.259, 569701.229, -4), surfaceLine2.DikeToeAtRiver);
-
- Assert.AreEqual(new Point3D (155063.763, 569276.113, -0.5), surfaceLine3.DitchPolderSide);
- Assert.AreEqual(new Point3D (155063.272, 569276.926, -1.45), surfaceLine3.BottomDitchPolderSide);
- Assert.AreEqual(new Point3D (155056.855, 569287.56, -1.45), surfaceLine3.BottomDitchDikeSide);
- Assert.AreEqual(new Point3D (155056.297, 569288.485, -0.37), surfaceLine3.DitchDikeSide);
- Assert.AreEqual(new Point3D (155047.587, 569302.917, 1.42), surfaceLine3.DikeToeAtPolder);
- Assert.AreEqual(new Point3D (154999.006, 569383.419, -4), surfaceLine3.DikeToeAtRiver);
+ Assert.AreEqual(new Point3D(155558.754, 569618.729, 1.45), surfaceLine2.DikeToeAtPolder);
+ Assert.AreEqual(new Point3D(155505.259, 569701.229, -4), surfaceLine2.DikeToeAtRiver);
+ Assert.AreEqual(new Point3D(155063.763, 569276.113, -0.5), surfaceLine3.DitchPolderSide);
+ Assert.AreEqual(new Point3D(155063.272, 569276.926, -1.45), surfaceLine3.BottomDitchPolderSide);
+ Assert.AreEqual(new Point3D(155056.855, 569287.56, -1.45), surfaceLine3.BottomDitchDikeSide);
+ Assert.AreEqual(new Point3D(155056.297, 569288.485, -0.37), surfaceLine3.DitchDikeSide);
+ Assert.AreEqual(new Point3D(155047.587, 569302.917, 1.42), surfaceLine3.DikeToeAtPolder);
+ Assert.AreEqual(new Point3D(154999.006, 569383.419, -4), surfaceLine3.DikeToeAtRiver);
+
Assert.IsNull(surfaceLine4.DitchPolderSide);
Assert.IsNull(surfaceLine4.BottomDitchPolderSide);
Assert.IsNull(surfaceLine4.BottomDitchDikeSide);
Assert.IsNull(surfaceLine4.DitchDikeSide);
- Assert.AreEqual(new Point3D (154682.383, 568112.623, 1.55), surfaceLine4.DikeToeAtPolder);
- Assert.AreEqual(new Point3D (154586.088, 568119.17, -4), surfaceLine4.DikeToeAtRiver);
+ Assert.AreEqual(new Point3D(154682.383, 568112.623, 1.55), surfaceLine4.DikeToeAtPolder);
+ Assert.AreEqual(new Point3D(154586.088, 568119.17, -4), surfaceLine4.DikeToeAtRiver);
}
private void AssertCalculationAbleToCalculate(PipingCalculation calculation)
@@ -187,7 +187,7 @@
Assert.AreEqual(37, inputParameters.BeddingAngle, 1e-3);
Assert.AreEqual("PK001_0001", inputParameters.SurfaceLine.Name);
- Assert.AreEqual("W1-6_0_1D1", inputParameters.SoilProfile.Name);
+ Assert.AreEqual("W1-6_0_1D1", inputParameters.StochasticSoilProfile.SoilProfile.Name);
Assert.AreEqual(1300001, inputParameters.HydraulicBoundaryLocation.Id);
Assert.AreEqual(5.78, inputParameters.HydraulicBoundaryLocation.DesignWaterLevel, 1e-3);
Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/DerivedPipingInput.cs
===================================================================
diff -u -r16b01f208966fa77f73b7977db23da94786f08d1 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Data/DerivedPipingInput.cs (.../DerivedPipingInput.cs) (revision 16b01f208966fa77f73b7977db23da94786f08d1)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Data/DerivedPipingInput.cs (.../DerivedPipingInput.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -89,8 +89,8 @@
double seepageLengthMean = input.ExitPointL - input.EntryPointL;
if (seepageLengthMean > 0)
{
- seepageLength.Mean = (RoundedDouble)seepageLengthMean;
- seepageLength.StandardDeviation = (RoundedDouble)seepageLengthMean * seepageLengthStandardDeviationFraction;
+ seepageLength.Mean = (RoundedDouble) seepageLengthMean;
+ seepageLength.StandardDeviation = (RoundedDouble) seepageLengthMean*seepageLengthStandardDeviationFraction;
}
else
{
@@ -113,7 +113,7 @@
{
StandardDeviation = (RoundedDouble) 0.5
};
- if (input.SurfaceLine != null && input.SoilProfile != null & !double.IsNaN(input.ExitPointL))
+ if (input.SurfaceLine != null && input.StochasticSoilProfile != null && input.StochasticSoilProfile.SoilProfile != null & !double.IsNaN(input.ExitPointL))
{
TrySetThicknessCoverageLayer(thicknessCoverageLayer);
}
@@ -125,7 +125,7 @@
return thicknessCoverageLayer;
}
}
-
+
///
/// gets the thickness aquifer layer.
///
@@ -138,18 +138,19 @@
StandardDeviation = (RoundedDouble) 0.5
};
- PipingSoilProfile soilProfile = input.SoilProfile;
+ StochasticSoilProfile stochasticSoilProfile = input.StochasticSoilProfile;
+
RingtoetsPipingSurfaceLine surfaceLine = input.SurfaceLine;
double exitPointL = input.ExitPointL;
- if (soilProfile != null && surfaceLine != null && !double.IsNaN(exitPointL))
+ if (stochasticSoilProfile != null && stochasticSoilProfile.SoilProfile != null && surfaceLine != null && !double.IsNaN(exitPointL))
{
- double thicknessTopAquiferLayer = GetThicknessTopAquiferLayer(soilProfile, surfaceLine, exitPointL);
+ double thicknessTopAquiferLayer = GetThicknessTopAquiferLayer(stochasticSoilProfile.SoilProfile, surfaceLine, exitPointL);
TrySetThicknessAquiferLayerMean(thicknessAquiferLayer, thicknessTopAquiferLayer);
}
else
{
- thicknessAquiferLayer.Mean = (RoundedDouble)double.NaN;
+ thicknessAquiferLayer.Mean = (RoundedDouble) double.NaN;
}
return thicknessAquiferLayer;
@@ -158,13 +159,13 @@
private static void TrySetThicknessAquiferLayerMean(LognormalDistribution thicknessAquiferLayer, double thicknessTopAquiferLayer)
{
- if(thicknessTopAquiferLayer > 0)
+ if (thicknessTopAquiferLayer > 0)
{
- thicknessAquiferLayer.Mean = (RoundedDouble)thicknessTopAquiferLayer;
+ thicknessAquiferLayer.Mean = (RoundedDouble) thicknessTopAquiferLayer;
}
else
{
- thicknessAquiferLayer.Mean = (RoundedDouble)double.NaN;
+ thicknessAquiferLayer.Mean = (RoundedDouble) double.NaN;
}
}
@@ -185,16 +186,15 @@
}
}
-
private void TrySetThicknessCoverageLayer(LognormalDistribution thicknessCoverageLayer)
{
try
{
- thicknessCoverageLayer.Mean = (RoundedDouble)InputParameterCalculationService.CalculateThicknessCoverageLayer(input.WaterVolumetricWeight, PipingSemiProbabilisticDesignValueFactory.GetPhreaticLevelExit(input).GetDesignValue(), input.ExitPointL, input.SurfaceLine, input.SoilProfile);
+ thicknessCoverageLayer.Mean = (RoundedDouble) InputParameterCalculationService.CalculateThicknessCoverageLayer(input.WaterVolumetricWeight, PipingSemiProbabilisticDesignValueFactory.GetPhreaticLevelExit(input).GetDesignValue(), input.ExitPointL, input.SurfaceLine, input.StochasticSoilProfile.SoilProfile);
}
catch (ArgumentOutOfRangeException)
{
- thicknessCoverageLayer.Mean = (RoundedDouble)double.NaN;
+ thicknessCoverageLayer.Mean = (RoundedDouble) double.NaN;
}
}
}
Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs
===================================================================
diff -u -r16b01f208966fa77f73b7977db23da94786f08d1 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision 16b01f208966fa77f73b7977db23da94786f08d1)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -47,9 +47,6 @@
private RoundedDouble entryPointL;
private RingtoetsPipingSurfaceLine surfaceLine;
- private PipingSoilProfile soilProfile;
- private HydraulicBoundaryLocation hydraulicBoundaryLocation;
-
///
/// Initializes a new instance of the class.
///
@@ -150,30 +147,41 @@
///
/// Gets or sets the profile which contains a 1 dimensional definition of soil layers with properties.
///
- public PipingSoilProfile SoilProfile
- {
- get
- {
- return soilProfile;
- }
- set
- {
- soilProfile = value;
- }
- }
+ public StochasticSoilProfile StochasticSoilProfile { get; set; }
///
/// Gets or set the hydraulic boundary location from which to use the assessment level.
///
- public HydraulicBoundaryLocation HydraulicBoundaryLocation
+ public HydraulicBoundaryLocation HydraulicBoundaryLocation { get; set; }
+
+ private void UpdateEntryAndExitPoint()
{
- get
+ if (SurfaceLine == null)
{
- return hydraulicBoundaryLocation;
+ ExitPointL = (RoundedDouble) double.NaN;
}
- set
+ else
{
- hydraulicBoundaryLocation = value;
+ int entryPointIndex = Array.IndexOf(SurfaceLine.Points, SurfaceLine.DikeToeAtRiver);
+ int exitPointIndex = Array.IndexOf(SurfaceLine.Points, SurfaceLine.DikeToeAtPolder);
+
+ Point2D[] localGeometry = SurfaceLine.ProjectGeometryToLZ().ToArray();
+
+ double tempEntryPointL = localGeometry[0].X;
+ double tempExitPointL = localGeometry[localGeometry.Length - 1].X;
+
+ bool isDifferentPoints = entryPointIndex < 0 || exitPointIndex < 0 || entryPointIndex < exitPointIndex;
+ if (isDifferentPoints && exitPointIndex > 0)
+ {
+ tempExitPointL = localGeometry.ElementAt(exitPointIndex).X;
+ }
+ if (isDifferentPoints && entryPointIndex > -1)
+ {
+ tempEntryPointL = localGeometry.ElementAt(entryPointIndex).X;
+ }
+
+ ExitPointL = (RoundedDouble) tempExitPointL;
+ EntryPointL = (RoundedDouble) tempEntryPointL;
}
}
@@ -459,36 +467,5 @@
}
#endregion
-
- private void UpdateEntryAndExitPoint()
- {
- if (SurfaceLine == null)
- {
- ExitPointL = (RoundedDouble)double.NaN;
- }
- else
- {
- int entryPointIndex = Array.IndexOf(SurfaceLine.Points, SurfaceLine.DikeToeAtRiver);
- int exitPointIndex = Array.IndexOf(SurfaceLine.Points, SurfaceLine.DikeToeAtPolder);
-
- Point2D[] localGeometry = SurfaceLine.ProjectGeometryToLZ().ToArray();
-
- double tempEntryPointL = localGeometry[0].X;
- double tempExitPointL = localGeometry[localGeometry.Length - 1].X;
-
- bool isDifferentPoints = entryPointIndex < 0 || exitPointIndex < 0 || entryPointIndex < exitPointIndex;
- if (isDifferentPoints && exitPointIndex > 0)
- {
- tempExitPointL = localGeometry.ElementAt(exitPointIndex).X;
- }
- if (isDifferentPoints && entryPointIndex > -1)
- {
- tempEntryPointL = localGeometry.ElementAt(entryPointIndex).X;
- }
-
- ExitPointL = (RoundedDouble)tempExitPointL;
- EntryPointL = (RoundedDouble)tempEntryPointL;
- }
- }
}
}
\ No newline at end of file
Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/StochasticSoilProfile.cs
===================================================================
diff -u -re4c1ee9fe5170ccf7794006d572461d3f88e7740 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Data/StochasticSoilProfile.cs (.../StochasticSoilProfile.cs) (revision e4c1ee9fe5170ccf7794006d572461d3f88e7740)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Data/StochasticSoilProfile.cs (.../StochasticSoilProfile.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -60,5 +60,10 @@
/// Gets the .
///
public PipingSoilProfile SoilProfile { get; set; }
+
+ public override string ToString()
+ {
+ return SoilProfile == null ? "" : SoilProfile.ToString();
+ }
}
}
\ No newline at end of file
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/PipingCalculationConfigurationHelper.cs
===================================================================
diff -u -r5782c43794d78fe92cd8864cd8f8b0b53957ec06 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/PipingCalculationConfigurationHelper.cs (.../PipingCalculationConfigurationHelper.cs) (revision 5782c43794d78fe92cd8864cd8f8b0b53957ec06)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/PipingCalculationConfigurationHelper.cs (.../PipingCalculationConfigurationHelper.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Linq;
using Core.Common.Base.Geometry;
@@ -54,28 +75,28 @@
}
///
- /// Gets the piping soil profiles matching the input of a calculation.
+ /// Gets the stochastic soil profiles matching the input of a calculation.
///
/// The surface line used to match a .
/// The available soil models.
/// The (sub)set of soil profiles from
/// or empty if no matching instances can be found
/// or when there is not enough information to associate soil profiles to the calculation.
- public static IEnumerable GetPipingSoilProfilesForSurfaceLine(RingtoetsPipingSurfaceLine surfaceLine, IEnumerable availableSoilModels)
+ public static IEnumerable GetStochasticSoilProfilesForSurfaceLine(RingtoetsPipingSurfaceLine surfaceLine, IEnumerable availableSoilModels)
{
if (surfaceLine == null)
{
- return Enumerable.Empty();
+ return Enumerable.Empty();
}
Segment2D[] surfaceLineSegments = Math2D.ConvertLinePointsToLineSegments(surfaceLine.Points.Select(p => new Point2D(p.X, p.Y))).ToArray();
- var soilProfileObjectsForCalculation = new List();
+ var soilProfileObjectsForCalculation = new List();
foreach (StochasticSoilModel stochasticSoilModel in availableSoilModels.Where(sm => sm.StochasticSoilProfiles.Any()))
{
if (DoesSoilModelGeometryIntersectWithSurfaceLineGeometry(stochasticSoilModel, surfaceLineSegments))
{
- soilProfileObjectsForCalculation.AddRange(stochasticSoilModel.StochasticSoilProfiles.Select(ssp => ssp.SoilProfile));
+ soilProfileObjectsForCalculation.AddRange(stochasticSoilModel.StochasticSoilProfiles);
}
}
return soilProfileObjectsForCalculation;
@@ -85,17 +106,17 @@
{
var pipingCalculationGroup = new PipingCalculationGroup(surfaceLine.Name, true);
- foreach (var profile in GetPipingSoilProfilesForSurfaceLine(surfaceLine, soilModels))
+ foreach (var profile in GetStochasticSoilProfilesForSurfaceLine(surfaceLine, soilModels))
{
pipingCalculationGroup.Children.Add(CreatePipingCalculation(surfaceLine, profile, pipingCalculationGroup.Children, generalInput, semiProbabilisticInput));
}
return pipingCalculationGroup;
}
- private static IPipingCalculationItem CreatePipingCalculation(RingtoetsPipingSurfaceLine surfaceLine, PipingSoilProfile profile, IEnumerable calculations, GeneralPipingInput generalInput, SemiProbabilisticPipingInput semiProbabilisticInput)
+ private static IPipingCalculationItem CreatePipingCalculation(RingtoetsPipingSurfaceLine surfaceLine, StochasticSoilProfile stochasticSoilProfile, IEnumerable calculations, GeneralPipingInput generalInput, SemiProbabilisticPipingInput semiProbabilisticInput)
{
- var nameBase = string.Format("{0} {1}", surfaceLine.Name, profile.Name);
+ var nameBase = string.Format("{0} {1}", surfaceLine.Name, stochasticSoilProfile);
var name = NamingHelper.GetUniqueName(calculations, nameBase, c => c.Name);
return new PipingCalculation(generalInput, semiProbabilisticInput)
@@ -104,7 +125,7 @@
InputParameters =
{
SurfaceLine = surfaceLine,
- SoilProfile = profile
+ StochasticSoilProfile = stochasticSoilProfile
}
};
}
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs
===================================================================
diff -u -r6f069737c5a49402fc344e4f7e350c6d869b69f2 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 6f069737c5a49402fc344e4f7e350c6d869b69f2)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.17929
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -1051,18 +1051,18 @@
///
/// Looks up a localized string similar to De ondergrondschematisering die voor de piping berekening gebruikt wordt..
///
- public static string PipingInput_SoilProfile_Description {
+ public static string PipingInput_StochasticSoilProfile_Description {
get {
- return ResourceManager.GetString("PipingInput_SoilProfile_Description", resourceCulture);
+ return ResourceManager.GetString("PipingInput_StochasticSoilProfile_Description", resourceCulture);
}
}
///
/// Looks up a localized string similar to Ondergrondschematisering.
///
- public static string PipingInput_SoilProfile_DisplayName {
+ public static string PipingInput_StochasticSoilProfile_DisplayName {
get {
- return ResourceManager.GetString("PipingInput_SoilProfile_DisplayName", resourceCulture);
+ return ResourceManager.GetString("PipingInput_StochasticSoilProfile_DisplayName", resourceCulture);
}
}
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx
===================================================================
diff -u -r6f069737c5a49402fc344e4f7e350c6d869b69f2 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx (.../Resources.resx) (revision 6f069737c5a49402fc344e4f7e350c6d869b69f2)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx (.../Resources.resx) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -346,10 +346,10 @@
Topniveaus
-
+
De ondergrondschematisering die voor de piping berekening gebruikt wordt.
-
+
Ondergrondschematisering
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs
===================================================================
diff -u -r16b01f208966fa77f73b7977db23da94786f08d1 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 16b01f208966fa77f73b7977db23da94786f08d1)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -71,11 +71,11 @@
}
///
- /// Gets the available soil profiles on .
+ /// Gets the available stochastic soil profiles on .
///
- public IEnumerable GetAvailableSoilProfiles()
+ public IEnumerable GetAvailableStochasticSoilProfiles()
{
- return PipingCalculationConfigurationHelper.GetPipingSoilProfilesForSurfaceLine(data.WrappedData.SurfaceLine, data.AvailableStochasticSoilModels);
+ return PipingCalculationConfigurationHelper.GetStochasticSoilProfilesForSurfaceLine(data.WrappedData.SurfaceLine, data.AvailableStochasticSoilModels);
}
///
@@ -163,25 +163,25 @@
if (!ReferenceEquals(value, data.WrappedData.SurfaceLine))
{
data.WrappedData.SurfaceLine = value;
- data.WrappedData.SoilProfile = null;
+ data.WrappedData.StochasticSoilProfile = null;
data.WrappedData.NotifyObservers();
}
}
}
- [Editor(typeof(PipingInputContextSoilProfileSelectionEditor), typeof(UITypeEditor))]
+ [Editor(typeof(PipingInputContextStochasticSoilProfileSelectionEditor), typeof(UITypeEditor))]
[ResourcesCategory(typeof(Resources), "Categories_Schematization")]
- [ResourcesDisplayName(typeof(Resources), "PipingInput_SoilProfile_DisplayName")]
- [ResourcesDescription(typeof(Resources), "PipingInput_SoilProfile_Description")]
- public PipingSoilProfile SoilProfile
+ [ResourcesDisplayName(typeof(Resources), "PipingInput_StochasticSoilProfile_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "PipingInput_StochasticSoilProfile_Description")]
+ public StochasticSoilProfile StochasticSoilProfile
{
get
{
- return data.WrappedData.SoilProfile;
+ return data.WrappedData.StochasticSoilProfile;
}
set
{
- data.WrappedData.SoilProfile = value;
+ data.WrappedData.StochasticSoilProfile = value;
data.WrappedData.NotifyObservers();
}
}
@@ -296,7 +296,7 @@
[ResourcesCategory(typeof(Resources), "Categories_SoilProperties")]
[ResourcesDisplayName(typeof(Resources), "PipingInput_SaturatedVolumicWeightOfCoverageLayer_DisplayName")]
[ResourcesDescription(typeof(Resources), "PipingInput_SaturatedVolumicWeightOfCoverageLayer_Description")]
- public DesignVariable SaturatedVolumicWeightOfCoverageLayer
+ public DesignVariable SaturatedVolumicWeightOfCoverageLayer
{
get
{
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Ringtoets.Piping.Forms.csproj
===================================================================
diff -u -r6f069737c5a49402fc344e4f7e350c6d869b69f2 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Ringtoets.Piping.Forms.csproj (.../Ringtoets.Piping.Forms.csproj) (revision 6f069737c5a49402fc344e4f7e350c6d869b69f2)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Ringtoets.Piping.Forms.csproj (.../Ringtoets.Piping.Forms.csproj) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -93,7 +93,7 @@
-
+
UserControl
Fisheye: Tag 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f refers to a dead (removed) revision in file `Ringtoets/Piping/src/Ringtoets.Piping.Forms/UITypeEditors/PipingInputContextSoilProfileSelectionEditor.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditor.cs
===================================================================
diff -u
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditor.cs (revision 0)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/UITypeEditors/PipingInputContextStochasticSoilProfileSelectionEditor.cs (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -0,0 +1,53 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using System.ComponentModel;
+using Core.Common.Utils.Reflection;
+using Ringtoets.Piping.Data;
+
+namespace Ringtoets.Piping.Forms.UITypeEditors
+{
+ ///
+ /// This class defines a drop down list edit-control from which the user can select a
+ /// from a collection.
+ ///
+ public class PipingInputContextStochasticSoilProfileSelectionEditor : PipingInputContextSelectionEditor
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public PipingInputContextStochasticSoilProfileSelectionEditor()
+ {
+ DisplayMember = TypeUtils.GetMemberName(ssp => ssp.SoilProfile.Name);
+ }
+
+ protected override IEnumerable GetAvailableOptions(ITypeDescriptorContext context)
+ {
+ return GetPropertiesObject(context).GetAvailableStochasticSoilProfiles();
+ }
+
+ protected override StochasticSoilProfile GetCurrentOption(ITypeDescriptorContext context)
+ {
+ return GetPropertiesObject(context).StochasticSoilProfile;
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.cs
===================================================================
diff -u -rf132c3732b41ebd5837b63d44fa4c9401f6061c0 -r8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.cs (.../PipingCalculationsView.cs) (revision f132c3732b41ebd5837b63d44fa4c9401f6061c0)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingCalculationsView.cs (.../PipingCalculationsView.cs) (revision 8832cfacbfb0a999d9dd5ddcb93fd81bdb2fb09f)
@@ -48,12 +48,12 @@
private readonly RecursiveObserver pipingCalculationObserver;
private readonly Observer pipingFailureMechanismObserver;
private readonly RecursiveObserver pipingInputObserver;
- private readonly Observer pipingSoilProfilesObserver;
+ private readonly Observer pipingStochasticSoilProfilesObserver;
private IAssessmentSection assessmentSection;
private DataGridViewComboBoxColumn hydraulicBoundaryLocationColumn;
private PipingCalculationGroup pipingCalculationGroup;
private PipingFailureMechanism pipingFailureMechanism;
- private DataGridViewComboBoxColumn soilProfileColumn;
+ private DataGridViewComboBoxColumn stochasticSoilProfileColumn;
private bool updatingDataSource;
///
@@ -65,7 +65,7 @@
InitializeDataGridView();
InitializeListBox();
- pipingSoilProfilesObserver = new Observer(OnSoilProfilesUpdate);
+ pipingStochasticSoilProfilesObserver = new Observer(OnStochasticSoilProfilesUpdate);
pipingFailureMechanismObserver = new Observer(OnPipingFailureMechanismUpdate);
assessmentSectionObserver = new Observer(UpdateHydraulicBoundaryLocationsColumn);
pipingInputObserver = new RecursiveObserver(UpdateDataGridViewDataSource, pcg => pcg.Children.Concat