using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MECF.Framework.Common.OperationCenter; using OpenSEMI.ClientBase.ServiceProvider; using VirgoCommon; namespace VirgoUI.Client.Models.Platform.LoadPort { public class LoadPortProvider : IProvider { private static LoadPortProvider _Instance = null; public static LoadPortProvider Instance { get { if (_Instance == null) _Instance = new LoadPortProvider(); return _Instance; } } public void Create() { } public void MapLP(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.{EfemOperation.Map}"); } public void SetThick(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.SetThick"); } public void SetThin(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.SetThin"); } public void LoadLP(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Load"); } public void UnloadLP(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Unload"); } public void ReadCarrierID(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.ReadCarrierId"); } public void Clamp(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Clamp"); } public void Unclamp(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Unclamp"); } public void Dock(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Dock"); } public void Undock(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Undock"); } public void OpenDoor(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.OpenDoor"); } public void CloseDoor(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.CloseDoor"); } public void Map(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.{EfemOperation.Map}"); } public void Home(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.{EfemOperation.Home}"); } public void Reset(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Reset"); } public void Abort(string moduleID) { InvokeClient.Instance.Service.DoOperation($"{moduleID}.Abort"); } } }