| 12345678910111213141516171819202122232425262728293031323334 | using System;using System.Threading;using MECF.Framework.Simulator.Core.Driver;namespace Venus_Simulator.Devices{    class SMCChillerMock : 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 SMCChillerMock(string port) : base(port, -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");                    }    }}
 |