Example #1
0
        /// <summary>
        /// Creates a numeric option based on the information of the given XML Node (calls base function)
        /// </summary>
        /// <param name="numOptNode">The XML Element containing the information</param>
        /// <param name="variabilityModel">The variability model to which the option belongs to</param>
        /// <returns>The newly created option</returns>
        internal static ConfigurationOption loadFromXML(XmlElement numOptNode, VariabilityModel variabilityModel)
        {
            NumericOption numOpt = new NumericOption(variabilityModel, "temp");

            numOpt.loadFromXML(numOptNode);
            return(numOpt);
        }
 private void loadNumericOptions(XmlElement xmlNode)
 {
     foreach (XmlElement numOptNode in xmlNode.ChildNodes)
     {
         if (!addConfigurationOption(NumericOption.loadFromXML(numOptNode, this)))
         {
             GlobalState.logError.logLine("Could not add option to the variability model. Possible reasons: invalid name, option already exists.");
         }
     }
 }
 /// <summary>
 /// Creates a numeric option based on the information of the given XML Node (calls base function)
 /// </summary>
 /// <param name="numOptNode">The XML Element containing the information</param>
 /// <param name="variabilityModel">The variability model to which the option belongs to</param>
 /// <returns>The newly created option</returns>
 internal static ConfigurationOption loadFromXML(XmlElement numOptNode, VariabilityModel variabilityModel)
 {
     NumericOption numOpt = new NumericOption(variabilityModel, "temp");
     numOpt.loadFromXML(numOptNode);
     return numOpt;
 }