/// <summary> /// constructs a RuleCurve based on the unregulated flow station name /// </summary> /// <param name="curveName"></param> public HydrometRuleCurve(string curveName) { this.curveName = curveName; FloodControlPoint pt = new FloodControlPoint(curveName, "StationQU"); m_fillType = pt.FillType; }
public ResidualForecast(FloodControlPoint controlPoint) { this.controlPoint = controlPoint; this.reservoirLags = controlPoint.ReservoirLags; this.reservoirNames = controlPoint.UpstreamReservoirs; TotalContent = new Series(); SpaceRequired = new Series("acre-feet", TimeInterval.Daily);; Space = new Series("acre-feet", TimeInterval.Daily); reservoirs = new SeriesList(); Residual = new Series(); Report = new SeriesList(); diff = new Series(); flags = new List <string>(); }
public static HydrometRuleCurve Create(FloodControlPoint pt, int waterYear, bool dashed) { var cbtt = pt.StationFC.ToLower(); if (cbtt == "heii")// || stationQU == "jck") { return(new HeiiRuleCurve(cbtt, waterYear, pt.FillType, dashed)); } if (cbtt == "hgh") { return(new HghRuleCurve(cbtt, pt.FillType)); } if (cbtt == "wodi") { return(new WodiRuleCurve(cbtt, waterYear, FillType.Fixed)); } return(new HydrometRuleCurve(pt)); }
public HydrometRuleCurve(FloodControlPoint pt) { this.curveName = pt.StationQU; m_fillType = pt.FillType; }