// Copyright (C) Stichting Deltares 2016. 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 System.Collections.Generic;
using Core.Common.Base;
using Ringtoets.Common.Data.Calculation;
namespace Ringtoets.Common.Data.FailureMechanism
{
///
/// Defines a failure mechanism.
///
public interface IFailureMechanism : ICommentable, IObservable
{
///
/// Gets or sets the amount of contribution as a percentage [0, 100] for the
/// as part of the overall verdict.
///
/// Thrown when the is not in the interval [0, 100].
double Contribution { get; set; }
///
/// Gets the name of the .
///
string Name { get; }
///
/// Gets the code of the .
///
string Code { get; }
///
/// Gets the comments associated with the input of the data object.
///
Commentable InputComments { get; }
///
/// Gets the comments associated with the output of the data object.
///
Commentable OutputComments { get; }
///
/// Gets the comments associated when the failure mechanism is set to be not relevant.
///
Commentable NotRelevantComments { get; }
///
/// Gets or sets a value indicating whether this failure mechanism is relevant.
///
bool IsRelevant { get; set; }
///
/// Gets an of all the instances added to
/// the failure mechanism.
///
IEnumerable Calculations { get; }
///
/// Gets the sections that define areas for which a calculation could determine
/// a representative result. Cannot return null.
///
IEnumerable Sections { get; }
///
/// Adds a to .
///
/// The new section.
/// Thrown when cannot
/// be connected to elements already defined in .
void AddSection(FailureMechanismSection section);
///
/// Clears all sections from .
///
void ClearAllSections();
}
}