public class ConstraintFunctions
extends java.lang.Object
AbstractConstraintProcessor.| Modifier and Type | Class and Description |
|---|---|
private static class |
ConstraintFunctions.TransitiveConstraintFinder
A transitive constraint/variables finder.
|
| Constructor and Description |
|---|
ConstraintFunctions() |
| Modifier and Type | Method and Description |
|---|---|
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 to
var and transitively related constraints and variables
in scope to target although the parent relationships of the added variables/constraints
are then not correct. |
static void |
allAssignmentConstraints(net.ssehub.easy.varModel.model.AttributeAssignment assng,
AbstractConstraintProcessor processor)
Processes all assignment constraints.
|
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 given
Compound. |
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)
Compound.cmpType - Compound to be processed.processor - The constraint processor functor.includeConstraintVariables - true whether constraint variables shall be included.includeDefaults - true whether default value expressions shall be included.parent - the intended parent for constraints, typically the containing projectpublic static void allAssignmentConstraints(net.ssehub.easy.varModel.model.AttributeAssignment assng,
AbstractConstraintProcessor processor)
assng - the assignment constraintprocessor - the constraint processor for assignment constraintspublic static void addConstraintsToProject(net.ssehub.easy.varModel.model.AbstractVariable var,
net.ssehub.easy.varModel.model.Project scope,
net.ssehub.easy.varModel.model.Project target)
var and transitively related constraints and variables
in scope to target although the parent relationships of the added variables/constraints
are then not correct. This method is intended for creating temporary projects/configurations.var - the variable used as starting point for the transitive searchscope - the search scope including importstarget - the target project to add the elements toCopyright © 2009 - 2018 SSE. All Rights Reserved.