Package jadex.bridge.component.impl
Class RemoteExecutionComponentFeature.OutCommand
- java.lang.Object
-
- jadex.bridge.component.impl.RemoteExecutionComponentFeature.OutCommand
-
- All Implemented Interfaces:
IOrderedConversation
- Enclosing class:
- RemoteExecutionComponentFeature
protected static class RemoteExecutionComponentFeature.OutCommand extends java.lang.Object implements IOrderedConversation
Command that has been sent to a remote component. Stored to set return value etc.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.PriorityQueue<AbstractResultCommand>
deferredcommands
Commands that have been deferred until a prior command arrives.protected jadex.commons.future.IFuture<?>
future
Future for results.protected int
resultcount
-
Constructor Summary
Constructors Constructor Description OutCommand(jadex.commons.future.IFuture<?> future)
Creates the command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.PriorityQueue<AbstractResultCommand>
getDeferredCommands()
Returns queue of commands that have been deferred due to out-of-order arrival.jadex.commons.future.IFuture<?>
getFuture()
Gets the future.int
getNextResultCount()
Gets the count of the next result.void
incNextResultCount()
Increases the next result count.
-
-
-
Field Detail
-
deferredcommands
protected java.util.PriorityQueue<AbstractResultCommand> deferredcommands
Commands that have been deferred until a prior command arrives.
-
resultcount
protected int resultcount
-
future
protected jadex.commons.future.IFuture<?> future
Future for results.
-
-
Method Detail
-
getFuture
public jadex.commons.future.IFuture<?> getFuture()
Gets the future.- Specified by:
getFuture
in interfaceIOrderedConversation
- Returns:
- The future.
-
getNextResultCount
public int getNextResultCount()
Gets the count of the next result.- Specified by:
getNextResultCount
in interfaceIOrderedConversation
- Returns:
- The count of the next result.
-
incNextResultCount
public void incNextResultCount()
Increases the next result count.- Specified by:
incNextResultCount
in interfaceIOrderedConversation
-
getDeferredCommands
public java.util.PriorityQueue<AbstractResultCommand> getDeferredCommands()
Returns queue of commands that have been deferred due to out-of-order arrival.- Specified by:
getDeferredCommands
in interfaceIOrderedConversation
- Returns:
- Queue of commands, may be null.
-
-