Package jade.domain.JADEAgentManagement
Class KillAgent
- java.lang.Object
-
- jade.domain.JADEAgentManagement.KillAgent
-
- All Implemented Interfaces:
AgentAction,Concept,ContentElement,Term,Serializable,Serializable
public class KillAgent extends Object implements AgentAction
This class represents thekill-agentaction of theJADE-agent-management ontology. This action can be requested to the JADE AMS to kill an active agent.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KillAgent()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIDgetAgent()Retrieve the value of theagentslot of this event, containing the agent identifier of the agent to terminate.StringgetPassword()Retrieve the value of thepasswordslot of this event, containing the password to authenticate the principal requesting the agent termination.voidsetAgent(AID id)Set theagentslot of this action.voidsetPassword(String p)Set thepasswordslot of this action.
-
-
-
Method Detail
-
setAgent
public void setAgent(AID id)
Set theagentslot of this action.- Parameters:
id- The agent identifier of the agent to terminate.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the agent to terminate.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setPassword
public void setPassword(String p)
Set thepasswordslot of this action.- Parameters:
p- The password to authenticate the principal requesting the agent termination.
-
getPassword
public String getPassword()
Retrieve the value of thepasswordslot of this event, containing the password to authenticate the principal requesting the agent termination.- Returns:
- The value of the
passwordslot, ornullif no value was set.
-
-