|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Command
interface has to be implemented by all
JADE kernel-level commands, used by the various platform services.
Method Summary | |
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. |
Method Detail |
public java.lang.String getName()
public java.lang.String getService()
public java.lang.Object getParam(int index)
public java.lang.Object[] getParams()
public void setReturnValue(java.lang.Object rv)
rv
- The desired return value for this command object.public java.lang.Object getReturnValue()
Command
object.public jade.security.JADEPrincipal getPrincipal()
public void setPrincipal(jade.security.JADEPrincipal p)
public jade.security.Credentials getCredentials()
public void setCredentials(jade.security.Credentials creds)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |