|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrevisionlogic.ISent
revisionlogic.Atom
Atom represents an atom. It is a concrete subclass of ISent.
| Field Summary | |
(package private) java.lang.String |
m_LabelStr
A reference to the literal string. |
| Fields inherited from class revisionlogic.ISent |
ATOM, BIIMP, CONJ, CONT, DIS, IMP, NEG, TAUT |
| Constructor Summary | |
(package private) |
Atom(java.lang.String s)
Creates a new Atom with literal s. |
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a clone of this Atom. |
(package private) ISent |
conjunctionsIn()
Returns a reference to this Atom, as the dnf transformation of an atom remains the same as the atom. |
(package private) ISent |
disjunctionsIn()
Returns a reference to this Atom, as the cnf transformation of an atom remains the same as the atom. |
boolean |
equals(java.lang.Object s)
Checks if this Atom equals s. |
(package private) java.util.HashSet |
getAtoms()
Returns a set consisting of the literal of this Atom. |
ISent |
getCNF()
Returns a reference to this Atom, as the cnf transformation of an atom remains the same as the atom. |
ISent |
getCNFUI()
Returns a reference to this Atom, as the cnf transformation of an atom remains the same as the atom. |
(package private) int |
getDepth()
Returns the depth of this Atom. |
ISent |
getDNFUI()
Returns a reference to this Atom, as the dnf transformation of an atom remains the same as the atom. |
java.lang.String |
getLabel()
Returns the string representation of this Atom. |
(package private) java.lang.StringBuffer |
getLabelSB()
Returns the string buffer holding the literal of this Atom. |
int |
getType()
Returns the type of this Atom. |
int |
hashCode()
Returns the hash code of this Atom based on its literal. |
(package private) ISent |
implicationsOut()
Returns a reference to this Atom, as the cnf and dnf transformations of an atom remain the same as the atom. |
boolean |
isConsistent()
Returns true to indicate this Atom is itself consistent. |
(package private) ISent |
negationsIn()
Returns a reference to this Atom, as the cnf and dnf transformations of an atom remain the same as the atom. |
| Methods inherited from class revisionlogic.ISent |
getDIMACSFormat, isConsistent, isConsistent, isInconsistentSList, isprConsistent |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String m_LabelStr
| Constructor Detail |
Atom(java.lang.String s)
s.
s - a reference to the literal string.| Method Detail |
public java.lang.Object clone()
clone in class ISentint getDepth()
getDepth in class ISentpublic int getType()
getType in class ISentjava.lang.StringBuffer getLabelSB()
getLabelSB in class ISentpublic java.lang.String getLabel()
getLabel in class ISentpublic int hashCode()
public boolean equals(java.lang.Object s)
s.
equals in class ISents is an Atom with the same literal, false otherwise.public boolean isConsistent()
isConsistent in class ISentjava.util.HashSet getAtoms()
getAtoms in class ISentISent implicationsOut()
implicationsOut in class ISentISent negationsIn()
negationsIn in class ISentISent disjunctionsIn()
disjunctionsIn in class ISentISent conjunctionsIn()
conjunctionsIn in class ISentpublic ISent getCNF()
getCNF in class ISentpublic ISent getCNFUI()
This method is invoked only by the ListSent constructors.
getCNFUI in class ISentpublic ISent getDNFUI()
This method is invoked only by the ListSent constructors.
getDNFUI in class ISent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||