| Constructor and Description |
|---|
HoldLiteral(Expression expr,
boolean negative) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Expression |
getExpression() |
java.util.Set<IntegerVariable> |
getVariables() |
int |
hashCode() |
boolean |
isNegative() |
boolean |
isSatisfied()
Returns true when the literal is satisfied.
|
boolean |
isSimple()
Returns true when the literal is simple.
|
boolean |
isUnsatisfiable() |
boolean |
isValid() |
Literal |
neg() |
int |
propagate() |
java.lang.String |
toString() |
public HoldLiteral(Expression expr, boolean negative)
public Expression getExpression()
public boolean isNegative()
public java.util.Set<IntegerVariable> getVariables()
getVariables in class Literalpublic boolean isSimple()
Literalpublic boolean isValid()
throws SugarException
isValid in class LiteralSugarExceptionpublic boolean isUnsatisfiable()
throws SugarException
isUnsatisfiable in class LiteralSugarExceptionpublic boolean isSatisfied()
LiteralisSatisfied in class Literalpublic Literal neg() throws SugarException
neg in class LiteralSugarExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object