Class RemoteIntermediateResultCommand<T>
- java.lang.Object
-
- jadex.bridge.component.impl.remotecommands.AbstractInternalRemoteCommand
-
- jadex.bridge.component.impl.remotecommands.AbstractResultCommand
-
- jadex.bridge.component.impl.remotecommands.RemoteIntermediateResultCommand<T>
-
- All Implemented Interfaces:
IRemoteOrderedConversationCommand
public class RemoteIntermediateResultCommand<T> extends AbstractResultCommand
Command for intermediate results.
-
-
Field Summary
Fields Modifier and Type Field Description protected T
result
The result.-
Fields inherited from class jadex.bridge.component.impl.remotecommands.AbstractResultCommand
resultcount
-
-
Constructor Summary
Constructors Constructor Description RemoteIntermediateResultCommand()
Create the command.RemoteIntermediateResultCommand(T result, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create the command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doExecute(IInternalAccess access, jadex.commons.future.IFuture<?> future, ISecurityInfo secinf)
Execute a command.T
getIntermediateResult()
Get the result.void
setIntermediateResult(T result)
Set the result.-
Methods inherited from class jadex.bridge.component.impl.remotecommands.AbstractResultCommand
execute, getResultCount, setResultCount
-
Methods inherited from class jadex.bridge.component.impl.remotecommands.AbstractInternalRemoteCommand
getProperties, setProperties
-
-
-
-
Field Detail
-
result
protected T result
The result.
-
-
Constructor Detail
-
RemoteIntermediateResultCommand
public RemoteIntermediateResultCommand()
Create the command.
-
RemoteIntermediateResultCommand
public RemoteIntermediateResultCommand(T result, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create the command.
-
-
Method Detail
-
doExecute
public void doExecute(IInternalAccess access, jadex.commons.future.IFuture<?> future, ISecurityInfo secinf)
Execute a command.- Specified by:
doExecute
in classAbstractResultCommand
- Parameters:
access
- The agent to run the command on.future
- Future of the active conversation.secinf
- The established security level to decide if the command is allowed.
-
getIntermediateResult
public T getIntermediateResult()
Get the result.- Returns:
- the result.
-
setIntermediateResult
public void setIntermediateResult(T result)
Set the result.- Parameters:
result
- The result to set.
-
-