// Copyright (C) Stichting Deltares 2017. 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 Core.Common.Base.Data;
using Core.Common.Base.Geometry;
namespace Ringtoets.ClosingStructures.Data.TestUtil
{
///
/// used for testing purposes.
///
public class TestClosingStructure : ClosingStructure
{
///
/// Creates a new instance of .
///
public TestClosingStructure()
: this("test") {}
///
/// Creates a new instance of .
///
/// The name of the structure.
public TestClosingStructure(string name)
: this(name, new Point2D(12345.56789, 9876.54321), ClosingStructureInflowModelType.VerticalWall) {}
///
/// Creates a new instance of .
///
/// The location of the structure.
public TestClosingStructure(Point2D location) : this("test", location, ClosingStructureInflowModelType.VerticalWall) {}
///
/// Creates a new instance of .
///
/// The inflow model type of the structure.
public TestClosingStructure(ClosingStructureInflowModelType type)
: this("test", new Point2D(12345.56789, 9876.54321), type) {}
///
/// Creates a new instance of .
///
/// The name of the structure.
/// The location of the structure.
/// The inflow model type of the structure.
private TestClosingStructure(string name, Point2D location, ClosingStructureInflowModelType type)
: base(new ConstructionProperties
{
Name = name,
Id = "id",
Location = location,
StorageStructureArea =
{
Mean = (RoundedDouble) 20000,
CoefficientOfVariation = (RoundedDouble) 0.1
},
AllowedLevelIncreaseStorage =
{
Mean = (RoundedDouble) 0.2,
StandardDeviation = (RoundedDouble) 0.1
},
StructureNormalOrientation = (RoundedDouble) 10.0,
WidthFlowApertures =
{
Mean = (RoundedDouble) 21,
StandardDeviation = (RoundedDouble) 0.05
},
LevelCrestStructureNotClosing =
{
Mean = (RoundedDouble) 4.95,
StandardDeviation = (RoundedDouble) 0.05
},
InsideWaterLevel =
{
Mean = (RoundedDouble) 0.5,
StandardDeviation = (RoundedDouble) 0.1
},
ThresholdHeightOpenWeir =
{
Mean = (RoundedDouble) 4.95,
StandardDeviation = (RoundedDouble) 0.1
},
AreaFlowApertures =
{
Mean = (RoundedDouble) 31.5,
StandardDeviation = (RoundedDouble) 0.01
},
CriticalOvertoppingDischarge =
{
Mean = (RoundedDouble) 1.0,
CoefficientOfVariation = (RoundedDouble) 0.15
},
FlowWidthAtBottomProtection =
{
Mean = (RoundedDouble) 25.0,
StandardDeviation = (RoundedDouble) 0.05
},
ProbabilityOrFrequencyOpenStructureBeforeFlooding = 1.0,
FailureProbabilityOpenStructure = 0.1,
IdenticalApertures = 4,
FailureProbabilityReparation = 1.0,
InflowModelType = type
}) {}
}
}