| | |
| | | |
| | | public List<TimePoint> Calc(string inpPath, string configPath = null) |
| | | { |
| | | bool CalcByConfig = false; |
| | | List<TimePoint> list = new List<TimePoint>(); |
| | | if (CalcByConfig) |
| | | { |
| | | |
| | | WdnmoParam wdnmoParam = new WdnmoParam(); |
| | | |
| | | |
| | | Nodes.ForEach(n => |
| | | { |
| | | //if (n is JunctionViewModel || n is MeterViewModel || n is NozzleViewModel) |
| | |
| | | }); |
| | | |
| | | calc c = new calc(); |
| | | var list = c.GetCalcResult(inpPath, wdnmoParam, configPath); |
| | | list = c.GetCalcResult(inpPath, wdnmoParam, configPath); |
| | | if (list == null) return list; |
| | | } |
| | | else |
| | | { |
| | | list= base.Calc(inpPath); |
| | | } |
| | | |
| | | |
| | | |
| | | list.Sort((a, b) => string.Compare(a.Key, b.Key)); |
| | | Nodes.Sort((a, b) => string.Compare(a.ID, b.ID)); |
| | | Links.Sort((a, b) => string.Compare(a.ID, b.ID)); |