/// <summary>
        /// Reading communication parameters from configPath,
        /// and establishing communication links with Process Controllers
        /// </summary>
        /// <param name="configPath"></param>
        /// <returns></returns>
        public void ConfigureEngine(string basePath, string configPath)
        {
            CommunicationModelParser parser = new CommunicationModelParser(basePath);

            if (parser.DeserializeCommunicationModel())
            {
                processControllers = parser.GetProcessControllers();
            }
        }
예제 #2
0
        /// <summary>
        /// Reading communication paremeters from configPath,
        /// and establishing communication links with Process Controllers
        /// </summary>
        /// <param name="configPath"></param>
        /// <returns></returns>
        public bool Configure(string basePath, string configPath)
        {
            bool retVal = false;
            CommunicationModelParser parser = new CommunicationModelParser(basePath);

            if (parser.DeserializeCommunicationModel())
            {
                processControllers = parser.GetProcessControllers();
                retVal             = CreateChannels();
            }

            return(retVal);
        }