Class ConstraintFunctions
- java.lang.Object
-
- net.ssehub.easy.reasoning.sseReasoner.functions.ConstraintFunctions
-
public class ConstraintFunctions extends java.lang.ObjectGeneric constraint functions based on theAbstractConstraintProcessor.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classConstraintFunctions.TransitiveConstraintFinderA transitive constraint/variables finder.
-
Constructor Summary
Constructors Constructor Description ConstraintFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddConstraintsToProject(AbstractVariable var, Project scope, 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(AttributeAssignment assng, AbstractConstraintProcessor processor)Processes all assignment constraints.static voidallCompoundConstraints(Compound cmpType, AbstractConstraintProcessor processor, boolean includeConstraintVariables, boolean includeDefaults, IModelElement parent)Processes all constraints relevant to the givenCompound.
-
-
-
Method Detail
-
allCompoundConstraints
public static void allCompoundConstraints(Compound cmpType, AbstractConstraintProcessor processor, boolean includeConstraintVariables, boolean includeDefaults, 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(AttributeAssignment assng, AbstractConstraintProcessor processor)
Processes all assignment constraints.- Parameters:
assng- the assignment constraintprocessor- the constraint processor for assignment constraints
-
addConstraintsToProject
public static void addConstraintsToProject(AbstractVariable var, Project scope, 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
-
-