Ejemplo n.º 1
0
        public override Predicate Negate()
        {
            KnowWhetherPredicate kpNegate = new KnowWhetherPredicate(Knowledge);

            kpNegate.Negation = !Negation;
            return(kpNegate);
        }
Ejemplo n.º 2
0
 public override bool Equals(object obj)
 {
     if (obj is KnowWhetherPredicate)
     {
         KnowWhetherPredicate kp = (KnowWhetherPredicate)obj;
         if (Negation == kp.Negation)
         {
             return(Knowledge.Equals(kp.Knowledge));
         }
     }
     return(false);
 }