Package jadex.bdiv3x.runtime
Interface IFinishableElement<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(IResultListener<E> listener)
Add a new listener to get notified when the goal is finished.java.lang.Exception
getException()
Get the exception.boolean
isFailed()
Test if element is failed.boolean
isFinished()
Test if goal is finished.boolean
isSucceeded()
Test if element is succeeded.void
removeListener(IResultListener<E> listener)
Remove a listener.
-
-
-
Method Detail
-
addListener
void addListener(IResultListener<E> listener)
Add a new listener to get notified when the goal is finished.- Parameters:
listener
- The listener.
-
removeListener
void removeListener(IResultListener<E> listener)
Remove a listener.- Parameters:
listener
- The listener.
-
getException
java.lang.Exception getException()
Get the exception.- Returns:
- The exception.
-
isSucceeded
boolean isSucceeded()
Test if element is succeeded.- Returns:
- True, if is succeeded.
-
isFailed
boolean isFailed()
Test if element is failed.- Returns:
- True, if is failed.
-
isFinished
boolean isFinished()
Test if goal is finished.- Returns:
- True, if is finished.
-
-