Interface TypeCache.IConstraintTarget
- All Known Implementing Classes:
Resolver
- Enclosing class:
TypeCache
public static interface TypeCache.IConstraintTarget
Specifies the interface that an object receiving constraints from this class must provide.
- Author:
- Holger Eichelberger
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(net.ssehub.easy.reasoning.core.reasoner.ConstraintList target, boolean first, net.ssehub.easy.varModel.model.Constraint constraint, net.ssehub.easy.varModel.confModel.IDecisionVariable register) Adds a constraint to the (preliminary) constraint base.booleanReturns whether the constraint target is currently in re-scheduling and, thus, e.g., default constraints shall not be added.
-
Method Details
-
addConstraint
void addConstraint(net.ssehub.easy.reasoning.core.reasoner.ConstraintList target, boolean first, net.ssehub.easy.varModel.model.Constraint constraint, net.ssehub.easy.varModel.confModel.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
-