|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectomnics.Constraint
omnics.constraint.ScalarProductLeq
public class ScalarProductLeq
| Field Summary |
|---|
| Fields inherited from class omnics.Constraint |
|---|
ALLOWED, filter, FORBIDDEN, MAX, MIN, name, problem, variables |
| Constructor Summary | |
|---|---|
ScalarProductLeq(Var[] variables,
int[] coeffs,
int sum)
Creates a new instance of ScalarProductLeq |
|
| Method Summary | |
|---|---|
int |
eval(Tuple tuple)
Evaluates a tuple. |
java.lang.String |
toString()
Returns a string representation of the constraint. |
| Methods inherited from class omnics.Constraint |
|---|
eval, eval, getFilter, getName, getProblem, getTuples, getVarArray, getVariables, setFilter, setName, setVariables, setVariables, variable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScalarProductLeq(Var[] variables,
int[] coeffs,
int sum)
| Method Detail |
|---|
public int eval(Tuple tuple)
Constraint
eval in class Constrainttuple - some tuple
Constraint.eval(Tuple),
ValuationStructurepublic java.lang.String toString()
toString in class Constraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||