MoveItem.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. [DataContract]
  13. [Serializable]
  14. //helper class
  15. public class MoveItem : IDeviceData
  16. {
  17. [DataMember]
  18. public ModuleName SourceModule { get; set; }
  19. [DataMember]
  20. public int SourceSlot { get; set; }
  21. [DataMember]
  22. public ModuleName DestinationModule { get; set; }
  23. [DataMember]
  24. public int DestinationSlot { get; set; }
  25. [DataMember]
  26. public Hand RobotHand { get; set; }
  27. public MoveItem(ModuleName sourceModule, int sourceSlot, ModuleName destinationModule, int destinationSlot, Hand robotHand)
  28. {
  29. this.SourceModule = sourceModule;
  30. this.SourceSlot = sourceSlot;
  31. this.DestinationModule = destinationModule;
  32. this.DestinationSlot = destinationSlot;
  33. this.RobotHand = robotHand;
  34. }
  35. public void Update(IDeviceData data)
  36. {
  37. throw new NotImplementedException();
  38. }
  39. }
  40. }