コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }