Package jadex.rules.rulesystem.rules
Class ConstrainableCondition
- java.lang.Object
-
- jadex.rules.rulesystem.rules.ConstrainableCondition
-
- All Implemented Interfaces:
ICondition
- Direct Known Subclasses:
CollectCondition
,ObjectCondition
public abstract class ConstrainableCondition extends java.lang.Object implements ICondition
A condition that contains constraints belonging to some object or value.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List
constraints
The constraints.
-
Constructor Summary
Constructors Constructor Description ConstrainableCondition()
Create an empty constrainable condition.ConstrainableCondition(java.util.List constraints)
Create a condition with constraints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstraint(IConstraint con)
Add a constraint.java.util.List
getBoundConstraints()
Get all bound constraints.java.util.List
getConstraints()
Get the constraints.java.util.List
getVariables()
Get the variables.
-
-
-
Method Detail
-
addConstraint
public void addConstraint(IConstraint con)
Add a constraint.- Parameters:
constraint
- The constraint-
-
getConstraints
public java.util.List getConstraints()
Get the constraints.- Returns:
- The constraints.
-
getBoundConstraints
public java.util.List getBoundConstraints()
Get all bound constraints.- Returns:
- The bound constraints.
-
getVariables
public java.util.List getVariables()
Get the variables.- Specified by:
getVariables
in interfaceICondition
- Returns:
- The declared variables.
-
-