Class VariablesInConstraintFinder

    • Field Detail

      • variablesCount

        private int variablesCount
      • frozenVariablesCount

        private int frozenVariablesCount
      • localVariablesCount

        private int localVariablesCount
    • Constructor Detail

      • VariablesInConstraintFinder

        public VariablesInConstraintFinder​(ConstraintSyntaxTree cst,
                                           Configuration config)
        Creates a constraint finder for single use directly on cst.
        Parameters:
        cst - A constraint where all nested IDecisionVariable's should be found.
        config - The related Configuration of the project to where the cst belongs to (must not be null).
    • Method Detail

      • getFrozenVariablesCount

        public int getFrozenVariablesCount()
        Returns the number of frozen variables used in the visited constraint.
        Returns:
        the number of variables
      • getLocalVariablesCount

        public int getLocalVariablesCount()
        Returns the number of local variables used in the visited constraint.
        Returns:
        the number of variables
      • getVariablesCount

        public int getVariablesCount()
        Returns the number of variables used in the visited constraint.
        Returns:
        the number of variables
      • isConstraintFrozen

        public boolean isConstraintFrozen()
        Returns whether there are only local variables and frozen variables in the visited constraint.
        Returns:
        true for a frozen constraint, false else