| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using Aitex.Core.Util;
- using MECF.Framework.Common.Equipment;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PunkHPX8_RT.Modules
- {
- public class ModuleMatcherManager : Singleton<ModuleMatcherManager>
- {
- #region 常量
- private Dictionary<string, string> _matcher =new Dictionary<string, string>
- {
- { ModuleName.PlatingCell1.ToString(),ModuleName.PlatingCell2.ToString()},
- { ModuleName.PlatingCell2.ToString(),ModuleName.PlatingCell1.ToString()},
- { ModuleName.PlatingCell3.ToString(),ModuleName.PlatingCell4.ToString()},
- { ModuleName.PlatingCell4.ToString(),ModuleName.PlatingCell3.ToString()},
- { ModuleName.VPW1.ToString(),ModuleName.VPW2.ToString()},
- { ModuleName.VPW2.ToString(),ModuleName.VPW1.ToString()},
- };
- #endregion
- /// <summary>
- /// 获取配对模块
- /// </summary>
- /// <param name="module"></param>
- /// <returns></returns>
- public string GetMatcherByModule(string module)
- {
- if (_matcher.ContainsKey(module)){
- return _matcher[module];
- }
- else
- {
- return "";
- }
- }
- }
- }
|