MotorSpeed.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using Prism.Mvvm;
  2. namespace SHJX.Service.Model.Control
  3. {
  4. public class MotorSpeed : BindableBase
  5. {
  6. /// <summary>
  7. /// NodeID
  8. /// </summary>
  9. public string NodeId { get; set; }
  10. /// <summary>
  11. /// 节点名称
  12. /// </summary>
  13. public string NodeName { get; set; }
  14. /// <summary>
  15. /// 速度
  16. /// </summary>
  17. private int _speed;
  18. public int Speed
  19. {
  20. get => _speed;
  21. set => SetProperty(ref _speed, value);
  22. }
  23. /// <summary>
  24. /// 加速度
  25. /// </summary>
  26. private int _acSpeed;
  27. public int AcSpeed
  28. {
  29. get => _acSpeed;
  30. set => SetProperty(ref _acSpeed, value);
  31. }
  32. /// <summary>
  33. /// 减速度
  34. /// </summary>
  35. private int _deSpeed;
  36. public int DeSpeed
  37. {
  38. get => _deSpeed;
  39. set => SetProperty(ref _deSpeed, value);
  40. }
  41. /// <summary>
  42. /// 描述
  43. /// </summary>
  44. public string Description { get; set; }
  45. }
  46. }