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

containsEmbeddedAnd() public method

public containsEmbeddedAnd ( Sentence s ) : bool
s AIMA.Core.Logic.Propositional.Parsing.Ast.Sentence
return bool
        public bool containsEmbeddedAnd(Sentence s)
        {
            return (bool)s.accept(this, null);
        }
    }

Usage Example

Example #1
0
 //
 // PRIVATE METHODS
 //
 private List <Sentence> processSubTerm(Sentence s, List <Sentence> soFar)
 {
     if (detector.containsEmbeddedAnd(s))
     {
         return((List <Sentence>)s.accept(this, soFar));
     }
     else
     {
         soFar.Add(s);
         return(soFar);
     }
 }