| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- 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
- {
- /// <summary>
- /// Feeder振动工作
- /// </summary>
- public class FeederWork : BindableBase
- {
- private int _Step;
- /// <summary>
- /// 步骤
- /// </summary>
- public int Step
- {
- get { return _Step; }
- set { SetProperty(ref _Step, value); }
- }
- private VibrationFunction _Function;
- /// <summary>
- /// 功能码
- /// </summary>
- public VibrationFunction Function
- {
- get { return _Function; }
- set { SetProperty(ref _Function, value); }
- }
- private SingleActionParam _SingleAction;
- /// <summary>
- /// 电机参数
- /// </summary>
- public SingleActionParam SingleAction
- {
- get { return _SingleAction; }
- set { SetProperty(ref _SingleAction, value); }
- }
- private int _Duration;
- /// <summary>
- /// 持续时间
- /// </summary>
- public int Duration
- {
- get { return _Duration; }
- set { SetProperty(ref _Duration, value); }
- }
- //Afag参数
- private int _ConfigIndex;
- /// <summary>
- /// 配置编号
- /// </summary>
- public int ConfigIndex
- {
- get { return _ConfigIndex; }
- set { SetProperty(ref _ConfigIndex, value); }
- }
- private double _Intensity;
- /// <summary>
- /// 振动强度
- /// </summary>
- public double Intensity
- {
- get { return _Intensity; }
- set { SetProperty(ref _Intensity, value); }
- }
- private double _Direction;
- /// <summary>
- /// 方向
- /// </summary>
- 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
- };
- }
- }
- }
|