public class LinearEqLiteral extends LinearLiteral
| Constructor and Description |
|---|
LinearEqLiteral(LinearSum linearSum)
Constructs a new comparison literal of given linear expression.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getBound(IntegerVariable v) |
int |
getCode() |
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() |
ceilDiv, equals, floorDiv, getCmp, getLinearExpression, getVariables, hashCode, toStringpublic LinearEqLiteral(LinearSum linearSum)
linearSum - the linear expressionpublic int[] getBound(IntegerVariable v) throws SugarException
getBound in class LiteralSugarExceptionpublic boolean isSimple()
Literalpublic boolean isValid()
throws SugarException
isValid in class LiteralSugarExceptionpublic boolean isUnsatisfiable()
throws SugarException
isUnsatisfiable in class LiteralSugarExceptionpublic int propagate()
throws SugarException
propagate in class LiteralSugarExceptionpublic Literal neg() throws SugarException
neg in class LiteralSugarExceptionpublic int getCode()
throws SugarException
getCode in class LiteralSugarExceptionpublic boolean isSatisfied()
LiteralisSatisfied in class Literal