using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Calculation { internal class shys陈行一输 : PlanAnaBaseCalculator { public shys陈行一输() { this._corpID = 4; this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); } /// /// 测点字典(这个每个泵站都不一样) /// private Tuple monitor出水总管1压力 = new Tuple("_0402010201090105001", 859); private Tuple monitor出水总管1瞬时流量 = new Tuple("_0402060601010103000", 860); private Tuple monitor出水总管2压力 = new Tuple("_0402010201090105002", 862); private Tuple monitor出水总管2瞬时流量 = new Tuple("_0402060601010203000", 863); private Tuple monitor出水总管3压力 = new Tuple("_0402060601010305000", 865); private Tuple monitor出水总管3瞬时流量 = new Tuple("_0402010503030202003", 866); private Tuple monitor进水前池液位1 = new Tuple("_0402010201090104011", 856); private Tuple monitor进水前池液位2 = new Tuple("_0402010201091104123", 857); private Tuple monitor进水前池液位3 = new Tuple("_0402010201091104122", 858); /// /// 根据三高提供的参数,构建调度分析所需的参数, (这个每个泵站都不一样) /// /// /// /// protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( List allRecords_hour, out string error_info) { if (allRecords_hour == null || allRecords_hour.Count == 0) { error_info = "五号沟凌桥方向测点数据为空"; return null; } var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitor调节池液位.Item1); //if (water_level == null) //{ // water_level = allRecords_hour.Find(x => x.MonitorTag == monitor调节池液位.Item1); // if (water_level == null) // { // error_info = "五号沟凌桥方向水库液位测点未找到"; // return null; // } //} //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitor出水总管瞬时流量.Item1); //if (pipe1_flow == null) //{ // error_info = "五号沟凌桥方向水管道1流量测点未找到"; // return null; //} //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitor出水总管压力.Item1); //if (pipe1_press == null) //{ // error_info = "五号沟凌桥方向水管道1压力测点未找到"; // return null; //} complex_dispatch_request.CorpID = this._corpID; complex_dispatch_request.StationID = this._stationID; complex_dispatch_request.SchemeNumber = 1; complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.压力; complex_dispatch_request.WaterLevelPara = new List() { //new DispatchAna.Model.WaterLevelPara(){ Name="水池", Value = water_level.RecordValue} }; complex_dispatch_request.OutletPipePara = new List(); complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() { Name = "总管路", //TargetFlow = pipe1_flow.RecordValue, //TargetPress = pipe1_press.RecordValue, }); error_info = null; return complex_dispatch_request; } } }