|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrevisionlogic.ISent
revisionlogic.Negation
Negation represents a negation. 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 Negation. |
(package private) ISent |
conjunctionsIn()
Returns a reference to this Negation, as this method is invoked only after (1) the implications and the biconditionals have been replaced with and, or, and not, and (2) the negations signs have been re-distributed to the literals. |
(package private) ISent |
disjunctionsIn()
Returns a reference to this Negation, as this method is invoked only after (1) the implications and the biconditionals have been replaced with and, or, and not, and (2) the negations signs have been re-distributed to the literals. |
boolean |
equals(java.lang.Object s)
Checks if this Negation equals s . |
(package private) java.util.HashSet |
getAtoms()
Returns a set consisting of the literals of this Negation. |
(package private) int |
getDepth()
Returns the depth (levels of nesting) of this Negation. |
(package private) java.lang.StringBuffer |
getLabelSB()
Returns a string buffer holding a negation sign and the string representation of the negated sentence. |
(package private) ISent |
getSubSentence()
Returns the negated sentence. |
int |
getType()
Returns the type of this Negation. |
int |
hashCode()
Returns the hash code of this Negation based on its negated sentence. |
(package private) ISent |
implicationsOut()
Returns a reference to an equivalent ISent sentence, in which the negated sentence has all its implications and biconditionals replaced with and, or, and not. |
(package private) static ISent |
makeNeg(ISent s)
Returns a reference to an ISent as a result of negating the sentence s . |
(package private) ISent |
negationsIn()
Returns a reference to an equivalent ISent sentence, in which 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 |
static ISent makeNeg(ISent s)
s
.
s
- a reference to the ISent sentence to be negated.
s
is null, or to the resultant ISent.public java.lang.Object clone()
clone
in class ISent
public int hashCode()
public int getType()
getType
in class ISent
int getDepth()
getDepth
in class ISent
ISent getSubSentence()
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 Negation with an equal negated sentence, false otherwise.ISent implicationsOut()
implicationsOut
in class ISent
ISent negationsIn()
negationsIn
in class ISent
ISent disjunctionsIn()
disjunctionsIn
in class ISent
ISent conjunctionsIn()
conjunctionsIn
in class ISent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |