| | |
| | | public SimulationCalcuResultHelper(SimulationWorkingHelper workingHelper) |
| | | { |
| | | _workingHelper = workingHelper; |
| | | workingHelper.InitialEvent += () => Initial(); |
| | | Initial(); |
| | | } |
| | | |
| | | private SimulationWorkingHelper _workingHelper = null;//工况辅助类 |
| | | private Dictionary<string, HydroCalcuVisualResult> _dict;//计算结果可见字典 |
| | | |
| | | |
| | | //初始化 |
| | | private void Initial() |
| | | { |
| | | _dict = _workingHelper.CalcuResult?.GetVisualDict(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 是否初始化 |
| | | /// </summary> |
| | | public bool Initialized |
| | | { |
| | | get { return _workingHelper.Initialized; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 水力信息 |
| | | /// </summary> |
| | | public Yw.Model.HydroModelInfo HydroInfo |
| | | { |
| | | get { return _workingHelper.HydroInfo; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 工况 |
| | |
| | | public HydroCalcuResult CalcuResult |
| | | { |
| | | get { return _workingHelper.CalcuResult; } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 初始化数据 |
| | | /// </summary> |
| | | public void InitialData() |
| | | { |
| | | _dict = _workingHelper.CalcuResult?.GetVisualDict(); |
| | | } |
| | | |
| | | /// <summary> |