Package jadex.rules.rulesystem.rules
Class NotCondition
- java.lang.Object
-
- jadex.rules.rulesystem.rules.NotCondition
-
- All Implemented Interfaces:
ICondition
public class NotCondition extends java.lang.Object implements ICondition
Condition for negating another condition.
-
-
Field Summary
Fields Modifier and Type Field Description protected ICondition
cond
The negated condition.
-
Constructor Summary
Constructors Constructor Description NotCondition(ICondition cond)
Create a new not condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICondition
getCondition()
Get the condition.java.util.List
getVariables()
Get all variables.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
cond
protected ICondition cond
The negated condition.
-
-
Constructor Detail
-
NotCondition
public NotCondition(ICondition cond)
Create a new not condition.
-
-
Method Detail
-
getCondition
public ICondition getCondition()
Get the condition.- Returns:
- The condition.
-
getVariables
public java.util.List getVariables()
Get all variables.- Specified by:
getVariables
in interfaceICondition
- Returns:
- The declared variables.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-