| | |
| | | /// <summary> |
| | | /// 计算结果 |
| | | /// </summary> |
| | | public class CalcuResult |
| | | public class CalcuResult:IDisposable |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | this.Succeed = true; |
| | | this.FailedList = new List<CalcuFailed>(); |
| | | this.NodeList = new List<CalcuNode>(); |
| | | this.LinkList = new List<CalcuLink>(); |
| | | this.NodeList = new List<ICalcuNode>(); |
| | | this.LinkList = new List<ICalcuLink>(); |
| | | this.NodeDict = new Dictionary<string, ICalcuNode>(); |
| | | this.LinkDict = new Dictionary<string, ICalcuLink>(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// 节点列表 |
| | | /// </summary> |
| | | public List<CalcuNode> NodeList { get; set; } |
| | | public List<ICalcuNode> NodeList { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 管段列表 |
| | | /// </summary> |
| | | public List<CalcuLink> LinkList { get; set; } |
| | | public List<ICalcuLink> LinkList { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 节点字典 |
| | | /// </summary> |
| | | public Dictionary<string,ICalcuNode> NodeDict { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 管段字典 |
| | | /// </summary> |
| | | public Dictionary<string,ICalcuLink> LinkDict { get; set; } |
| | | |
| | | public void Dispose() |
| | | { |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取组件列表 |
| | | /// </summary> |
| | | public List<CalcuParter> GetParterList() |
| | | public List<ICalcuParter> GetParterList() |
| | | { |
| | | var list = new List<CalcuParter>(); |
| | | var list = new List<ICalcuParter>(); |
| | | if (this.NodeList != null && this.NodeList.Count > 0) |
| | | { |
| | | list.AddRange(this.NodeList); |