// 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 Ringtoets.Common.Data.IllustrationPoints;
namespace Ringtoets.Common.Forms.PresentationObjects
{
///
/// This class is a presentation object for an which'
/// is of type .
///
/// The type of the illustration point.
public class IllustrationPointContext where T : IllustrationPointBase
{
///
/// Creates a new instance of .
///
/// The illustration point.
/// The illustration point node.
/// The name of the wind direction.
/// The closing situation of the illustration point.
/// Thrown when any of the input parameters is null.
/// Thrown when
/// is not of type .
public IllustrationPointContext(T illustrationPoint,
IllustrationPointNode illustrationPointNode,
string windDirectionName,
string closingSituation)
{
if (illustrationPoint == null)
{
throw new ArgumentNullException(nameof(illustrationPoint));
}
if (illustrationPointNode == null)
{
throw new ArgumentNullException(nameof(illustrationPointNode));
}
if (windDirectionName == null)
{
throw new ArgumentNullException(nameof(windDirectionName));
}
if (closingSituation == null)
{
throw new ArgumentNullException(nameof(closingSituation));
}
IllustrationPoint = illustrationPoint;
IllustrationPointNode = illustrationPointNode;
WindDirectionName = windDirectionName;
ClosingSituation = closingSituation;
}
///
/// Gets the illustration point.
///
public T IllustrationPoint { get; }
///
/// Gets the illustration point node.
///
public IllustrationPointNode IllustrationPointNode { get; }
///
/// Gets the wind direction name.
///
public string WindDirectionName { get; }
///
/// Gets the closing situation.
///
public string ClosingSituation { get; }
}
}