// 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.HeightStructures.Data.TestUtil
{
///
/// for testing purposes.
///
public class TestHeightStructure : HeightStructure
{
///
/// Creates a new instance of .
///
public TestHeightStructure()
: this("Test") {}
///
/// Creates a new instance of .
///
/// The name of the structure.
public TestHeightStructure(string name)
: this(name, "Id", new Point2D(0.0, 0.0)) {}
///
/// Creates a new instance of .
///
/// The name of the structure.
/// The id of the structure.
public TestHeightStructure(string name, string id)
: this(name, id, new Point2D(0.0, 0.0)) {}
///
/// Creates a new instance of .
///
/// The location of the structure.
public TestHeightStructure(Point2D location)
: this("Test", "Id", location) {}
///
/// Creates a new instance of .
///
/// The location of the structure.
/// The id of the structure.
public TestHeightStructure(Point2D location, string id)
: this("Test", id, location) {}
///
/// Creates a new instance of .
///
/// The name of the structure.
/// The id of the structure.
/// The location of the structure.
public TestHeightStructure(string name, string id, Point2D location)
: base(new ConstructionProperties
{
Name = name,
Id = id,
Location = location,
StructureNormalOrientation = (RoundedDouble) 0.12345,
LevelCrestStructure =
{
Mean = (RoundedDouble) 234.567,
StandardDeviation = (RoundedDouble) 0.23456
},
FlowWidthAtBottomProtection =
{
Mean = (RoundedDouble) 345.68,
StandardDeviation = (RoundedDouble) 0.35
},
CriticalOvertoppingDischarge =
{
Mean = (RoundedDouble) 456.79,
CoefficientOfVariation = (RoundedDouble) 0.46
},
WidthFlowApertures =
{
Mean = (RoundedDouble) 567.89,
StandardDeviation = (RoundedDouble) 0.57
},
FailureProbabilityStructureWithErosion = 0.67890,
StorageStructureArea =
{
Mean = (RoundedDouble) 112.22,
CoefficientOfVariation = (RoundedDouble) 0.11
},
AllowedLevelIncreaseStorage =
{
Mean = (RoundedDouble) 225.34,
StandardDeviation = (RoundedDouble) 0.23
}
}) {}
}
}