/// <summary> /// Creates a binary option based on the information stored in the xml node. The binary option is assigned to the variability model. /// </summary> /// <param name="node">Node of the xml file holding the information of the binary option.</param> /// <param name="vm">The variabilit model the binary option is assigned to. </param> /// <returns>A binary option of the variabilit model with the information stored in the xml node.</returns> public static BinaryOption loadFromXML(XmlElement node, VariabilityModel vm) { BinaryOption option = new BinaryOption(vm, "temp"); option.loadFromXML(node); return(option); }
private void loadBinaryOptions(XmlElement xmlNode) { foreach (XmlElement binOptNode in xmlNode.ChildNodes) { if (!addConfigurationOption(BinaryOption.loadFromXML(binOptNode, this))) { GlobalState.logError.logLine("Could not add option to the variability model. Possible reasons: invalid name, option already exists."); } } }