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)
{
}
///
/// 节点1 ID
///
public string NodeID1 { get; set; }
///
/// 节点2 ID
///
public string NodeID2 { get; set; }
///
/// 点
///
public Polygon Points { get; set; }
///
/// 口径
///
public double Diameter { get; set; }
///
/// 实际长度(可以由用户输入)
///
private double? _realLength = null;
public double RealLength
{
get
{
if(_realLength == null)
{
return 0;
}
else
{
return _realLength.Value;
}
}
set
{
_realLength = value;
}
}
}
}