duheng
2024-11-05 21dd2ae9704c484d5d75b2ed980e5402505da7dc
Hydro/Yw.EPAnet.Calcu.Core/03-calcu/CalcuResult.cs
@@ -3,7 +3,7 @@
    /// <summary>
    /// 计算结果
    /// </summary>
    public class CalcuResult
    public class CalcuResult:IDisposable
    {
        /// <summary>
        /// 
@@ -12,8 +12,10 @@
        {
            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>
@@ -29,19 +31,35 @@
        /// <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);