// 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 System;
using Core.Common.Base.Geometry;
namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Result
{
///
/// The sliding circle result of an Uplift Van calculation.
///
public class UpliftVanSlidingCircleResult
{
///
/// Creates a new instance of .
///
/// The center coordinate of the circle.
/// The radius of the circle.
/// Indicator whether the circle is active or not.
/// The non iterated force of the circle.
/// The iterated force of the circle.
/// The driving moment of the circle.
/// The resisting moment of the circle.
/// Thrown when
/// is null.
public UpliftVanSlidingCircleResult(Point2D center, double radius, bool isActive,
double nonIteratedForce, double iteratedForce,
double drivingMoment, double resistingMoment)
{
if (center == null)
{
throw new ArgumentNullException(nameof(center));
}
Center = center;
Radius = radius;
IsActive = isActive;
NonIteratedForce = nonIteratedForce;
IteratedForce = iteratedForce;
DrivingMoment = drivingMoment;
ResistingMoment = resistingMoment;
}
///
/// Gets the center coordinate of the circle.
///
public Point2D Center { get; }
///
/// Gets the radius of the circle.
///
public double Radius { get; }
///
/// Gets whether the circle is the active circle or not.
///
public bool IsActive { get; }
///
/// Gets the non iterated force of the circle.
///
public double NonIteratedForce { get; }
///
/// Gets the iterated force of the circle.
///
public double IteratedForce { get; }
///
/// Gets the driving moment of the circle.
///
public double DrivingMoment { get; }
///
/// Gets the resisting moment of the circle.
///
public double ResistingMoment { get; }
}
}