using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
using IStation.Model.Monitor;
namespace IStation.Model
{
///
/// 信号
///
public partial class Signal : System.ICloneable
{
///
///
///
public Signal() { }
///
///
///
public Signal(Signal rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.MonitorPointID = rhs.MonitorPointID;
this.Name = rhs.Name;
this.SignalType = rhs.SignalType;
this.BuiltIn = rhs.BuiltIn;
this.DataType = rhs.DataType;
this.DataParas = rhs.DataParas;
this.ConvertParas = rhs.ConvertParas;
this.CorrectParas = rhs.CorrectParas;
this.FilterParas = rhs.FilterParas;
this.UnitValue = rhs.UnitValue;
this.DecimalPlaces = rhs.DecimalPlaces;
this.CoordParas = rhs.CoordParas;
this.Flags = rhs.Flags?.ToList();
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
///
///
public void Reset(Signal rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.MonitorPointID = rhs.MonitorPointID;
this.Name = rhs.Name;
this.SignalType = rhs.SignalType;
this.BuiltIn = rhs.BuiltIn;
this.DataType = rhs.DataType;
this.DataParas = rhs.DataParas;
this.ConvertParas = rhs.ConvertParas ;
this.CorrectParas = rhs.CorrectParas;
this.FilterParas = rhs.FilterParas;
this.UnitValue = rhs.UnitValue;
this.DecimalPlaces = rhs.DecimalPlaces;
this.CoordParas = rhs.CoordParas;
this.Flags = rhs.Flags?.ToList();
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 标识
///
public long ID { get; set; }
///
/// 客户标识
///
public long CorpID { get; set; }
///
/// 测点标识
///
public long MonitorPointID { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 信号类型
///
public string SignalType { get; set; }
///
/// 内置
///
public bool BuiltIn { get; set; }
///
/// 数据类型
///
public eDataType DataType { get; set; }
///
/// 数据参数 -瞬时数据类型使用 InstantParameters 累积数据类型使用AccumulateParameters
///
public string DataParas { get; set; }
///
/// 转换参数
///
public ConvertParameters ConvertParas { get; set; }
///
/// 修正参数
///
public CorrectParameters CorrectParas { get; set; }
///
/// 过滤参数
///
public FilterParameters FilterParas { get; set; }
///
/// 显示单位
///
public string UnitValue { get; set; }
///
/// 显示小数位数
///
public int? DecimalPlaces { get; set; }
///
/// 坐标参数
///
public string CoordParas { get; set; }
///
/// 标签列表
///
public List Flags { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
///
///
public Signal Clone()
{
return (Signal)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}