private void NewConditionalPredicate(ConditionalPredicate p) { if (!PredicatesName.Contains(p.root.Name)) { PredicatesName.Add(p.root.Name); } kb.add(p); }
public void add(object obj) { if (obj.GetType() == typeof(Predicate)) { Predicate hold = new Predicate((Predicate)obj); //Console.WriteLine("pred" + hold.Name); predicates.Add(hold); } else if (obj.GetType() == typeof(ConditionalPredicate)) { ConditionalPredicate hold = new ConditionalPredicate((ConditionalPredicate)obj); //Console.WriteLine("cond" + hold.root.Name); ConditionalPredicates.Add(hold); } }
public ConditionalPredicate(ConditionalPredicate cp) { set(cp.root, cp.conditions); }