Class TypeCache.ConstraintTemplate
- java.lang.Object
-
- net.ssehub.easy.reasoning.sseReasoner.model.TypeCache.ConstraintTemplate
-
- Enclosing class:
- TypeCache
private class TypeCache.ConstraintTemplate extends java.lang.ObjectRepresents a constraint template with related constraint set to add the constraint to.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private Constraintconstraintprivate booleanfirstprivate booleanregisterprivate ConstraintListtarget
-
Constructor Summary
Constructors Modifier Constructor Description privateConstraintTemplate(ConstraintList target, boolean first, Constraint constraint, boolean register)Creates the constraint template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidtransfer(TypeCache.IConstraintTarget target, IDecisionVariable register, AbstractVariable var, AbstractVariable self)Transfers the stored constraint into the context ofself.
-
-
-
Field Detail
-
target
private ConstraintList target
-
first
private boolean first
-
constraint
private Constraint constraint
-
register
private boolean register
-
-
Constructor Detail
-
ConstraintTemplate
private ConstraintTemplate(ConstraintList target, boolean first, 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 Detail
-
transfer
private void transfer(TypeCache.IConstraintTarget target, IDecisionVariable register, AbstractVariable var, 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
-
-