public class KillAgent extends java.lang.Object implements AgentAction
kill-agent
action of
the JADE-agent-management ontology
.
This action can be requested to the JADE AMS to kill an active agent.Constructor and Description |
---|
KillAgent()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
AID |
getAgent()
Retrieve the value of the
agent slot of this
event, containing the agent identifier of the agent to
terminate. |
java.lang.String |
getPassword()
Retrieve the value of the
password slot of this
event, containing the password to authenticate the principal
requesting the agent termination. |
void |
setAgent(AID id)
Set the
agent slot of this action. |
void |
setPassword(java.lang.String p)
Set the
password slot of this action. |
public KillAgent()
public void setAgent(AID id)
agent
slot of this action.id
- The agent identifier of the agent to terminate.public AID getAgent()
agent
slot of this
event, containing the agent identifier of the agent to
terminate.agent
slot, or
null
if no value was set.public void setPassword(java.lang.String p)
password
slot of this action.p
- The password to authenticate the principal requesting
the agent termination.public java.lang.String getPassword()
password
slot of this
event, containing the password to authenticate the principal
requesting the agent termination.password
slot, or
null
if no value was set.