|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectomnics.Constraint
omnics.constraint.ExplicitConstraint
public class ExplicitConstraint
| Field Summary |
|---|
| Fields inherited from class omnics.Constraint |
|---|
ALLOWED, filter, FORBIDDEN, MAX, MIN, name, problem, variables |
| Constructor Summary | |
|---|---|
ExplicitConstraint()
Creates a new instance of ExplicitConstraint |
|
ExplicitConstraint(java.lang.String name,
VarSet variables,
java.lang.Object[][] values)
Creates a new instance of ExplicitConstraint |
|
ExplicitConstraint(VarSet variables,
java.lang.Object[][] values)
Creates a new instance of ExplicitConstraint |
|
| Method Summary | |
|---|---|
boolean |
add(Tuple tuple)
|
boolean |
contains(Tuple tuple)
Tests if the tuple is |
int |
eval(Tuple tuple)
Evaluates a tuple. |
TupleSet |
getTuples()
Creates and returns a set containing all the tuples that satisfy this constraint. |
void |
join(TupleSet otherTuples)
|
boolean |
remove(Tuple tuple)
|
void |
setTuples(TupleSet tuples)
|
java.lang.String |
toString()
Returns a string representation of the constraint. |
| Methods inherited from class omnics.Constraint |
|---|
eval, eval, getFilter, getName, getProblem, 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 ExplicitConstraint()
public ExplicitConstraint(VarSet variables,
java.lang.Object[][] values)
public ExplicitConstraint(java.lang.String name,
VarSet variables,
java.lang.Object[][] values)
| Method Detail |
|---|
public TupleSet getTuples()
ConstraintWarning: if the constrained is not an explicit constraint
getTuples in class Constraintpublic void setTuples(TupleSet tuples)
public boolean add(Tuple tuple)
public boolean remove(Tuple tuple)
public boolean contains(Tuple tuple)
public int eval(Tuple tuple)
Constraint
eval in class Constrainttuple - some tuple
Constraint.eval(Tuple),
ValuationStructurepublic void join(TupleSet otherTuples)
public java.lang.String toString()
Constraint
toString in class Constraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||