using System; using System.Threading; using MECF.Framework.Simulator.Core.Driver; namespace EfemDualSimulator.Devices { class SMCChillerMockPMB : SerialPortDeviceSimulator { public enum SMCChillerStatus { Open, Close, } public static SMCChillerStatus _simPumpStatus; private const string EOF = "\r\n"; private const char MSG_DELIMITER = ' '; private const string MOCKUP_PORT = "COM43"; public SMCChillerMockPMB(string com) : base(com, -1, EOF, MSG_DELIMITER) { _simPumpStatus = SMCChillerStatus.Close; } protected override void ProcessUnsplitMessage(string message) { if (string.IsNullOrEmpty(message)) throw new ArgumentException("Hardware command message is invalid"); } } }