Пример #1
0
        private Variable RunSystem()
        {
            string notMicrosoft = comboNotMicrosoft.Text;
            string algorithms   = comboAlgorithms.Text;
            string compilations = comboCompilations.Text;


            _system.Initialize();
            _system.AddKnowledge(
                new List <Variable>()
            {
                new Variable("notMicrosoft", notMicrosoft),
                new Variable("algorithms", algorithms),
                new Variable("compilations", compilations)
            });
            _system.Inference();

            return(_system.KnowledgeBase.FirstOrDefault(x => x.Name.Equals("language")));
        }