VacPolicy.cs 618 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using athosRT.Devices.EFEM.Task;
  7. namespace athosRT.Devices.EFEM.ABS
  8. {
  9. public class VacPolicy : CheckImp, IPolicy
  10. {
  11. public bool Check(string device, out string reason)
  12. {
  13. reason = string.Empty;
  14. if (DeviceModel.SensorVACPressureSW.Value)
  15. return true;
  16. else
  17. {
  18. //不满足信号VAC的要求
  19. reason = string.Format("VAC");
  20. return false;
  21. }
  22. }
  23. }
  24. }