Class RemoteResultCommand<T>
- java.lang.Object
-
- jadex.bridge.component.impl.remotecommands.AbstractInternalRemoteCommand
-
- jadex.bridge.component.impl.remotecommands.AbstractResultCommand
-
- jadex.bridge.component.impl.remotecommands.RemoteResultCommand<T>
-
- All Implemented Interfaces:
IRemoteOrderedConversationCommand
public class RemoteResultCommand<T> extends AbstractResultCommand
Command for results.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Exception
exception
The exception.protected T
result
The result.-
Fields inherited from class jadex.bridge.component.impl.remotecommands.AbstractResultCommand
resultcount
-
-
Constructor Summary
Constructors Constructor Description RemoteResultCommand()
Create the command.RemoteResultCommand(java.lang.Exception exception, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create the command.RemoteResultCommand(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.java.lang.Exception
getException()
Get the exception.T
getResult()
Get the result.void
setException(java.lang.Exception exception)
Set the exception.void
setResult(T result)
Set the result.java.lang.String
toString()
Get a string representation.-
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.
-
exception
protected java.lang.Exception exception
The exception.
-
-
Constructor Detail
-
RemoteResultCommand
public RemoteResultCommand()
Create the command.
-
RemoteResultCommand
public RemoteResultCommand(T result, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create the command.
-
RemoteResultCommand
public RemoteResultCommand(java.lang.Exception exception, 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.
-
getResult
public T getResult()
Get the result.- Returns:
- the result.
-
setResult
public void setResult(T result)
Set the result.- Parameters:
result
- The result to set.
-
getException
public java.lang.Exception getException()
Get the exception.- Returns:
- The exception.
-
setException
public void setException(java.lang.Exception exception)
Set the exception.- Parameters:
exception
- The exception to set.
-
toString
public java.lang.String toString()
Get a string representation.- Overrides:
toString
in classjava.lang.Object
-
-