Exemple #1
0
        public override Predicate Negate()
        {
            KnowWhetherPredicate kpNegate = new KnowWhetherPredicate(Knowledge);

            kpNegate.Negation = !Negation;
            return(kpNegate);
        }
Exemple #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);
 }
 public override Predicate Negate()
 {
     KnowWhetherPredicate kpNegate = new KnowWhetherPredicate(Knowledge);
     kpNegate.Negation = !Negation;
     return kpNegate;
 }