private void NewConditionalPredicate(ConditionalPredicate p)
 {
     if (!PredicatesName.Contains(p.root.Name))
     {
         PredicatesName.Add(p.root.Name);
     }
     kb.add(p);
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 public ConditionalPredicate(ConditionalPredicate cp)
 {
     set(cp.root, cp.conditions);
 }