AIMA.Core.Logic.Propositional.Parsing.Ast.BinarySentence.isOrSentence C# (CSharp) Method

isOrSentence() public method

public isOrSentence ( ) : bool
return bool
        public bool isOrSentence()
        {
            return (getOperator().Equals("OR"));
        }

Usage Example

Example #1
0
 public override Object visitBinarySentence(BinarySentence bs, Object arg)
 {
     if (bs.isBiconditional())
     {
         return transformBiConditionalSentence(bs);
     }
     else if (bs.isImplication())
     {
         return transformImpliedSentence(bs);
     }
     else if (bs.isOrSentence()
           && (bs.firstTermIsAndSentence() || bs.secondTermIsAndSentence()))
     {
         return distributeOrOverAnd(bs);
     }
     else
     {
         return base.visitBinarySentence(bs, arg);
     }
 }