Interface TypeCache.IConstraintTarget
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddConstraint(ConstraintList target, boolean first, Constraint constraint, IDecisionVariable register)Adds a constraint to the (preliminary) constraint base.booleaninRescheduling()Returns whether the constraint target is currently in re-scheduling and, thus, e.g., default constraints shall not be added.
-
-
-
Method Detail
-
addConstraint
void addConstraint(ConstraintList target, boolean first, Constraint constraint, IDecisionVariable register)
Adds a constraint to the (preliminary) constraint base.- Parameters:
target- the target constraint setfirst- at to front/endconstraint- the constraint to be addedregister- register the constraint withVariablesMapfor the given variable (ignored if null)
-
inRescheduling
boolean inRescheduling()
Returns whether the constraint target is currently in re-scheduling and, thus, e.g., default constraints shall not be added.- Returns:
truefor re-scheduling,falseelse
-
-