/// <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(); } }
/// <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); }