FeederStockWork.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using TeamAAS_VP.Enums;
  8. namespace TeamAAS_VP.Models.Feeder
  9. {
  10. /// <summary>
  11. /// 料仓工作任务
  12. /// </summary>
  13. public class FeederStockWork : BindableBase
  14. {
  15. private int _Step;
  16. /// <summary>
  17. /// 步骤
  18. /// </summary>
  19. public int Step
  20. {
  21. get { return _Step; }
  22. set { SetProperty(ref _Step, value); }
  23. }
  24. private VibrationFunction _Function;
  25. /// <summary>
  26. /// 功能码
  27. /// </summary>
  28. public VibrationFunction Function
  29. {
  30. get { return _Function; }
  31. set { SetProperty(ref _Function, value); }
  32. }
  33. private int _RegisterIndex;
  34. /// <summary>
  35. /// 寄存器类型
  36. /// </summary>
  37. public int RegisterIndex
  38. {
  39. get { return _RegisterIndex; }
  40. set { SetProperty(ref _RegisterIndex, value); }
  41. }
  42. private int _Address;
  43. /// <summary>
  44. /// 寄存器地址
  45. /// </summary>
  46. public int Address
  47. {
  48. get { return _Address; }
  49. set { SetProperty(ref _Address, value); }
  50. }
  51. private int _Duration;
  52. /// <summary>
  53. /// 持续时间
  54. /// </summary>
  55. public int Duration
  56. {
  57. get { return _Duration; }
  58. set { SetProperty(ref _Duration, value); }
  59. }
  60. public FeederStockWork Copy()
  61. {
  62. return new FeederStockWork()
  63. {
  64. Step = this.Step,
  65. Function = this.Function,
  66. RegisterIndex = this.RegisterIndex,
  67. Address = this.Address,
  68. Duration = this.Duration
  69. };
  70. }
  71. }
  72. }