| Modifier and Type | Class and Description |
|---|---|
class |
RelationLiteral.Brick |
| Modifier and Type | Field and Description |
|---|---|
int |
arity |
boolean |
conflicts |
java.lang.String |
name |
boolean |
negative |
int[][] |
tuples |
IntegerVariable[] |
vs |
| Constructor and Description |
|---|
RelationLiteral(java.lang.String name,
int arity,
boolean negative,
boolean conflicts,
int[][] tuples,
IntegerVariable[] vs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<RelationLiteral.Brick> |
getConflictBricks() |
int |
hashCode() |
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() |
getBound, getCode, getVariablespublic java.lang.String name
public int arity
public boolean negative
public boolean conflicts
public IntegerVariable[] vs
public int[][] tuples
public RelationLiteral(java.lang.String name,
int arity,
boolean negative,
boolean conflicts,
int[][] tuples,
IntegerVariable[] vs)
public 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 java.util.List<RelationLiteral.Brick> getConflictBricks() throws SugarException
SugarExceptionpublic 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