using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Team.FFFeederService.Models;
using TeamAAS_VP.Enums;
namespace TeamAAS_VP.Models.Feeder
{
///
/// Feeder振动工作
///
public class FeederWork : 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 SingleActionParam _SingleAction;
///
/// 电机参数
///
public SingleActionParam SingleAction
{
get { return _SingleAction; }
set { SetProperty(ref _SingleAction, value); }
}
private int _Duration;
///
/// 持续时间
///
public int Duration
{
get { return _Duration; }
set { SetProperty(ref _Duration, value); }
}
//Afag参数
private int _ConfigIndex;
///
/// 配置编号
///
public int ConfigIndex
{
get { return _ConfigIndex; }
set { SetProperty(ref _ConfigIndex, value); }
}
private double _Intensity;
///
/// 振动强度
///
public double Intensity
{
get { return _Intensity; }
set { SetProperty(ref _Intensity, value); }
}
private double _Direction;
///
/// 方向
///
public double Direction
{
get { return _Direction; }
set { SetProperty(ref _Direction, value); }
}
public FeederWork Copy()
{
return new FeederWork()
{
Step=this.Step,
Function=this.Function,
SingleAction=this.SingleAction.Copy(),
Duration=this.Duration,
ConfigIndex=this.ConfigIndex,
Intensity=this.Intensity,
Direction=this.Direction
};
}
}
}