RobotMoveInfo.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MECF.Framework.Common.CommonData
  8. {
  9. [Serializable]
  10. public enum RobotArm
  11. {
  12. ArmA,
  13. ArmB,
  14. Both
  15. }
  16. [Serializable]
  17. public enum RobotAction
  18. {
  19. None,
  20. Picking,
  21. Placing,
  22. Moving,
  23. Extending,
  24. Retracting,
  25. }
  26. [Serializable]
  27. [DataContract]
  28. public class RobotMoveInfo : NotifiableItem
  29. {
  30. private string bladeTarget;
  31. [DataMember]
  32. public string BladeTarget
  33. {
  34. get { return bladeTarget; }
  35. set
  36. {
  37. bladeTarget = value;
  38. InvokePropertyChanged("BladeTarget");
  39. }
  40. }
  41. private RobotArm armTarget;
  42. [DataMember]
  43. public RobotArm ArmTarget
  44. {
  45. get => armTarget;
  46. set
  47. {
  48. armTarget = value;
  49. InvokePropertyChanged("ArmTarget");
  50. }
  51. }
  52. private RobotAction action;
  53. [DataMember]
  54. public RobotAction Action
  55. {
  56. get { return action; }
  57. set
  58. {
  59. action = value;
  60. InvokePropertyChanged("Action");
  61. }
  62. }
  63. public override string ToString()
  64. {
  65. return $"{bladeTarget} - {action}";
  66. }
  67. }
  68. }