Class ConstraintFinder

java.lang.Object
net.ssehub.easy.varModel.model.filter.ConstraintFinder
All Implemented Interfaces:
ICustomDatatypeVisitor, IModelVisitor

public class ConstraintFinder extends Object implements IModelVisitor
This class locates all (visible) constraints in an IVML project.
Author:
El-Sharkawy
  • Field Details

    • constraints

      private List<Constraint> constraints
    • evalConstraints

      private List<Constraint> evalConstraints
    • considerImports

      private boolean considerImports
    • excludeAssignments

      private boolean excludeAssignments
    • isEvalConstraint

      private boolean isEvalConstraint
    • handleEvals

      private boolean handleEvals
    • allAttributes

      private List<AttributeAssignment> allAttributes
  • Constructor Details

    • ConstraintFinder

      public ConstraintFinder(Project project)
      This constructor will consider imported projects.
      Parameters:
      project - The project, where all constraints should be found.
    • ConstraintFinder

      public ConstraintFinder(Project project, boolean considerImports)
      Constructor for specifying whether imported projects should be considered while finding the constraints.
      Parameters:
      project - The project, where all constraints should be found.
      considerImports - true if constraints of imported projects should also be found
    • ConstraintFinder

      public ConstraintFinder(Project project, boolean considerImports, boolean excludeAssignments)
      Constructor for specifying whether imported projects should be considered while finding the constraints.
      Parameters:
      project - The project, where all constraints should be found.
      considerImports - true if constraints of imported projects should also be found
      excludeAssignments - whether top-level assignments shall be excluded
    • ConstraintFinder

      public ConstraintFinder(Project project, boolean considerImports, boolean excludeAssignments, boolean handleEvals)
      Constructor for specifying whether imported projects should be considered while finding the constraints.
      Parameters:
      project - The project, where all constraints should be found.
      considerImports - true if constraints of imported projects should also be found
      excludeAssignments - whether top-level assignments shall be excluded
      handleEvals - whether eval constraints should be separated from all constraints.
  • Method Details