using athosRT.Devices.EFEM.Task; using athosRT.tool; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace athosRT.Devices.EFEM.ABS { public class BusyPolicy : CheckImp, IPolicy { public bool Check(string device, out string reason) { reason = string.Empty; if (device == "SignalTower") return true; IServerModule entity = GetEntity(device); if (!entity.Busy && !entity.InUsed) return true; if (entity.Busy) LogObject.Warning("BusyPolicy", device + " is Busy."); if (entity.InUsed) LogObject.Warning("BusyPolicy", device + " is InUsed."); reason = "BUSY"; return false; } } }