| | |
| | | nozzles.ForEach(nozzle => { AddNozzle(nozzle); }); |
| | | } |
| | | |
| | | private void CheckNodesExist(NodeModel node) |
| | | private void CheckNodesExist(NodeCalcModel node) |
| | | { |
| | | if (Nodes.Any(d => d.ID == node.ID)) |
| | | throw new Exception("已存在重复的对象"); |
| | | } |
| | | |
| | | private void CheckLinksExist(LinkModel link) |
| | | private void CheckLinksExist(LinkCalcModel link) |
| | | { |
| | | if (Links.Any(d => d.ID == link.ID)) |
| | | throw new Exception("已存在重复的对象"); |
| | | } |
| | | |
| | | public List<NodeModel> Nodes { get; set; } = new List<NodeModel>(); |
| | | public List<LinkModel> Links { get; set; } = new List<LinkModel>(); |
| | | public List<NodeCalcModel> Nodes { get; set; } = new List<NodeCalcModel>(); |
| | | public List<LinkCalcModel> Links { get; set; } = new List<LinkCalcModel>(); |
| | | |
| | | /// <summary> |
| | | /// 根据INP文件生成 |