aima.logic.fol.inference
Class AbstractModulation.ReplaceMatchingTerm
java.lang.Object
aima.logic.fol.inference.AbstractModulation.ReplaceMatchingTerm
- All Implemented Interfaces:
- FOLVisitor
- Enclosing class:
- AbstractModulation
protected class AbstractModulation.ReplaceMatchingTerm
- extends java.lang.Object
- implements FOLVisitor
Method Summary |
AtomicSentence |
replace(AtomicSentence expression,
Term toReplace,
Term replaceWith)
|
java.lang.Object |
visitConnectedSentence(ConnectedSentence sentence,
java.lang.Object arg)
|
java.lang.Object |
visitConstant(Constant constant,
java.lang.Object arg)
|
java.lang.Object |
visitFunction(Function function,
java.lang.Object arg)
|
java.lang.Object |
visitNotSentence(NotSentence sentence,
java.lang.Object arg)
|
java.lang.Object |
visitPredicate(Predicate p,
java.lang.Object arg)
|
java.lang.Object |
visitQuantifiedSentence(QuantifiedSentence sentence,
java.lang.Object arg)
|
java.lang.Object |
visitTermEquality(TermEquality equality,
java.lang.Object arg)
|
java.lang.Object |
visitVariable(Variable variable,
java.lang.Object arg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractModulation.ReplaceMatchingTerm
public AbstractModulation.ReplaceMatchingTerm()
replace
public AtomicSentence replace(AtomicSentence expression,
Term toReplace,
Term replaceWith)
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