//-----------------------------------------------------------------------
//
// Copyright (c) 2009 Deltares. All rights reserved.
//
// B.S.T. The
// tom.the@deltares.nl
// 04-09-2009
// Class which calculates the predicted and monitored piping length
//-----------------------------------------------------------------------
using Deltares.Geometry;
namespace Deltares.Dam.Data
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Deltares.Standard;
public class GageDikeCalculator
{
public double ijkdijkPipingLengthPredictionParameter { get; set; }
public GageDikeCalculator()
{
ijkdijkPipingLengthPredictionParameter = 0.66; //Properties.Settings.Default. 0.66;
}
public double? CalculatePredictedPipingLength(double waterLevelOutside)
{
return (1.5 * Math.Pow(ijkdijkPipingLengthPredictionParameter * waterLevelOutside, 5.2));
}
public double? CalculateMonitoredPipingLength(PolyLine headLine)
{
var stabilityServiceAgent = new StabilityServiceAgent();
return stabilityServiceAgent.CalculatePipingLength(headLine);
}
}
}