示例#1
0
 /// <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();
 }
示例#2
0
 /// <summary>
 /// Gets the configured GuiModel.
 /// </summary>
 /// <returns>The guiModel referenced in the configuration.</returns>
 public GuiModel getGuiModel()
 {
     if (m_guiModel == null)
         m_guiModel = new GuiModel(m_modelPath, m_modelRootFile);
     return m_guiModel;
 }