/// <inheritdoc/>
        public override XElement GetXml(string rootElemName, bool suppressDefaults)
        {
            XElement rootElem = new XElement(rootElemName,
                                             new XAttribute("name", PredictorID.ToString())
                                             );

            Validate(rootElem, XsdTypeName);
            return(rootElem);
        }
Exemple #2
0
 //Methods
 /// <summary>
 /// Checks if given predictor is enabled
 /// </summary>
 /// <param name="predictorID">Identificator of the predictor</param>
 public bool IsPredictorEnabled(PredictorID predictorID)
 {
     return(_cfg.IsEnabled(predictorID));
 }