aima.logic.fol.parsing.ast
Class ConnectedSentence
java.lang.Object
aima.logic.fol.parsing.ast.ParanthizedSentence
aima.logic.fol.parsing.ast.ConnectedSentence
- All Implemented Interfaces:
- ParseTreeNode, FOLNode, Sentence
public class ConnectedSentence
- extends ParanthizedSentence
- Author:
- Ravi Mohan
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ConnectedSentence
public ConnectedSentence(java.lang.String connector,
Sentence first,
Sentence second)
getConnector
public java.lang.String getConnector()
getFirst
public Sentence getFirst()
getSecond
public Sentence getSecond()
setFirst
public void setFirst(Sentence first)
setSecond
public void setSecond(Sentence second)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class ParanthizedSentence
hashCode
public int hashCode()
- Overrides:
hashCode in class ParanthizedSentence
toString
public java.lang.String toString()
- Specified by:
toString in interface FOLNode- Overrides:
toString in class ParanthizedSentence
accept
public java.lang.Object accept(FOLVisitor v,
java.lang.Object arg)
- Specified by:
accept in interface FOLNode- Overrides:
accept in class ParanthizedSentence
copy
public FOLNode copy()
- Specified by:
copy in interface FOLNode- Overrides:
copy in class ParanthizedSentence