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

            Validate(rootElem, XsdTypeName);
            return(rootElem);
        }
예제 #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));
 }