aima.logic.fol
Class PredicateCollector
java.lang.Object
aima.logic.fol.PredicateCollector
- All Implemented Interfaces:
- FOLVisitor
public class PredicateCollector
- extends java.lang.Object
- implements FOLVisitor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PredicateCollector
public PredicateCollector()
getPredicates
public java.util.List<Predicate> getPredicates(Sentence s)
visitPredicate
public java.lang.Object visitPredicate(Predicate p,
java.lang.Object arg)
- Specified by:
visitPredicate
in interface FOLVisitor
visitTermEquality
public java.lang.Object visitTermEquality(TermEquality equality,
java.lang.Object arg)
- Specified by:
visitTermEquality
in interface FOLVisitor
visitVariable
public java.lang.Object visitVariable(Variable variable,
java.lang.Object arg)
- Specified by:
visitVariable
in interface FOLVisitor
visitConstant
public java.lang.Object visitConstant(Constant constant,
java.lang.Object arg)
- Specified by:
visitConstant
in interface FOLVisitor
visitFunction
public java.lang.Object visitFunction(Function function,
java.lang.Object arg)
- Specified by:
visitFunction
in interface FOLVisitor
visitNotSentence
public java.lang.Object visitNotSentence(NotSentence sentence,
java.lang.Object arg)
- Specified by:
visitNotSentence
in interface FOLVisitor
visitConnectedSentence
public java.lang.Object visitConnectedSentence(ConnectedSentence sentence,
java.lang.Object arg)
- Specified by:
visitConnectedSentence
in interface FOLVisitor
visitQuantifiedSentence
public java.lang.Object visitQuantifiedSentence(QuantifiedSentence sentence,
java.lang.Object arg)
- Specified by:
visitQuantifiedSentence
in interface FOLVisitor