public class LinearNeLiteral extends LinearLiteral
Constructor and Description |
---|
LinearNeLiteral(LinearSum linearSum)
Constructs a new comparison literal of given linear expression.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getBound(IntegerVariable v) |
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, toString
public LinearNeLiteral(LinearSum linearSum)
linearSum
- the linear expressionpublic int[] getBound(IntegerVariable v) throws SugarException
getBound
in class Literal
SugarException
public boolean isSimple()
Literal
public boolean isValid() throws SugarException
isValid
in class Literal
SugarException
public boolean isUnsatisfiable() throws SugarException
isUnsatisfiable
in class Literal
SugarException
public int propagate() throws SugarException
propagate
in class Literal
SugarException
public boolean isSatisfied()
Literal
isSatisfied
in class Literal
public Literal neg() throws SugarException
neg
in class Literal
SugarException