using Aitex.Common.Util; using Aitex.Core.RT.Device; using Aitex.Core.Util; using MECF.Framework.Common.Equipment; using MECF.Framework.Common.IOCore; using MECF.Framework.RT.Core.IoProviders; using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.FFUs.AAF; using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.JEL; using MECF.Framework.RT.ModuleLibrary.PMModules; namespace JetMainframe { public class JetMainframeDeviceManager : Singleton { private DeviceController _controller; private DeviceManagerBase _device; public JetMainframeDeviceManager() { _controller = new DeviceController(); _device = new DeviceManagerBase(true); } public void Initialize() { string ioProviderPathFile = PathManager.GetCfgDir() + "JetMainframe//IoProviderConfig.xml"; IoProviderManager.Instance.Initialize(ioProviderPathFile, "System", "io"); IoManager.Instance.Initialize(PathManager.GetCfgDir() + "JetMainframe//interlockMainFrame.xml"); _device.Initialize(PathManager.GetCfgDir() + "JetMainframe//DeviceModelMainframe.xml", "JetMainframe", ModuleName.System, "System"); _device.AddCustomDevice(new JelRobot("TM", "TMRobot", "TM")); _device.AddCustomDevice(new FfuAAF("TM", "FFU", "TM")); _controller.Start(_device); } public void Reset() { _controller.Reset(); } public void Terminate() { _controller.Terminate(); } } }