public class TerminableProviderAgent extends java.lang.Object implements ITerminableService
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The agent.
|
protected jadex.commons.future.IntermediateFuture<java.lang.Void> |
termfut
A future to indicate that termination was called successfully.
|
Constructor and Description |
---|
TerminableProviderAgent() |
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.ITerminableFuture<java.lang.String> |
getResult(long delay)
Get the result.
|
jadex.commons.future.ITerminableIntermediateFuture<java.lang.String> |
getResults(long delay,
int max)
Get the result.
|
jadex.commons.future.IIntermediateFuture<java.lang.Void> |
terminateCalled()
Be informed when one of the other methods futures is terminated.
|
protected jadex.bridge.IInternalAccess agent
protected jadex.commons.future.IntermediateFuture<java.lang.Void> termfut
public jadex.commons.future.ITerminableFuture<java.lang.String> getResult(long delay)
getResult
in interface ITerminableService
delay
- The delay that is waited before the result is retured.public jadex.commons.future.ITerminableIntermediateFuture<java.lang.String> getResults(long delay, int max)
getResults
in interface ITerminableService
delay
- The delay that is waited before the result is returned.max
- The number of produced intermediate results.public jadex.commons.future.IIntermediateFuture<java.lang.Void> terminateCalled()
terminateCalled
in interface ITerminableService