MoveItem.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. using Aitex.Core.Common.DeviceData;
  8. using Aitex.Sorter.Common;
  9. using MECF.Framework.Common.Equipment;
  10. namespace MECF.Framework.Common.Schedulers
  11. {
  12. public enum EnumMoveType
  13. {
  14. Place,
  15. Pick,
  16. Move,
  17. }
  18. [DataContract]
  19. [Serializable]
  20. //helper class
  21. public class MoveItem : IDeviceData
  22. {
  23. [DataMember]
  24. public ModuleName SourceModule { get; set; }
  25. [DataMember]
  26. public ModuleType SourceType { get; set; }
  27. [DataMember]
  28. public int SourceSlot { get; set; }
  29. [DataMember]
  30. public ModuleName DestinationModule { get; set; }
  31. [DataMember]
  32. public int DestinationSlot { get; set; }
  33. [DataMember]
  34. public ModuleType DestinationType { get; set; }
  35. [DataMember]
  36. public Hand RobotHand { get; set; }
  37. [DataMember]
  38. public Flip PickRobotFlip { get; set; }
  39. [DataMember]
  40. public Flip PlaceRobotFlip { get; set; }
  41. public MoveItem()
  42. {
  43. }
  44. public MoveItem(ModuleName sourceModule, int sourceSlot, ModuleName destinationModule, int destinationSlot, Hand robotHand, Flip pickFlip,Flip placeFlip)
  45. {
  46. this.SourceModule = sourceModule;
  47. this.SourceSlot = sourceSlot;
  48. this.DestinationModule = destinationModule;
  49. this.DestinationSlot = destinationSlot;
  50. this.RobotHand = robotHand;
  51. this.PickRobotFlip = pickFlip;
  52. PlaceRobotFlip = placeFlip;
  53. }
  54. public void Update(IDeviceData data)
  55. {
  56. throw new NotImplementedException();
  57. }
  58. }
  59. }