Class TypeCache.ConstraintTemplate
java.lang.Object
net.ssehub.easy.reasoning.sseReasoner.model.TypeCache.ConstraintTemplate
- Enclosing class:
TypeCache
Represents a constraint template with related constraint set to add the constraint to.
- Author:
- Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate net.ssehub.easy.varModel.model.Constraintprivate booleanprivate booleanprivate net.ssehub.easy.reasoning.core.reasoner.ConstraintList -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstraintTemplate(net.ssehub.easy.reasoning.core.reasoner.ConstraintList target, boolean first, net.ssehub.easy.varModel.model.Constraint constraint, boolean register) Creates the constraint template. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidtransfer(TypeCache.IConstraintTarget target, net.ssehub.easy.varModel.confModel.IDecisionVariable register, net.ssehub.easy.varModel.model.AbstractVariable var, net.ssehub.easy.varModel.model.AbstractVariable self) Transfers the stored constraint into the context ofself.
-
Field Details
-
target
private net.ssehub.easy.reasoning.core.reasoner.ConstraintList target -
first
private boolean first -
constraint
private net.ssehub.easy.varModel.model.Constraint constraint -
register
private boolean register
-
-
Constructor Details
-
ConstraintTemplate
private ConstraintTemplate(net.ssehub.easy.reasoning.core.reasoner.ConstraintList target, boolean first, net.ssehub.easy.varModel.model.Constraint constraint, boolean register) Creates the constraint template.- Parameters:
target- the target constraint setfirst- add to front or to endconstraint- the constraintregister- the constraint with theVariablesMap
-
-
Method Details
-
transfer
private void transfer(TypeCache.IConstraintTarget target, net.ssehub.easy.varModel.confModel.IDecisionVariable register, net.ssehub.easy.varModel.model.AbstractVariable var, net.ssehub.easy.varModel.model.AbstractVariable self) Transfers the stored constraint into the context ofself.- Parameters:
target- the target constraint setregister- the decision variable to register with (may be null for none)var- the original (template) variableself- the new variable
-