|
@@ -1,131 +1,146 @@
|
|
|
-using System;
|
|
|
-using System.Collections.Generic;
|
|
|
-using System.Linq;
|
|
|
-using System.Text;
|
|
|
-using System.Threading.Tasks;
|
|
|
-
|
|
|
-namespace SecsGem.Core.Application
|
|
|
-{
|
|
|
- public interface IEquipmentCommand
|
|
|
- {
|
|
|
- /// <summary>
|
|
|
- /// 远程控制
|
|
|
- /// </summary>
|
|
|
- /// <param name="command"></param>
|
|
|
- /// <param name="paras"></param>
|
|
|
- /// <param name="reason"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool ExcuteCommand(string command, object[] paras, out string reason);
|
|
|
- /// <summary>
|
|
|
- /// 获取recipe
|
|
|
- /// </summary>
|
|
|
- /// <param name="param"></param>
|
|
|
- /// <returns></returns>
|
|
|
- string[] GetSequenceList();
|
|
|
- /// <summary>
|
|
|
- ///
|
|
|
- /// </summary>
|
|
|
- /// <param name="param"></param>
|
|
|
- /// <param name="recipename"></param>
|
|
|
- /// <returns></returns>
|
|
|
- string GetSequenceBody(string ppid);
|
|
|
- /// <summary>
|
|
|
- ///
|
|
|
- /// </summary>
|
|
|
- /// <param name="ppid"></param>
|
|
|
- /// <returns></returns>
|
|
|
- List<string> GetFormatedSequence(string ppid);
|
|
|
- /// <summary>
|
|
|
- /// 删除Sequence
|
|
|
- /// </summary>
|
|
|
- /// <param name="sequenceName"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool deleteSequence(string ppid);
|
|
|
- /// <summary>
|
|
|
- /// 更新Sequence
|
|
|
- /// </summary>
|
|
|
- /// <param name="ppid"></param>
|
|
|
- /// <param name="body"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool UpdateSequence(string ppid, string body);
|
|
|
- /// <summary>
|
|
|
- /// 显示终端消息
|
|
|
- /// </summary>
|
|
|
- /// <param name="message"></param>
|
|
|
- void ShowTerminalMessage(string message);
|
|
|
- /// <summary>
|
|
|
- /// 创建ProcessJob
|
|
|
- /// </summary>
|
|
|
- /// <param name="processJobId"></param>
|
|
|
- /// <param name="sequenceName"></param>
|
|
|
- /// <param name="carrierId"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool CreateProcessJob(string processJobId, string sequenceName,string carrierId, out string reason);
|
|
|
- /// <summary>
|
|
|
- /// 更新processJob carrierSlot信息
|
|
|
- /// </summary>
|
|
|
- /// <param name="processJobId"></param>
|
|
|
- /// <param name="moduleName"></param>
|
|
|
- /// <param name="slots"></param>
|
|
|
- void UpdateProcessJobCarrierSlot(string processJobId, string moduleName, List<int> slots);
|
|
|
- /// <summary>
|
|
|
- /// 创建ControlJob
|
|
|
- /// </summary>
|
|
|
- /// <param name="controlJobId"></param>
|
|
|
- /// <param name="moduleName"></param>
|
|
|
- /// <param name="carrierId"></param>
|
|
|
- /// <param name="processJobs"></param>
|
|
|
- /// <param name="reason"></param>
|
|
|
- /// <returns></returns>
|
|
|
- void CreateControlJob(string controlJobId,string carrierId,List<string> processJobs);
|
|
|
- /// <summary>
|
|
|
- /// 检验创建ControlJob的条件
|
|
|
- /// </summary>
|
|
|
- /// <returns></returns>
|
|
|
- bool CheckCreateControlJobCondition(List<string> modules,out string reason);
|
|
|
- /// <summary>
|
|
|
- /// 启动任务
|
|
|
- /// </summary>
|
|
|
- /// <param name="controlJob"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool StartControlJob(string controlJob);
|
|
|
- /// <summary>
|
|
|
- /// 停止任务
|
|
|
- /// </summary>
|
|
|
- /// <param name="controlJob"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool StopControlJob(string controlJob);
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 中止任务
|
|
|
- /// </summary>
|
|
|
- /// <param name="controlJob"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool AbortControlJob(string controlJob);
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 暂停任务
|
|
|
- /// </summary>
|
|
|
- /// <param name="controlJob"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool PauseControlJob(string controlJob);
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 恢复任务
|
|
|
- /// </summary>
|
|
|
- /// <param name="controlJob"></param>
|
|
|
- /// <returns></returns>
|
|
|
- bool ResumeControlJob(string controlJob);
|
|
|
- /// <summary>
|
|
|
- /// 检验Auto状态
|
|
|
- /// </summary>
|
|
|
- /// <returns></returns>
|
|
|
- bool CheckAuto();
|
|
|
- /// <summary>
|
|
|
- /// 更新ControlJob Module信息
|
|
|
- /// </summary>
|
|
|
- /// <param name="controlJobId"></param>
|
|
|
- /// <param name="moduleName"></param>
|
|
|
- void UpdateControlJobModule(string controlJobId, string moduleName);
|
|
|
- }
|
|
|
-}
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Text;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace SecsGem.Core.Application
|
|
|
+{
|
|
|
+ public interface IEquipmentCommand
|
|
|
+ {
|
|
|
+ /// <summary>
|
|
|
+ /// 远程控制
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="command"></param>
|
|
|
+ /// <param name="paras"></param>
|
|
|
+ /// <param name="reason"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool ExcuteCommand(string command, object[] paras, out string reason);
|
|
|
+ /// <summary>
|
|
|
+ /// 获取recipe
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="param"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ string[] GetSequenceList();
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="param"></param>
|
|
|
+ /// <param name="recipename"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ string GetSequenceBody(string ppid);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="ppid"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ List<string> GetFormatedSequence(string ppid);
|
|
|
+ /// <summary>
|
|
|
+ /// 删除Sequence
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="sequenceName"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool deleteSequence(string ppid);
|
|
|
+ /// <summary>
|
|
|
+ /// 更新Sequence
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="ppid"></param>
|
|
|
+ /// <param name="body"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool UpdateSequence(string ppid, string body);
|
|
|
+ /// <summary>
|
|
|
+ /// 显示终端消息
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message"></param>
|
|
|
+ void ShowTerminalMessage(string message);
|
|
|
+ /// <summary>
|
|
|
+ /// 创建ProcessJob
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="processJobId"></param>
|
|
|
+ /// <param name="sequenceName"></param>
|
|
|
+ /// <param name="carrierId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool CreateProcessJob(string processJobId, string sequenceName,string carrierId, out string reason);
|
|
|
+ /// <summary>
|
|
|
+ /// 更新processJob carrierSlot信息
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="processJobId"></param>
|
|
|
+ /// <param name="moduleName"></param>
|
|
|
+ /// <param name="slots"></param>
|
|
|
+ void UpdateProcessJobCarrierSlot(string processJobId, string moduleName, List<int> slots);
|
|
|
+ /// <summary>
|
|
|
+ /// 创建ControlJob
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="controlJobId"></param>
|
|
|
+ /// <param name="moduleName"></param>
|
|
|
+ /// <param name="carrierId"></param>
|
|
|
+ /// <param name="processJobs"></param>
|
|
|
+ /// <param name="reason"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ void CreateControlJob(string controlJobId,string carrierId,List<string> processJobs);
|
|
|
+ /// <summary>
|
|
|
+ /// 检验创建ControlJob的条件
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool CheckCreateControlJobCondition(List<string> modules,out string reason);
|
|
|
+ /// <summary>
|
|
|
+ /// 启动任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="controlJob"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool StartControlJob(string controlJob);
|
|
|
+ /// <summary>
|
|
|
+ /// 停止任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="controlJob"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool StopControlJob(string controlJob);
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 中止任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="controlJob"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool AbortControlJob(string controlJob);
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 暂停任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="controlJob"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool PauseControlJob(string controlJob);
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 恢复任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="controlJob"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool ResumeControlJob(string controlJob);
|
|
|
+ /// <summary>
|
|
|
+ /// 检验Auto状态
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ bool CheckAuto();
|
|
|
+ /// <summary>
|
|
|
+ /// 更新ControlJob Module信息
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="controlJobId"></param>
|
|
|
+ /// <param name="moduleName"></param>
|
|
|
+ void UpdateControlJobModule(string controlJobId, string moduleName);
|
|
|
+ /// <summary>
|
|
|
+ /// 告警日志
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message"></param>
|
|
|
+ void WriteWarningLog(string message);
|
|
|
+ /// <summary>
|
|
|
+ /// 错误日志
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message"></param>
|
|
|
+ void WriteErrorLog(string message);
|
|
|
+ /// <summary>
|
|
|
+ /// 正常日志
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message"></param>
|
|
|
+ void WriteInfoLog(string message);
|
|
|
+ }
|
|
|
+}
|