CMPLPolicy.cs 536 B

1234567891011121314151617181920212223
  1. using athosRT.Devices.EFEM.Task;
  2. using athosRT.tool;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace athosRT.Devices.EFEM.ABS
  9. {
  10. public class CMPLPolicy : CheckImp, IPolicy
  11. {
  12. public bool Check(string device, out string reason)
  13. {
  14. reason = string.Empty;
  15. if (this.GetEntity(device).Busy)
  16. return true;
  17. reason = $"CMPL:{device} not busy.";
  18. return false;
  19. }
  20. }
  21. }