Package jadex.rules.rulesystem.rules
Class BoundConstraint
- java.lang.Object
-
- jadex.rules.rulesystem.rules.Constraint
-
- jadex.rules.rulesystem.rules.BoundConstraint
-
- All Implemented Interfaces:
IConstraint
public class BoundConstraint extends Constraint
A BoundConstraint assures that (-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListdepvarsThe variables, from which the constraint depends (might be additional variables from value source).protected java.util.ListvarsThe variable to bind/test against.-
Fields inherited from class jadex.rules.rulesystem.rules.Constraint
operator, valuesource
-
-
Constructor Summary
Constructors Constructor Description BoundConstraint(java.lang.Object valuesource, Variable var)Create a new bound constraint.BoundConstraint(java.lang.Object valuesource, Variable var, IOperator operator)Create a new bound constraint.BoundConstraint(java.lang.Object valuesource, java.util.List vars, IOperator operator)Create a new bound constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ListgetBindVariables()Get the variables to be bound.java.util.ListgetVariables()Get the variables.booleanisMultiConstraint()Test if the constraint is a multi constraint.java.lang.StringtoString()Get the string representation.-
Methods inherited from class jadex.rules.rulesystem.rules.Constraint
getOperator, getValueSource, getVariablesForValueSource
-
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-