Class RemoteResultCommand<T>

    • 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 class AbstractResultCommand
        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 class java.lang.Object