/// <summary> /// Creates the Simian from the config file and sets up the rules file. /// If null, a default is used for that file. /// </summary> /// <param name="ConfigFile">The name of the configuration XML file or null</param> public Simian(string ConfigFile) { m_Config = Configure.getOnly(ConfigFile); m_log = new Log(m_Config.getLogFile(), null); m_GuiModel = m_Config.getGuiModel(); m_varNodes = VarNodes.getOnly(); }
/// <summary> /// Gets the only configuration if there is one (use null parameter value). /// If there isn't one, it sets one up. /// A default configuration is used when a null file name is given. /// </summary> /// <param name="ConfigFile">The name of the configuration XML file or null</param> public static Configure getOnly(string ConfigFile) { if (m_config == null) m_config = new Configure(ConfigFile); return m_config; }