LoadPortProvider.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using MECF.Framework.Common.OperationCenter;
  7. using OpenSEMI.ClientBase.ServiceProvider;
  8. using VirgoCommon;
  9. namespace VirgoUI.Client.Models.Platform.LoadPort
  10. {
  11. public class LoadPortProvider : IProvider
  12. {
  13. private static LoadPortProvider _Instance = null;
  14. public static LoadPortProvider Instance
  15. {
  16. get
  17. {
  18. if (_Instance == null)
  19. _Instance = new LoadPortProvider();
  20. return _Instance;
  21. }
  22. }
  23. public void Create()
  24. {
  25. }
  26. public void MapLP(string moduleID)
  27. {
  28. InvokeClient.Instance.Service.DoOperation($"{moduleID}.{EfemOperation.Map}");
  29. }
  30. public void SetThick(string moduleID)
  31. {
  32. InvokeClient.Instance.Service.DoOperation($"{moduleID}.SetThick");
  33. }
  34. public void SetThin(string moduleID)
  35. {
  36. InvokeClient.Instance.Service.DoOperation($"{moduleID}.SetThin");
  37. }
  38. public void LoadLP(string moduleID)
  39. {
  40. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Load");
  41. }
  42. public void UnloadLP(string moduleID)
  43. {
  44. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Unload");
  45. }
  46. public void ReadCarrierID(string moduleID)
  47. {
  48. InvokeClient.Instance.Service.DoOperation($"{moduleID}.ReadCarrierId");
  49. }
  50. public void Clamp(string moduleID)
  51. {
  52. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Clamp");
  53. }
  54. public void Unclamp(string moduleID)
  55. {
  56. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Unclamp");
  57. }
  58. public void Dock(string moduleID)
  59. {
  60. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Dock");
  61. }
  62. public void Undock(string moduleID)
  63. {
  64. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Undock");
  65. }
  66. public void OpenDoor(string moduleID)
  67. {
  68. InvokeClient.Instance.Service.DoOperation($"{moduleID}.OpenDoor");
  69. }
  70. public void CloseDoor(string moduleID)
  71. {
  72. InvokeClient.Instance.Service.DoOperation($"{moduleID}.CloseDoor");
  73. }
  74. public void Map(string moduleID)
  75. {
  76. InvokeClient.Instance.Service.DoOperation($"{moduleID}.{EfemOperation.Map}");
  77. }
  78. public void Home(string moduleID)
  79. {
  80. InvokeClient.Instance.Service.DoOperation($"{moduleID}.{EfemOperation.Home}");
  81. }
  82. public void Reset(string moduleID)
  83. {
  84. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Reset");
  85. }
  86. public void Abort(string moduleID)
  87. {
  88. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Abort");
  89. }
  90. }
  91. }