Class ConstraintSeparator
java.lang.Object
net.ssehub.easy.varModel.model.filter.ConstraintSeparator
Class for extracting the constraints out of a
This class is also able to separate constraints into the following categories:
Project. This class is also able to separate constraints into the following categories:
- AssignmentConstraints - Assigning one value to exactly one variable
- Constraints - all other constraints without the AssignmentConstraints
- All constraints
- Author:
- El-Sharkawy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<Constraint> private List<Constraint> private List<Constraint> -
Constructor Summary
ConstructorsConstructorDescriptionConstraintSeparator(Project project) This constructor will consider imported projects.ConstraintSeparator(Project project, boolean considerImports) Constructor for specifying whether imported projects should be considered while finding the constraints. -
Method Summary
Modifier and TypeMethodDescriptionGetter for returning all constraints of an ivml project.Getter for returning all AssignmentConstraints of an ivml project.Getter for returning all non AssignmentConstraints of an ivml project.
-
Field Details
-
allConstraints
-
assignmentConstraints
-
normalConstraints
-
-
Constructor Details
-
ConstraintSeparator
This constructor will consider imported projects.- Parameters:
project- The project, where all constraints should be found.
-
ConstraintSeparator
Constructor for specifying whether imported projects should be considered while finding the constraints.- Parameters:
project- The project, where all constraints should be found and separated into the categories mentioned above.considerImports-trueif constraints of imported projects should also be found
-
-
Method Details
-
getAllConstraints
Getter for returning all constraints of an ivml project.- Returns:
- A list of all constraints in the specified ivml project.
-
getAssingmentConstraints
Getter for returning all AssignmentConstraints of an ivml project.- Returns:
- A list of all AssignmentConstraints in the specified ivml project.
-
getNormalConstraints
Getter for returning all non AssignmentConstraints of an ivml project.- Returns:
- A list of all non AssignmentConstraints in the specified ivml project.
-