using System; using System.Collections; using System.Collections.Generic; using System.Linq; using IStation.CalcModel; namespace IStation.Calc { public partial class ErQuCalcHelper_1_时间块移动 : ErQuCalcBaseHelper { class RunBlockBundle { public RunBlock Block1 { get; set; } public RunBlock Block2 { get; set; } public double TotalCompare { get; set; } public double TotalFlow { get; set; } public int LastOpenPumpTimeIndex { get { int max_open_time_index = this.Block1.EndIndx; if (this.Block2 != null) { max_open_time_index = this.Block2.EndIndx; } return max_open_time_index; } } public double LastOpenPumpReservoirEndHeight { get { var max_open_time_height = this.Block1.ReservoirEndHeight; if (this.Block2 != null) { max_open_time_height = this.Block2.ReservoirEndHeight; } return max_open_time_height; } } } // private Dictionary> dictCalcCache; // private bool _isUseCache = false; /// /// 分析核心 /// /// /// protected override List CalcOptPrjsCore() { _minTimeCountOpenPump = this.MinOpenPumpMinute / this.CalcSpaceMinute; _minTimeCountSwitch = this.MinSwitchPumpMinute / this.CalcSpaceMinute; //this._maxPumpSwitchCount = 3; //if(this._isHaveTargetTotalFlow) //{ // return CalcOptPrjsCore供水总量(); //} //else { return CalcOptPrjsCore控制水位(); } } } }