Package jade.core

Interface Command

  • All Known Subinterfaces:
    HorizontalCommand, VerticalCommand
    All Known Implementing Classes:
    GenericCommand

    public interface Command
    The Command interface has to be implemented by all JADE kernel-level commands, used by the various platform services.
    Author:
    Giovanni Rimassa - FRAMeTech s.r.l.
    • Method Detail

      • getName

        String getName()
        Query the name of this command object.
        Returns:
        A string containing the name of the given command.
      • getService

        String getService()
        Query the service this command object belongs to.
        Returns:
        The name of the service this command object belongs to.
      • getParam

        Object getParam​(int index)
        Obtain the parameter list, as an array of Java objects.
        Returns:
        The parameters associated with this command object.
      • getParams

        Object[] getParams()
        Obtain the parameter list, as an array of Java objects.
        Returns:
        The parameters associated with this command object.
      • setReturnValue

        void setReturnValue​(Object rv)
        Assign a return value to this command, so that the original command issuer can retrieve it.
        Parameters:
        rv - The desired return value for this command object.
      • getReturnValue

        Object getReturnValue()
        Obtain the return value for this command.
        Returns:
        The value that is to be returned back to the issuer of this Command object.
      • getPrincipal

        JADEPrincipal getPrincipal()
        Get the JADEPrincipal of the actor, respnsible for this Command object.
        Returns:
      • getCredentials

        Credentials getCredentials()
        Get the credentials that the actor of this command wants to use while processing this command.
        Returns:
      • setCredentials

        void setCredentials​(Credentials creds)