|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectifs.model.Constraint
ifs.model.BinaryConstraint
public abstract class BinaryConstraint
Binary constraint.
Extension of Constraint that links exactly two variables.
Variable,
Constraint,
Model| Constructor Summary | |
|---|---|
BinaryConstraint()
|
|
| Method Summary | |
|---|---|
void |
addVariable(Variable var)
Add a variable to this constraint |
Variable |
another(Variable variable)
Returns the variable out of the constraints variables which is different from the given variable. |
Variable |
first()
First variable |
boolean |
isFirst(Variable variable)
True, id the given variable is the first one |
Variable |
second()
Second variable |
| Methods inherited from class ifs.model.Constraint |
|---|
addConstraintListener, assigned, assignedVariables, computeConflicts, countAssignedVariables, countVariables, getDescription, getId, getInfo, getModel, getName, hashCode, inConflict, isConsistent, isHard, removeConstraintListener, removeVariable, setModel, unassigned, variables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryConstraint()
| Method Detail |
|---|
public void addVariable(Variable var)
Constraint
addVariable in class Constraintpublic Variable first()
public Variable second()
public boolean isFirst(Variable variable)
public Variable another(Variable variable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||