public static ExpertSystem LoadData(string name)
        {
            XmlSerializer xml = new XmlSerializer(typeof(ExpertSystem));

            using (FileStream fs = new FileStream(name, FileMode.OpenOrCreate))
            {
                ExpertSystem returnable = (ExpertSystem)xml.Deserialize(fs);
                returnable.FillTheEvents();
                return(returnable);
            }
        }
예제 #2
0
 public ExpressionCalculator(ExpertSystem es)
 {
     ES = es;
 }
 public EventCalculator(ExpertSystem es)
 {
     ES = es;
 }