// 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 Ringtoets.Revetment.Data;
namespace Ringtoets.StabilityStoneCover.Service
{
///
/// Container for the results of a stability stone cover wave conditions calculation.
///
public class StabilityStoneCoverWaveConditionsCalculationActivityOutput
{
private readonly ICollection columnsOutput;
private readonly ICollection blocksOutput;
///
/// Creates a new instance of .
///
internal StabilityStoneCoverWaveConditionsCalculationActivityOutput()
{
columnsOutput = new List();
blocksOutput = new List();
}
///
/// Gets the wave conditions output for columns.
///
internal IEnumerable ColumnsOutput
{
get
{
return columnsOutput;
}
}
///
/// Gets the wave conditions output for blocks.
///
internal IEnumerable BlocksOutput
{
get
{
return blocksOutput;
}
}
///
/// Adds an to .
///
/// The output to add.
/// Thrown when
/// is null.
internal void AddBlocksOutput(WaveConditionsOutput element)
{
AddElementToList(blocksOutput, element);
}
///
/// Adds an to .
///
/// The output to add.
/// Thrown when
/// is null.
internal void AddColumnsOutput(WaveConditionsOutput element)
{
AddElementToList(columnsOutput, element);
}
private static void AddElementToList(ICollection list, WaveConditionsOutput element)
{
if (element == null)
{
throw new ArgumentNullException("element");
}
list.Add(element);
}
}
}