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.SignalType = rhs.SignalType;
this.Name = rhs.Name;
this.SourceType = rhs.SourceType;
this.SourceParas = rhs.SourceParas;
this.MeasureParas = rhs.MeasureParas;
this.DisplayParas = rhs.DisplayParas;
this.SerialNO = rhs.SerialNO;
this.Importance = rhs.Importance;
this.Virtually = rhs.Virtually;
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.SignalType = rhs.SignalType;
this.Name = rhs.Name;
this.SourceType = rhs.SourceType;
this.SourceParas = rhs.SourceParas;
this.MeasureParas = rhs.MeasureParas;
this.DisplayParas = rhs.DisplayParas;
this.SerialNO = rhs.SerialNO;
this.Importance = rhs.Importance;
this.Virtually = rhs.Virtually;
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 测点id
///
public long MonitorPointID { get; set; }
///
/// 信号类型
///
public string SignalType { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 计量参数(信号类型的计量类型不同,设置不同)
///
public string MeasureParas { get; set; }
///
/// 来源类型
///
public eSourceType SourceType { get; set; }
///
/// 来源参数(来源不同,来源参数设置不同)
///
public string SourceParas { get; set; }
///
/// 显示参数(信号类型的格式不同显示参数设置不同)
///
public string DisplayParas { get; set; }
///
/// 序列号 -主要应用于逻辑顺序 如:分析顺序
///
public int SerialNO { get; set; }
///
/// 重要度
///
public int Importance { get; set; }
///
/// 是否虚拟
///
public bool Virtually { 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();
}
}
}