AIMA.Core.Logic.Propositional.Visitors.AndDetector.visitBinarySentence C# (CSharp) Method

visitBinarySentence() public method

public visitBinarySentence ( BinarySentence fs, Object arg ) : Object
fs AIMA.Core.Logic.Propositional.Parsing.Ast.BinarySentence
arg Object
return Object
        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);
            }
        }