qinjie
2023-12-20 1b529841a77db239d7dae96ff480f40e50fa9553
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; 
 
namespace Hydro.Model
{
    public class LinkObject : ElementObject
    {
        public LinkObject() { }
        public LinkObject(LinkObject obj) : base(obj)
        {
 
        }
        /// <summary>
        /// 节点1 ID
        /// </summary>
        public string NodeID1 { get; set; }
        /// <summary>
        /// 节点2 ID
        /// </summary>
        public string NodeID2 { get; set; }
        /// <summary>
        /// 点
        /// </summary>
        public Polygon Points { get; set; }
        /// <summary>
        /// 口径
        /// </summary>
        public double Diameter { get; set; }
 
        /// <summary>
        /// 实际长度(可以由用户输入)
        /// </summary>
        private double? _realLength = null;
        public double RealLength
        {
            get
            {
                if(_realLength == null)
                {
                    return 0;
                }
                else
                {
                    return _realLength.Value;
                }
            }
            set
            {
                _realLength = value;
            }
        }
 
 
    }
}