using HStation.RevitDev.Model.AttributeClass;
using HStation.RevitDev.Model.ModelEnum;
using System.Collections.Generic;
using System.Linq;
namespace HStation.Model
{
///
/// 水泵
///
///
[ExportType(ExportType.EFT_Pump)]
public class RevitPump : RevitParter, IRevitPump
{
///
///
///
public RevitPump() { }
///
///
///
public RevitPump(RevitPump rhs) : base(rhs)
{
this.ModelType = rhs.ModelType;
this.StartCode = rhs.StartCode;
this.EndCode = rhs.EndCode;
this.Power = rhs.Power;
this.Head = rhs.Head;
this.Speed = rhs.Speed;
this.Pattern = rhs.Pattern;
this.PropValueList = rhs.PropValueList?.Select(x => new RevitPropValue(x)).ToList();
this.BoundingBox = rhs.BoundingBox;
}
///
/// 型号
///
[Parameter("型号")]
public string ModelType { get; set; }
///
/// 上游节点
///
[Parameter("上游节点")]
public string StartCode { get; set; }
///
/// 下游节点
///
[Parameter("下游节点")]
public string EndCode { get; set; }
///
/// 恒定能量水泵的功率
///
[Parameter("恒定能量水泵的功率")]
public double Power { get; set; }
///
/// 描述水泵扬程与流量关系的曲线
///
[Parameter("描述水泵扬程与流量关系的曲线")]
public string Head { get; set; }
///
/// 相对转速设置
///
[Parameter("相对转速设置")]
public double? Speed { get; set; }
///
/// 描述转速设置怎样随时间变化的时间模式
///
[Parameter("描述转速设置怎样随时间变化的时间模式")]
public string Pattern { get; set; }
///
/// 属性值列表
///
[Parameter("属性值列表")]
public List PropValueList { get; set; }
///
/// 位置
///
[Parameter("位置")]
public RevitBoundingBox BoundingBox { get; set; }
}
}