using Prism.Mvvm;
using SKMC.Api.Common.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SKMC.Api.Motion.Model
{
///
/// 模拟量模型
///
public class MotionAO : BindableBase
{
private long _id;
public long Id
{
get { return _id; }
set { _id = value; RaisePropertyChanged(); }
}
private string _type;
public string Type
{
get { return _type; }
set { _type = value; RaisePropertyChanged(); }
}
private string _code;
public string Code
{
get { return _code; }
set { _code = value; RaisePropertyChanged(); }
}
private string _name;
public string Name
{
get { return _name; }
set { _name = value; RaisePropertyChanged(); }
}
private string catalog;
///
/// 所在(模块)分类
///
public string Catalog
{
get { return catalog; }
set { catalog = value; RaisePropertyChanged(); }
}
private short _devNo;
///
/// 设备序号
///
public short DevNo
{
get { return _devNo; }
set { _devNo = value; }
}
private short _siteNO;
///
/// 在设备上的点位顺序, 从0开始
///
public short SiteNo
{
get { return _siteNO; }
set { _siteNO = value; }
}
private short _capacity;
public short Capacity
{
get { return _capacity; }
set { _capacity = value; }
}
private string _desc;
public string Desc
{
get { return _desc; }
set { _desc = value; RaisePropertyChanged(); }
}
private string _unit;
///
/// 数值单位, eg: Kg/N/KPa...
///
public string Unit
{
get { return _unit; }
set { _unit = value; }
}
private decimal radio;
///
/// 数值换算比率
///
public decimal Radio
{
get { return radio; }
set { radio = value; RaisePropertyChanged(); }
}
private int offset;
///
/// 补偿值 (在比率换算后补偿)
///
public int Offset
{
get { return offset; }
set { offset = value; RaisePropertyChanged(); }
}
private TimestampSet timestampSet;
///
/// 时间戳数据集
///
public TimestampSet TimestampSet
{
get { return timestampSet; }
set { timestampSet = value; }
}
}
}