aima.logic.fol.parsing.ast
Class ConnectedSentence

java.lang.Object
  extended by aima.logic.fol.parsing.ast.ParanthizedSentence
      extended by aima.logic.fol.parsing.ast.ConnectedSentence
All Implemented Interfaces:
ParseTreeNode, FOLNode, Sentence

public class ConnectedSentence
extends ParanthizedSentence

Author:
Ravi Mohan

Constructor Summary
ConnectedSentence(java.lang.String connector, Sentence first, Sentence second)
           
 
Method Summary
 java.lang.Object accept(FOLVisitor v, java.lang.Object arg)
           
 FOLNode copy()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getConnector()
           
 Sentence getFirst()
           
 Sentence getSecond()
           
 int hashCode()
           
 void setFirst(Sentence first)
           
 void setSecond(Sentence second)
           
 java.lang.String toString()
           
 
Methods inherited from class aima.logic.fol.parsing.ast.ParanthizedSentence
getParanthized
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectedSentence

public ConnectedSentence(java.lang.String connector,
                         Sentence first,
                         Sentence second)
Method Detail

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