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