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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(ComputationContext context) Evaluates all the parts of theConditionand provides the result of that evaluation.booleanChecks if all the parts of the Condition are resolved and point to the constant values.booleanChecks if thisConditionresolves totrue.Methods inherited from class ru.ewc.decita.conditions.UnaryCondition
baseConditionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.ewc.decita.conditions.Condition
isNotSatisfied
-
Constructor Details
-
NotCondition
Ctor.- Parameters:
delegate- The baseConditionto compute against.
-
-
Method Details
-
evaluate
Description copied from interface:ConditionEvaluates all the parts of theConditionand provides the result of that evaluation.- Parameters:
context- TheComputationContextto evaluateConditionin.- Returns:
- Whether the
Conditionstands true. - Throws:
DecitaException- If the evaluation cannot be performed.
-
isEvaluated
public boolean isEvaluated()Description copied from interface:ConditionChecks 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:ConditionChecks if thisConditionresolves totrue.- Returns:
- True, if it does.
-