123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Aitex.Core.Util;
- using athosRT.Devices.EFEM.ABS;
- using athosRT.Modules.EFEMs;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace athosRT.Devices.EFEM.Task
- {
- public class SigStatTask : CheckImp, ITask
- {
- public bool Execute(out string result, params string[] args)
- {
- string device = this.Args2Unit(args.Length != 0 ? args[0] : string.Empty);
- if (device == null)
- {
- result = "PARAM_NG";
- return false;
- }
- if (!this.CheckIsPort(device) && device != "System")
- {
- result = "PARAM_NG";
- return false;
- }
- return this.Check<NoReadyPolicy>(device, out result) && this.Check<MaintenancePolicy>(device, out result) && this.Check<RemovePolicy>(device, out result);
- }
- public bool? Monitor(out string result, params string[] args)
- {
- result = string.Empty;
- string device = this.Args2Unit(args.Length != 0 ? args[0] : string.Empty);
- if (args.Length != 0)
- {
- uint sigStatData1 = Singleton<EfemEntity>.Instance.GetSigStatData1(device);
- result = sigStatData1.ToString("X8");
- uint sigStatData2 = Singleton<EfemEntity>.Instance.GetSigStatData2(device);
- result = result + "/" + sigStatData2.ToString("X8");
- }
- return new bool?(true);
- }
- }
- }
|