Class RemoteMethodInvocationCommand<T>

    • Field Detail

      • SEARCHMETHOD

        protected static final java.lang.reflect.Method SEARCHMETHOD
    • Constructor Detail

      • RemoteMethodInvocationCommand

        public RemoteMethodInvocationCommand()
        Create a remote method invocation command.
      • RemoteMethodInvocationCommand

        public RemoteMethodInvocationCommand​(java.lang.Object target,
                                             java.lang.reflect.Method method,
                                             java.lang.Object[] args,
                                             java.util.Map<java.lang.String,​java.lang.Object> nonfunc)
        Create a remote method invocation command.
    • Method Detail

      • getTargetId

        public java.lang.Object getTargetId()
        Get the target id.
      • setTargetId

        public void setTargetId​(java.lang.Object target)
        Set the target id.
      • getMethod

        public jadex.commons.MethodInfo getMethod()
        Get the method.
      • setMethod

        public void setMethod​(jadex.commons.MethodInfo method)
        Set the method.
      • getArguments

        public java.lang.Object[] getArguments()
        Get the arguments.
      • setArguments

        public void setArguments​(java.lang.Object[] args)
        Set the arguments.
      • execute

        public jadex.commons.future.IFuture<T> execute​(IInternalAccess access,
                                                       ISecurityInfo secinf)
        Execute the method.
        Specified by:
        execute in interface IRemoteCommand<T>
        Parameters:
        access - The agent that is running the command.
        secinf - The established security level to e.g. decide if the command is allowed.
        Returns:
        A future for return value(s). May also be intermediate, subscription, etc.
      • isValid

        public java.lang.Exception isValid​(IInternalAccess access)
        Checks if the remote command is internally valid.
        Specified by:
        isValid in interface IRemoteCommand<T>
        Parameters:
        access - The component access.
        Returns:
        Exception describing the error if invalid.
      • toString

        public java.lang.String toString()
        Get a string representation.
        Overrides:
        toString in class java.lang.Object