Esempio n. 1
0
 /// <summary>
 /// 场景初始化
 /// <para>接口初始化和事件初始化不可同时使用,即如果初始化了相应场景的接口之后,对应场景下所有的事件将不会再被响应</para>
 /// </summary>
 /// <param name="itializeScenario">initialize场景回调方法接口</param>
 /// <param name="rCSCallBack">Remote Control场景回调方法接口</param>
 /// <param name="aMSCallBack">Alart Management场景回调方法接口</param>
 /// <param name="clock">Clock场景回调方法接口</param>
 /// <param name="eqtTerminalService">Equipment Terminal Service场景回调方法接口</param>
 /// <param name="recipeManagement">Prcess Program(Recipe) Management场景回调方法接口</param>
 /// <param name="dataCollection">Data Collection场景回调方法接口</param>
 public void ScenarioInitialize(
     IInitializeScenario itializeScenario = null,
     IRCSCallBack rCSCallBack             = null,
     IAMSCallBack aMSCallBack             = null,
     IClock clock = null,
     IEqtTerminalService eqtTerminalService = null,
     IRecipeManagement recipeManagement     = null,
     IDataCollection dataCollection         = null)
 {
     scenarioControllers.Add(Scenarios.Intialize_Scenario, new InitializeScenario(itializeScenario ?? this));
     scenarioControllers.Add(Scenarios.Remote_Control, new RemoteControl(rCSCallBack ?? this));
     scenarioControllers.Add(Scenarios.Alarm_Management, new AlarmManagement(aMSCallBack ?? this));
     scenarioControllers.Add(Scenarios.Clock, new Clock(clock ?? this));
     scenarioControllers.Add(Scenarios.Equipment_Terminal_Service, new EqtTerminalService(eqtTerminalService ?? this));
     scenarioControllers.Add(Scenarios.Recipe_Management, new RecipeManagement(recipeManagement ?? this));
     scenarioControllers.Add(Scenarios.Data_Collection, new DataCollection(dataCollection ?? this));
     secsGemService.Start();
 }
 public EqtTerminalService(IEqtTerminalService callback)
 {
     eqtTerminalService = callback;
 }