using System; using System.Collections.Generic; using System.Linq; namespace IStation.Model { /// /// 信号 /// public partial class Signal : BaseModel, System.ICloneable { /// /// /// public Signal() { } /// /// /// public Signal(Signal rhs) : base(rhs) { this.MonitorPointID = rhs.MonitorPointID; this.SignalTypeID = rhs.SignalTypeID; this.Name = rhs.Name; this.SourceType = rhs.SourceType; this.SourceParas = rhs.SourceParas; this.MeasureParas = rhs.MeasureParas; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(Signal rhs) { this.ID = rhs.ID; this.MonitorPointID = rhs.MonitorPointID; this.SignalTypeID = rhs.SignalTypeID; this.Name = rhs.Name; this.SourceType = rhs.SourceType; this.SourceParas = rhs.SourceParas; this.MeasureParas = rhs.MeasureParas; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 测点id /// public long MonitorPointID { get; set; } /// /// 信号类型id /// public long SignalTypeID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 计量参数(信号类型的计量类型不同,设置不同) /// public string MeasureParas { get; set; } /// /// 来源类型 /// public eSourceType SourceType { get; set; } /// /// 来源参数(来源不同,来源参数设置不同) /// public string SourceParas { get; set; } /// /// 标签列表 /// public List Flags { get; set; } /// /// 标记名称 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public Signal Clone() { return new Signal(this); } object ICloneable.Clone() { return Clone(); } } }