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.List
depvars
The variables, from which the constraint depends (might be additional variables from value source).protected java.util.List
vars
The 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.List
getBindVariables()
Get the variables to be bound.java.util.List
getVariables()
Get the variables.boolean
isMultiConstraint()
Test if the constraint is a multi constraint.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-