Package jadex.rules.eca
Class MethodCondition
java.lang.Object
jadex.rules.eca.MethodCondition
- All Implemented Interfaces:
ICondition
Condition implementation that invokes a predefined method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jadex.common.IMethodParameterGuesserThe parameter guesser.protected booleanThe invert flag.protected MethodThe method.protected ObjectThe object.Fields inherited from interface jadex.rules.eca.ICondition
FALSE, TRUE, TRUE_CONDITION -
Constructor Summary
ConstructorsConstructorDescriptionMethodCondition(Object object, Method method) Create a new method condition.MethodCondition(Object object, Method method, boolean invert) Create a new method condition.MethodCondition(Object object, Method method, boolean invert, jadex.common.IMethodParameterGuesser guesser) Create a new method condition.MethodCondition(Object object, Method method, jadex.common.IMethodParameterGuesser guesser) Create a new method condition. -
Method Summary
-
Field Details
-
object
The object. -
method
The method. -
invert
protected boolean invertThe invert flag. Inverts method result. -
guesser
protected jadex.common.IMethodParameterGuesser guesserThe parameter guesser.
-
-
Constructor Details
-
MethodCondition
Create a new method condition. -
MethodCondition
Create a new method condition. -
MethodCondition
Create a new method condition. -
MethodCondition
public MethodCondition(Object object, Method method, boolean invert, jadex.common.IMethodParameterGuesser guesser) Create a new method condition.
-
-
Method Details
-
evaluate
Evaluate the condition.- Specified by:
evaluatein interfaceICondition- Parameters:
event- The event.- Returns:
- True, if condition is met (plus additional user data).
-
invokeMethod
Do the method invocation.- Throws:
Exception
-