Index: Ringtoets/Common/src/Ringtoets.Common.IO/HydraRing/PreprocessorSettingsProvider.cs =================================================================== diff -u -rf8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e -rfafb238f4bf1c7362e4c853678c99a00d38d2791 --- Ringtoets/Common/src/Ringtoets.Common.IO/HydraRing/PreprocessorSettingsProvider.cs (.../PreprocessorSettingsProvider.cs) (revision f8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e) +++ Ringtoets/Common/src/Ringtoets.Common.IO/HydraRing/PreprocessorSettingsProvider.cs (.../PreprocessorSettingsProvider.cs) (revision fafb238f4bf1c7362e4c853678c99a00d38d2791) @@ -59,9 +59,11 @@ } /// - /// Gets based on the provided failure mechanism type and location id. + /// Gets based on the provided location id. /// - /// The . + /// The location id to obtain the for. + /// Indicator whether the preprocessor must be taken into account. + /// The . /// Thrown when a column that is being read doesn't /// contain expected type. public PreprocessorSetting GetPreprocessorSetting(long locationId, bool usePreprocessor) @@ -73,22 +75,36 @@ ReadPreprocessorSetting readSetting = preprocessorSettingsReader.ReadPreprocessorSetting(locationId) ?? defaultPreprocessorSetting; - return new PreprocessorSetting(readSetting.ValueMin, readSetting.ValueMax, GetNumericSetting(locationId)); + return new PreprocessorSetting(readSetting.ValueMin, readSetting.ValueMax, GetNumericsSetting(locationId)); } public void Dispose() { preprocessorSettingsReader.Dispose(); } + /// + /// Checks whether the location corresponding to the provided id is an excluded location. + /// + /// The location id to check exclusion for. + /// true when is excluded; false otherwise. + /// Thrown when a column that is being read doesn't + /// contain expected type. private bool LocationExcluded(long locationId) { IEnumerable excludedIds = preprocessorSettingsReader.ReadExcludedPreprocessorLocations(); return excludedIds.Contains(locationId); } - private NumericsSetting GetNumericSetting(long locationId) + /// + /// Returns based on the provided location id. + /// + /// The location id to obtain the for. + /// A new containing values corresponding to the provided location id. + /// Thrown when a column that is being read doesn't + /// contain expected type. + private NumericsSetting GetNumericsSetting(long locationId) { using (var numericsSettingsProvider = new NumericsSettingsProvider(databaseFilePath)) {