From 21dd2ae9704c484d5d75b2ed980e5402505da7dc Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期二, 05 十一月 2024 18:01:30 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0

---
 Hydro/Yw.EPAnet.Calcu.Core/01-network/02-node/03-junction/Junction.cs |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/Hydro/Yw.EPAnet.Calcu.Core/01-network/02-node/03-junction/Junction.cs b/Hydro/Yw.EPAnet.Calcu.Core/01-network/02-node/03-junction/Junction.cs
index 7f43900..33829c2 100644
--- a/Hydro/Yw.EPAnet.Calcu.Core/01-network/02-node/03-junction/Junction.cs
+++ b/Hydro/Yw.EPAnet.Calcu.Core/01-network/02-node/03-junction/Junction.cs
@@ -3,7 +3,7 @@
     /// <summary>
     /// 杩炴帴鑺傜偣
     /// </summary>
-    public class Junction : Parter, IJunction
+    public class Junction : Node, IJunction
     {
         /// <summary>
         /// 
@@ -21,7 +21,7 @@
             this.Elev = rhs.Elev;
             this.Demand = rhs.Demand;
             this.DemandPattern = rhs.DemandPattern;
-            this.JunctionType=rhs.JunctionType;
+          
         }
 
         
@@ -56,15 +56,22 @@
         /// </summary>
         public string DemandPattern { get; set; }
 
-        /// <summary>
-        /// 杩炴帴绫诲瀷
-        /// </summary>
-        public string JunctionType { get; set; }
 
-        /// <summary>
-        /// 鐙珛灞�閮ㄦ崯澶辩郴鏁帮紙璇ュ�间紭鍏堢骇楂樹簬鍏ㄥ眬璁剧疆锛夛紝鍏佽涓虹┖, 鏈缃殑Key绫诲瀷浣跨敤鍏ㄥ眬璁剧疆
-        /// Key涓篔unctionMinorLossType, Value涓哄眬閮ㄦ崯澶辩郴鏁帮紝鏈壘鍒扮殑Key绫诲瀷浣跨敤鍏ㄥ眬璁剧疆鐨凨ey
-        /// </summary>
-        public Dictionary<string, double> MinorLossSettings { get; set; }
+        public List<ILink> NextLinks { 
+            get 
+            {
+                return Links.FindAll(l => l.StartNode == this ? l.Flow > 0 : l.Flow < 0);
+            } 
+        }
+
+        public List<ILink> PrevLinks 
+        { 
+            get
+            {
+                return Links.FindAll(l => l.StartNode == this ? l.Flow < 0 : l.Flow > 0);
+            }
+        }
+
+ 
     }
 }

--
Gitblit v1.9.3