Class BoundConstraint

  • All Implemented Interfaces:
    IConstraint

    public class BoundConstraint
    extends Constraint
    A BoundConstraint assures that (
    • Field Detail

      • vars

        protected java.util.List vars
        The variable to bind/test against.
      • depvars

        protected java.util.List depvars
        The variables, from which the constraint depends (might be additional variables from value source).
    • Constructor Detail

      • BoundConstraint

        public BoundConstraint​(java.lang.Object valuesource,
                               Variable var)
        Create a new bound constraint.
      • BoundConstraint

        public BoundConstraint​(java.lang.Object valuesource,
                               Variable var,
                               IOperator operator)
        Create a new bound constraint.
      • BoundConstraint

        public BoundConstraint​(java.lang.Object valuesource,
                               java.util.List vars,
                               IOperator operator)
        Create a new bound constraint.
    • Method Detail

      • isMultiConstraint

        public boolean isMultiConstraint()
        Test if the constraint is a multi constraint.
        Returns:
        True, if multi constraint.
      • getVariables

        public java.util.List getVariables()
        Get the variables.
        Returns:
        The declared variables.
      • getBindVariables

        public java.util.List getBindVariables()
        Get the variables to be bound.
        Returns:
        The variables to bind.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.