///------------------------------------------------------------------------------------------------- /// <summary> Runs the River Model with the given input data.</summary> /// /// <remarks> Quay, 6/19/2020.</remarks> /// /// <param name="InputData"> Information describing the input.</param> /// /// <returns> A RiverModelOutput.</returns> ///------------------------------------------------------------------------------------------------- public override RiverModelOutput Run(RiverModelInput InputData) { SurfaceWaterOutput FSurfaceWater = null; // Check if inpout is right if (InputData is SurfaceWaterInput) { double TotalSurface = 0; foreach (int Value in FBaseSurfaceWater.AvailableWater) { TotalSurface += (double)Value; } double DroughtValue = (double)(InputData as SurfaceWaterInput).DroughtAdjust / 100; double TempSurface = TotalSurface * DroughtValue; FSurfaceWater.TotalSurfaceWater = Convert.ToInt32(TempSurface); } return(FSurfaceWater); }
///------------------------------------------------------------------------------------------------- /// <summary> Runs the River Model with the given input data.</summary> /// /// <remarks> This needs to be implemented, Output and Input should be assined to Properties for retreival</remarks> /// /// <param name="InputData"> Information describing the input.</param> /// /// <returns> A RiverModelOutput.</returns> ///------------------------------------------------------------------------------------------------- public override RiverModelOutput Run(RiverModelInput InputData) { throw new NotImplementedException(); }