Package ru.ewc.decita.conditions
Class NotCondition
java.lang.Object
ru.ewc.decita.conditions.UnaryCondition
ru.ewc.decita.conditions.NotCondition
- All Implemented Interfaces:
Condition
- Since:
- 0.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(ComputationContext context) Evaluates all the parts of theCondition
and provides the result of that evaluation.boolean
Checks if all the parts of the Condition are resolved and point to the constant values.boolean
Checks if thisCondition
resolves totrue
.Methods inherited from class ru.ewc.decita.conditions.UnaryCondition
baseCondition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.ewc.decita.conditions.Condition
isNotSatisfied
-
Constructor Details
-
NotCondition
Ctor.- Parameters:
delegate
- The baseCondition
to compute against.
-
-
Method Details
-
evaluate
Description copied from interface:Condition
Evaluates all the parts of theCondition
and provides the result of that evaluation.- Parameters:
context
- TheComputationContext
to evaluateCondition
in.- Returns:
- Whether the
Condition
stands true. - Throws:
DecitaException
- If the evaluation cannot be performed.
-
isEvaluated
public boolean isEvaluated()Description copied from interface:Condition
Checks if all the parts of the Condition are resolved and point to the constant values.- Returns:
- True, if both parts of the Condition are evaluated.
-
isSatisfied
public boolean isSatisfied()Description copied from interface:Condition
Checks if thisCondition
resolves totrue
.- Returns:
- True, if it does.
-