Package jadex.rules.rulesystem.rules
Class TestCondition
- java.lang.Object
-
- jadex.rules.rulesystem.rules.TestCondition
-
- All Implemented Interfaces:
ICondition
public class TestCondition extends java.lang.Object implements ICondition
A test condition has the purpose to evaluation a predicate. It is true when the predicate result is true.
-
-
Field Summary
Fields Modifier and Type Field Description protected PredicateConstraint
constraint
The predicate constraint.
-
Constructor Summary
Constructors Constructor Description TestCondition(PredicateConstraint constraint)
Create a new object condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredicateConstraint
getConstraint()
Get the constraint.java.util.List
getVariables()
Get the variables.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
constraint
protected PredicateConstraint constraint
The predicate constraint.
-
-
Constructor Detail
-
TestCondition
public TestCondition(PredicateConstraint constraint)
Create a new object condition.
-
-
Method Detail
-
getVariables
public java.util.List getVariables()
Get the variables.- Specified by:
getVariables
in interfaceICondition
- Returns:
- The declared variables.
-
getConstraint
public PredicateConstraint getConstraint()
Get the constraint.- Returns:
- The constraint.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-