public interface Command
Command
interface has to be implemented by all
JADE kernel-level commands, used by the various platform services.Modifier and Type | Method and Description |
---|---|
jade.security.Credentials |
getCredentials()
Get the credentials that the actor of this command
wants to use while processing this command.
|
java.lang.String |
getName()
Query the name of this command object.
|
java.lang.Object |
getParam(int index)
Obtain the parameter list, as an array of Java objects.
|
java.lang.Object[] |
getParams()
Obtain the parameter list, as an array of Java objects.
|
jade.security.JADEPrincipal |
getPrincipal()
Get the JADEPrincipal of the actor, respnsible for this Command object.
|
java.lang.Object |
getReturnValue()
Obtain the return value for this command.
|
java.lang.String |
getService()
Query the service this command object belongs to.
|
void |
setCredentials(jade.security.Credentials creds) |
void |
setPrincipal(jade.security.JADEPrincipal p) |
void |
setReturnValue(java.lang.Object rv)
Assign a return value to this command, so that the original
command issuer can retrieve it.
|
java.lang.String getName()
java.lang.String getService()
java.lang.Object getParam(int index)
java.lang.Object[] getParams()
void setReturnValue(java.lang.Object rv)
rv
- The desired return value for this command object.java.lang.Object getReturnValue()
Command
object.jade.security.JADEPrincipal getPrincipal()
void setPrincipal(jade.security.JADEPrincipal p)
jade.security.Credentials getCredentials()
void setCredentials(jade.security.Credentials creds)