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;
|
}
|
}
|
|
|
}
|
}
|