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); } }
public ExpressionCalculator(ExpertSystem es) { ES = es; }
public EventCalculator(ExpertSystem es) { ES = es; }