|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.model.Constraint net.sf.cpsolver.ifs.model.GlobalConstraint
public abstract class GlobalConstraint
Generic global constraint.
Global constraint is a Constraint
that applies to all variables.
Variable
,
Model
,
Constraint
,
Solver
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.ifs.model.Constraint |
---|
iAssignedVariables, iConstraintListeners, iId |
Constructor Summary | |
---|---|
GlobalConstraint()
|
Method Summary | |
---|---|
void |
addVariable(Variable variable)
Add a variable to this constraint |
void |
assigned(long iteration,
Value value)
Given value is to be assigned to its varable. |
EnumerableCollection |
assignedVariables()
The list of variables of this constraint that are assigned |
void |
removeVariable(Variable variable)
Remove a variable from this constraint |
void |
unassigned(long iteration,
Value value)
Given value is unassigned from its varable. |
Vector |
variables()
The list of variables of this constraint |
Methods inherited from class net.sf.cpsolver.ifs.model.Constraint |
---|
addConstraintListener, computeConflicts, constraintListeners, countAssignedVariables, countVariables, equals, getDescription, getId, getModel, getName, hashCode, inConflict, isConsistent, isHard, removeConstraintListener, setModel |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalConstraint()
Method Detail |
---|
public Vector variables()
variables
in class Constraint
public EnumerableCollection assignedVariables()
assignedVariables
in class Constraint
public void addVariable(Variable variable)
addVariable
in class Constraint
public void removeVariable(Variable variable)
removeVariable
in class Constraint
public void assigned(long iteration, Value value)
assigned
in class Constraint
public void unassigned(long iteration, Value value)
unassigned
in class Constraint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |