public static class ConditionAgent.DetectionListener<E>
extends java.lang.Object
implements jadex.commons.future.IResultListener<E>
Modifier and Type | Field and Description |
---|---|
protected jadex.commons.future.IResultListener<?> |
delegate
The delegation listener.
|
protected java.lang.Class<? extends java.lang.RuntimeException> |
expected
The expected exception type.
|
protected jadex.base.test.TestReport |
tr
The test report.
|
Constructor and Description |
---|
DetectionListener(jadex.base.test.TestReport tr,
java.lang.Class<? extends java.lang.RuntimeException> expected,
jadex.commons.future.IResultListener<?> delegate)
Creata a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionOccurred(java.lang.Exception exception)
Called when exception occurred.
|
void |
resultAvailable(java.lang.Object result)
Called when result is available.
|
protected jadex.base.test.TestReport tr
protected java.lang.Class<? extends java.lang.RuntimeException> expected
protected jadex.commons.future.IResultListener<?> delegate
public DetectionListener(jadex.base.test.TestReport tr, java.lang.Class<? extends java.lang.RuntimeException> expected, jadex.commons.future.IResultListener<?> delegate)
public void resultAvailable(java.lang.Object result)
resultAvailable
in interface jadex.commons.future.IFunctionalResultListener<E>
public void exceptionOccurred(java.lang.Exception exception)
exceptionOccurred
in interface jadex.commons.future.IFunctionalExceptionListener