|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.satdecoding.Literal
public class Literal
A Literal is a data structure that represents a variable and its
phase.
| Constructor Summary | |
|---|---|
Literal(java.lang.Object variable,
boolean phase)
Constructs a Literal with a variable and their phase. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified Object with this for equality. |
int |
hashCode()
Returns a hash code value for this Literal. |
Literal |
negate()
Returns the negated Literal. |
boolean |
phase()
Returns the phase of this Literal. |
java.lang.String |
toString()
Returns a String representation of this Literal. |
java.lang.Object |
variable()
Returns the variable of this Literal. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Literal(java.lang.Object variable,
boolean phase)
Literal with a variable and their phase.
variable - the variablephase - the phase (true means not negated)| Method Detail |
|---|
public java.lang.Object variable()
Literal.
public boolean phase()
Literal.
true if the literal is not negated, false if the
literal is negatedpublic Literal negate()
Literal.
public int hashCode()
Literal.
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Object with this for equality. Returns
true if the objects are equal and false if they are not
equal, respectively.
equals in class java.lang.Objectobj - the reference object with which to compare
true if the objects are equal and false if they
are not equalpublic java.lang.String toString()
String representation of this Literal.
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||