|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrevisionlogic.ISent
revisionlogic.BinaryCompound
BinaryCompound represents an implication or a biconditional (equivalence) with two operands. It is a concrete subclass of ISent.
| Field Summary |
| Fields inherited from class revisionlogic.ISent |
ATOM, BIIMP, CONJ, CONT, DIS, IMP, NEG, TAUT |
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a clone of this BinaryCompound. |
(package private) ISent |
conjunctionsIn()
Returns a reference to this BinaryCompound, as a BinaryCompound has no outer conjunction sign to re-distribute. |
(package private) ISent |
disjunctionsIn()
Returns a reference to this BinaryCompound, as a BinaryCompound has no outer disjunction sign to re-distribute. |
boolean |
equals(java.lang.Object s)
Checks if this BinaryCompound equals s. |
(package private) java.util.HashSet |
getAtoms()
Returns a set consisting of the literals of this BinaryCompound. |
(package private) int |
getDepth()
Returns the depth (levels of nesting) of this BinaryCompound. |
(package private) java.lang.StringBuffer |
getLabelSB()
Returns a string buffer holding the string representation of this BinaryCompound. |
(package private) ISent |
getSubSentence1()
Returns the left operand. |
(package private) ISent |
getSubSentence2()
Returns the right operand. |
int |
getType()
Returns the type of this BinaryCompound. |
int |
hashCode()
Returns the hash code of this BinaryCompound based on its two operands. |
(package private) ISent |
implicationsOut()
Returns a reference to an equivalent ISent sentence, in which the implication has been replaced with disjunctions, and the biconditional with a conjunction of two disjunctions. |
static ISent |
makeBiImp(ISent s1,
ISent s2)
Returns a reference to an ISent biconditional with left operand s1 and right operand s2. |
static ISent |
makeImp(ISent s1,
ISent s2)
Returns a reference to an ISent implication with premise s1 and conclusion s2. |
(package private) ISent |
negationsIn()
Returns a reference to this BinaryCompound, as a BinaryCompound has no outer negation sign to re-distribute. |
| Methods inherited from class revisionlogic.ISent |
getCNF, getCNFUI, getDIMACSFormat, getDNFUI, getLabel, isConsistent, isConsistent, isConsistent, isInconsistentSList, isprConsistent |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.Object clone()
clone in class ISentpublic int hashCode()
public static ISent makeImp(ISent s1,
ISent s2)
s1 and conclusion s2.
s1 - a reference to the ISent sentence used as the premise.s2 - a reference to the ISent sentence used as the conclusion.
s1 or s2 is null, or to the resultant ISent.
public static ISent makeBiImp(ISent s1,
ISent s2)
s1 and right operand s2.
s1 - a reference to the ISent sentence used as the left operand.s2 - a reference to the ISent sentence used as the right operand.
s1 or s2 is null, or to the resultant ISent.public int getType()
getType in class ISentint getDepth()
getDepth in class ISentISent getSubSentence1()
ISent getSubSentence2()
java.lang.StringBuffer getLabelSB()
getLabelSB in class ISentjava.util.HashSet getAtoms()
getAtoms in class ISentpublic boolean equals(java.lang.Object s)
s.
equals in class ISents is a BinaryCompound of the same type with equal operands, false otherwise.ISent implicationsOut()
implicationsOut in class ISentISent negationsIn()
negationsIn in class ISentISent disjunctionsIn()
disjunctionsIn in class ISentISent conjunctionsIn()
conjunctionsIn in class ISent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||