using Prism.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TeamAAS_VP.Enums; namespace TeamAAS_VP.Models.Feeder { /// /// 料仓工作任务 /// public class FeederStockWork : BindableBase { private int _Step; /// /// 步骤 /// public int Step { get { return _Step; } set { SetProperty(ref _Step, value); } } private VibrationFunction _Function; /// /// 功能码 /// public VibrationFunction Function { get { return _Function; } set { SetProperty(ref _Function, value); } } private int _RegisterIndex; /// /// 寄存器类型 /// public int RegisterIndex { get { return _RegisterIndex; } set { SetProperty(ref _RegisterIndex, value); } } private int _Address; /// /// 寄存器地址 /// public int Address { get { return _Address; } set { SetProperty(ref _Address, value); } } private int _Duration; /// /// 持续时间 /// public int Duration { get { return _Duration; } set { SetProperty(ref _Duration, value); } } public FeederStockWork Copy() { return new FeederStockWork() { Step = this.Step, Function = this.Function, RegisterIndex = this.RegisterIndex, Address = this.Address, Duration = this.Duration }; } } }