| | |
| | | /// <summary> |
| | | /// 连接节点 |
| | | /// </summary> |
| | | public class Junction : Parter, IJunction |
| | | public class Junction : Node, IJunction |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | this.Elev = rhs.Elev; |
| | | this.Demand = rhs.Demand; |
| | | this.DemandPattern = rhs.DemandPattern; |
| | | this.JunctionType=rhs.JunctionType; |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | public string DemandPattern { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 连接类型 |
| | | /// </summary> |
| | | public string JunctionType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 独立局部损失系数(该值优先级高于全局设置),允许为空, 未设置的Key类型使用全局设置 |
| | | /// Key为JunctionMinorLossType, Value为局部损失系数,未找到的Key类型使用全局设置的Key |
| | | /// </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); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |