public override XmlElement Save(XmlDocument xmlDoc) { XmlElement xmlNode = base.Save(xmlDoc); xmlNode.SetAttribute("DeviceIdentifier", deviceIdentifier); if (smooth) { xmlNode.AppendChild(smoother.Save(xmlDoc)); } if (predict) { xmlNode.AppendChild(predictor.Save(xmlDoc)); } return(xmlNode); }
public override XmlElement Save(XmlDocument xmlDoc) { XmlElement xmlNode = base.Save(xmlDoc); xmlNode.SetAttribute("Optimize", optimize.ToString()); xmlNode.SetAttribute("MaxDropouts", maxDropouts.ToString()); if (smooth) { xmlNode.AppendChild(smoother.Save(xmlDoc)); } if (predict) { xmlNode.AppendChild(predictor.Save(xmlDoc)); } return(xmlNode); }