Class ConstraintFunctions
java.lang.Object
net.ssehub.easy.reasoning.sseReasoner.functions.ConstraintFunctions
Generic constraint functions based on the
AbstractConstraintProcessor.- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classA transitive constraint/variables finder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddConstraintsToProject(net.ssehub.easy.varModel.model.AbstractVariable var, net.ssehub.easy.varModel.model.Project scope, net.ssehub.easy.varModel.model.Project target) Adds constraints related tovarand transitively related constraints and variables inscopetotargetalthough the parent relationships of the added variables/constraints are then not correct.static voidallAssignmentConstraints(net.ssehub.easy.varModel.model.AttributeAssignment assng, AbstractConstraintProcessor processor) Processes all assignment constraints.static voidallCompoundConstraints(net.ssehub.easy.varModel.model.datatypes.Compound cmpType, AbstractConstraintProcessor processor, boolean includeConstraintVariables, boolean includeDefaults, net.ssehub.easy.varModel.model.IModelElement parent) Processes all constraints relevant to the givenCompound.
-
Constructor Details
-
ConstraintFunctions
public ConstraintFunctions()
-
-
Method Details
-
allCompoundConstraints
public static void allCompoundConstraints(net.ssehub.easy.varModel.model.datatypes.Compound cmpType, AbstractConstraintProcessor processor, boolean includeConstraintVariables, boolean includeDefaults, net.ssehub.easy.varModel.model.IModelElement parent) Processes all constraints relevant to the givenCompound.- Parameters:
cmpType- Compound to be processed.processor- The constraint processor functor.includeConstraintVariables-truewhether constraint variables shall be included.includeDefaults-truewhether default value expressions shall be included.parent- the intended parent for constraints, typically the containing project
-
allAssignmentConstraints
public static void allAssignmentConstraints(net.ssehub.easy.varModel.model.AttributeAssignment assng, AbstractConstraintProcessor processor) Processes all assignment constraints.- Parameters:
assng- the assignment constraintprocessor- the constraint processor for assignment constraints
-
addConstraintsToProject
public static void addConstraintsToProject(net.ssehub.easy.varModel.model.AbstractVariable var, net.ssehub.easy.varModel.model.Project scope, net.ssehub.easy.varModel.model.Project target) Adds constraints related tovarand transitively related constraints and variables inscopetotargetalthough the parent relationships of the added variables/constraints are then not correct. This method is intended for creating temporary projects/configurations.- Parameters:
var- the variable used as starting point for the transitive searchscope- the search scope including importstarget- the target project to add the elements to
-