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 IConditioncondThe 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 IConditiongetCondition()Get the condition.java.util.ListgetVariables()Get all variables.java.lang.StringtoString()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:
getVariablesin interfaceICondition- Returns:
- The declared variables.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-