| | |
| | | case 1://长兴泵站 |
| | | { |
| | | var result= shys_cxd(input, result_sg,out error_info); |
| | | LogHelper.Debug(JsonHelper.Object2Json(result)); |
| | | //LogHelper.Debug(JsonHelper.Object2Json(result)); |
| | | return result; |
| | | } |
| | | default:return default; |
| | |
| | | water_level = scada_water.value; |
| | | } |
| | | |
| | | complex_request_paras.WaterLevelPara = new List<IStation.Calculation.DispatchAna.Model.WaterLevelPara>(); |
| | | complex_request_paras.WaterLevelPara.Add(new IStation.Calculation.DispatchAna.Model.WaterLevelPara() { |
| | | complex_request_paras.InletPipePara = new List<IStation.Calculation.DispatchAna.Model.InletPipePara>(); |
| | | complex_request_paras.InletPipePara.Add(new IStation.Calculation.DispatchAna.Model.InletPipePara() { |
| | | Name = "吸水井液位", |
| | | Value = water_level }); |
| | | |
| | |
| | | complex_request_paras.SchemeSortType = Calculation.DispatchAna.Model.eAnaSchemeSortType.功率; |
| | | complex_request_paras.SchemeNumber = 1; |
| | | |
| | | //构造计算器 |
| | | var calulator = IStation.Calculation.DispatchAnalyCalculatorFactory.CreateKeepStatusCalculator(4, IStation.ObjectType.Station, 2,null); |
| | | calulator.IntialRequest(complex_request_paras, |
| | | null, |
| | | machine_run_status); |
| | | //出方案 |
| | | var scheme = new IStation.Calculation.DispatchAna.Calculator4ShysCxbz().CalcKeepStatusByWhole( |
| | | complex_request_paras, |
| | | machine_run_status, |
| | | out error_info); |
| | | var scheme = calulator.Calc(out error_info); |
| | | if (scheme == null) |
| | | return default; |
| | | var result = new IStation.Application.DispatchAnaSchemeOutput(); |