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

isAndSentence() public method

public isAndSentence ( ) : bool
return bool
        public bool isAndSentence()
        {
            return (getOperator().Equals("AND"));
        }

Usage Example

Beispiel #1
0
 public Object visitBinarySentence(BinarySentence fs, Object arg)
 {
     if (fs.isAndSentence())
     {
         return true;
     }
     else
     {
         bool first = ((bool)fs.getFirst().accept(this, null));
         bool second = ((bool)fs.getSecond().accept(this, null));
         return (first || second);
     }
 }