using System.Collections.Generic; using System.Linq; using Core.Common.Base; using Ringtoets.Piping.Data; namespace Ringtoets.Piping.Forms.PresentationObjects { /// /// Presentation object for all data required to configure an instance of /// in order to prepare it for performing a calculation. /// public class PipingCalculationInputs : IObservable { /// /// Initializes a new instance of the class. /// public PipingCalculationInputs() { AvailablePipingSurfaceLines = Enumerable.Empty(); AvailablePipingSoilProfiles = Enumerable.Empty(); } /// /// Gets or sets the piping data to be configured. /// public PipingData PipingData { get; set; } /// /// Gets or sets the available piping surface lines in order for the user to select /// one to set . /// public IEnumerable AvailablePipingSurfaceLines { get; set; } /// /// Gets or sets the available piping soil profiles in order for the user to select /// one to set . /// public IEnumerable AvailablePipingSoilProfiles { get; set; } #region IObservable public void Attach(IObserver observer) { PipingData.Attach(observer); } public void Detach(IObserver observer) { PipingData.Detach(observer); } public void NotifyObservers() { PipingData.NotifyObservers(); } #endregion /// /// Clears the output of the . /// public void ClearOutput() { PipingData.ClearOutput(); } } }