123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using athosRT.Devices.EFEM.ABS;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace athosRT.Devices.EFEM.Task
- {
- public class SetEventTask : CheckImp, ITask
- {
- public SetEventTask() => this.HasInfoMessage = false;
- public bool Execute(out string result, params string[] args)
- {
- string str = "System";
- EfemEventType result1;
- if (!Enum.TryParse<EfemEventType>(args[0], out result1))
- {
- result = "PARAM_NG";
- return false;
- }
- EfemEventValue result2;
- if (!Enum.TryParse<EfemEventValue>(args[1], out result2))
- {
- result = "PARAM_NG";
- return false;
- }
- if (!this.Check<NoReadyPolicy>(str, out result) || !this.Check<MaintenancePolicy>(str, out result))
- return false;
- ((SystemServerModule)this.GetEntity(str)).SetEvent(result1, result2);
- return true;
- }
- public bool? Monitor(out string result, params string[] args)
- {
- result = string.Empty;
- return new bool?(true);
- }
- }
- }
|