Package jadex.bridge
Class IntermediateComponentResultListener<E>
- java.lang.Object
- 
- jadex.bridge.ComponentResultListener<java.util.Collection<E>>
- 
- jadex.bridge.IntermediateComponentResultListener<E>
 
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalIntermediateFinishedListener<E>,- IFunctionalIntermediateResultCountListener,- IFunctionalIntermediateResultListener<E>,- IFunctionalResultListener<java.util.Collection<E>>,- IFutureCommandResultListener<java.util.Collection<E>>,- IIntermediateResultListener<E>,- IResultListener<java.util.Collection<E>>,- IUndoneIntermediateResultListener<E>,- IUndoneResultListener<java.util.Collection<E>>
 
 public class IntermediateComponentResultListener<E> extends ComponentResultListener<java.util.Collection<E>> implements IIntermediateResultListener<E>, IUndoneIntermediateResultListener<E> Intermediate listener that invokes listeners on component thread.
- 
- 
Field Summary- 
Fields inherited from class jadex.bridge.ComponentResultListeneraccess, component, listener, undone
 
- 
 - 
Constructor SummaryConstructors Constructor Description IntermediateComponentResultListener(IIntermediateResultListener<E> listener, IInternalAccess component)Create a new component result listener.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Declare that the future is finished.voidfinishedIfUndone()Declare that the future is finished.voidintermediateResultAvailable(E result)Called when an intermediate result is available.voidintermediateResultAvailableIfUndone(E result)Called when an intermediate result is available.voidmaxResultCountAvailable(int max)Declare that the future result count is available.- 
Methods inherited from class jadex.bridge.ComponentResultListenercommandAvailable, exceptionOccurred, exceptionOccurredIfUndone, resultAvailable, resultAvailableIfUndone
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.future.IFunctionalExceptionListenerexceptionOccurred
 - 
Methods inherited from interface jadex.commons.future.IFunctionalResultListenerresultAvailable
 - 
Methods inherited from interface jadex.commons.future.IUndoneResultListenerexceptionOccurredIfUndone, resultAvailableIfUndone
 
- 
 
- 
- 
- 
Constructor Detail- 
IntermediateComponentResultListenerpublic IntermediateComponentResultListener(IIntermediateResultListener<E> listener, IInternalAccess component) Create a new component result listener.- Parameters:
- listener- The listener.
- adapter- The adapter.
 
 
- 
 - 
Method Detail- 
intermediateResultAvailablepublic void intermediateResultAvailable(E result) Called when an intermediate result is available.- Specified by:
- intermediateResultAvailablein interface- IFunctionalIntermediateResultListener<E>
- Specified by:
- intermediateResultAvailablein interface- IIntermediateResultListener<E>
- Parameters:
- result- The result.
 
 - 
finishedpublic void finished() Declare that the future is finished.- Specified by:
- finishedin interface- IFunctionalIntermediateFinishedListener<E>
- Specified by:
- finishedin interface- IIntermediateResultListener<E>
 
 - 
intermediateResultAvailableIfUndonepublic void intermediateResultAvailableIfUndone(E result) Called when an intermediate result is available.- Specified by:
- intermediateResultAvailableIfUndonein interface- IUndoneIntermediateResultListener<E>
- Parameters:
- result- The result.
 
 - 
maxResultCountAvailablepublic void maxResultCountAvailable(int max) Description copied from interface:IIntermediateResultListenerDeclare that the future result count is available. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method will be called as often as the result count indicates except an exception occurs.- Specified by:
- maxResultCountAvailablein interface- IFunctionalIntermediateResultCountListener
- Specified by:
- maxResultCountAvailablein interface- IIntermediateResultListener<E>
 
 - 
finishedIfUndonepublic void finishedIfUndone() Declare that the future is finished. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method was called for all intermediate results before.- Specified by:
- finishedIfUndonein interface- IUndoneIntermediateResultListener<E>
 
 
- 
 
-