public class MethodCondition extends java.lang.Object implements ICondition
Modifier and Type | Field and Description |
---|---|
protected jadex.commons.IMethodParameterGuesser |
guesser
The parameter guesser.
|
protected boolean |
invert
The invert flag.
|
protected java.lang.reflect.Method |
method
The method.
|
protected java.lang.Object |
object
The object.
|
FALSE, TRUE, TRUE_CONDITION
Constructor and Description |
---|
MethodCondition(java.lang.Object object,
java.lang.reflect.Method method)
Create a new method condition.
|
MethodCondition(java.lang.Object object,
java.lang.reflect.Method method,
boolean invert)
Create a new method condition.
|
MethodCondition(java.lang.Object object,
java.lang.reflect.Method method,
boolean invert,
jadex.commons.IMethodParameterGuesser guesser)
Create a new method condition.
|
MethodCondition(java.lang.Object object,
java.lang.reflect.Method method,
jadex.commons.IMethodParameterGuesser guesser)
Create a new method condition.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<jadex.commons.Tuple2<java.lang.Boolean,java.lang.Object>> |
evaluate(IEvent event)
Evaluate the condition.
|
protected java.lang.Object |
invokeMethod(IEvent event)
Do the method invocation.
|
protected java.lang.Object object
protected java.lang.reflect.Method method
protected boolean invert
protected jadex.commons.IMethodParameterGuesser guesser
public MethodCondition(java.lang.Object object, java.lang.reflect.Method method)
public MethodCondition(java.lang.Object object, java.lang.reflect.Method method, jadex.commons.IMethodParameterGuesser guesser)
public MethodCondition(java.lang.Object object, java.lang.reflect.Method method, boolean invert)
public MethodCondition(java.lang.Object object, java.lang.reflect.Method method, boolean invert, jadex.commons.IMethodParameterGuesser guesser)
public jadex.commons.future.IFuture<jadex.commons.Tuple2<java.lang.Boolean,java.lang.Object>> evaluate(IEvent event)
evaluate
in interface ICondition
event
- The event.protected java.lang.Object invokeMethod(IEvent event) throws java.lang.Exception
java.lang.Exception