|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectomnics.Constraint
omnics.constraint.UnaryConstraint
public abstract class UnaryConstraint
| Field Summary | |
|---|---|
protected Var |
x
|
| Fields inherited from class omnics.Constraint |
|---|
ALLOWED, filter, FORBIDDEN, MAX, MIN, name, problem, variables |
| Constructor Summary | |
|---|---|
UnaryConstraint(Var x)
Creates a new instance of BinaryConstraint |
|
| Method Summary | |
|---|---|
abstract int |
eval(java.lang.Object a)
This is the method that evaluates the tuple (x=a). |
int |
eval(Tuple tuple)
Method used by the solver. |
int |
eval(Var x,
java.lang.Object a)
Method used by the solver. |
| Methods inherited from class omnics.Constraint |
|---|
eval, getFilter, getName, getProblem, getTuples, getVarArray, getVariables, setFilter, setName, setVariables, setVariables, toString, variable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Var x
| Constructor Detail |
|---|
public UnaryConstraint(Var x)
| Method Detail |
|---|
public abstract int eval(java.lang.Object a)
public int eval(Var x,
java.lang.Object a)
eval in class Constraintx - some variable of the constrainta - some value in x's domain
Constraint.eval(Tuple),
ValuationStructurepublic int eval(Tuple tuple)
eval in class Constrainttuple - some tuple
Constraint.eval(Tuple),
ValuationStructure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||