|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrevisionlogic.ISent
revisionlogic.MultipleCompound
MultipleCompound represents a disjunction or a conjunction with at least 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 MultipleCompound. |
(package private) ISent |
conjunctionsIn()
Returns a reference to an equivalent ISent sentence, in which, for each operand, its outer conjunction signs are moved inside in the DNF transformation. |
(package private) ISent |
disjunctionsIn()
Returns a reference to an equivalent ISent sentence, in which, for each operand, its outer disjunction signs are moved inside in the CNF transformation. |
boolean |
equals(java.lang.Object s)
Checks if this MultipleCompound equals s . |
(package private) java.util.HashSet |
getAtoms()
Returns a set consisting of the literals of this MultipleCompound. |
(package private) java.util.Vector |
getClauses()
Returns the operands. |
(package private) int |
getDepth()
Returns the depth (levels of nesting) of this MultipleCompound. |
(package private) java.lang.StringBuffer |
getLabelSB()
Returns a string buffer holding the string representation of this MultipleCompound. |
(package private) ISent |
getSubSentence(int i)
Returns the operand at index i . |
int |
getType()
Returns the type of this MultipleCompound. |
int |
hashCode()
Returns the hash code of this MultipleCompound based on its operands. |
(package private) ISent |
implicationsOut()
Returns a reference to an equivalent ISent sentence, in which, for each operand, its implications have been replaced with disjunctions, and its biconditionals with a conjunction of two disjunctions. |
static ISent |
makeConj(java.util.Collection sentSet)
Returns a reference to an ISent conjunction of sentences in sentSet . |
static ISent |
makeConj(ISent s1,
ISent s2)
Returns a reference to an ISent conjunction of sentences s1 and s2 . |
static ISent |
makeDis(java.util.Collection sentSet)
Returns a reference to an ISent disjunction of sentences in sentSet . |
static ISent |
makeDis(ISent s1,
ISent s2)
Returns a reference to an ISent disjunction of sentences s1 and s2 . |
(package private) ISent |
negationsIn()
Returns a reference to an equivalent ISent sentence, in which, for each operand, its negation signs appear only on the literals. |
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 ISent
public static ISent makeConj(ISent s1, ISent s2)
s1
and s2
.
s1
- a reference to the ISent sentence used as the left conjunct.s2
- a reference to the ISent sentence used as the right conjunct.
public int hashCode()
public static ISent makeDis(ISent s1, ISent s2)
s1
and s2
.
s1
- a reference to the ISent sentence used as the left disjunct.s2
- a reference to the ISent sentence used as the right disjunct.
public static ISent makeConj(java.util.Collection sentSet)
sentSet
.
sentSet
- the collection of ISent sentences used as the conjuncts.
public static ISent makeDis(java.util.Collection sentSet)
sentSet
.
sentSet
- the collection of ISent sentences used as the disjuncts.
public int getType()
getType
in class ISent
int getDepth()
getDepth
in class ISent
ISent getSubSentence(int i)
i
.
i
- an int indicating the index of the operand to be returned.
i
.java.lang.StringBuffer getLabelSB()
getLabelSB
in class ISent
java.util.HashSet getAtoms()
getAtoms
in class ISent
public boolean equals(java.lang.Object s)
s
.
equals
in class ISent
s
is a MultipleCompound of the same type with equal operands, false otherwise.ISent implicationsOut()
implicationsOut
in class ISent
ISent negationsIn()
negationsIn
in class ISent
ISent disjunctionsIn()
disjunctionsIn
in class ISent
java.util.Vector getClauses()
ISent conjunctionsIn()
conjunctionsIn
in class ISent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |