jade.domain.JADEAgentManagement
Class KillAgent

java.lang.Object
  |
  +--jade.domain.JADEAgentManagement.KillAgent
All Implemented Interfaces:
AgentAction, Concept, ContentElement, Serializable, java.io.Serializable, Term

public class KillAgent
extends java.lang.Object
implements AgentAction

This class represents the kill-agent action of the JADE-agent-management ontology. This action can be requested to the JADE AMS to kill an active agent.

Version:
$Date: 2003-11-24 14:47:00 +0100 (lun, 24 nov 2003) $ $Revision: 4597 $
Author:
Giovanni Rimassa - Universita' di Parma
See Also:
Serialized Form

Constructor Summary
KillAgent()
          Default constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KillAgent

public KillAgent()
Default constructor. A default constructor is necessary for ontological classes.

Method Detail

setAgent

public void setAgent(AID id)
Set the agent slot of this action.

Parameters:
id - The agent identifier of the agent to terminate.

getAgent

public AID getAgent()
Retrieve the value of the agent slot of this event, containing the agent identifier of the agent to terminate.

Returns:
The value of the agent slot, or null if no value was set.

setPassword

public void setPassword(java.lang.String p)
Set the password slot of this action.

Parameters:
p - The password to authenticate the principal requesting the agent termination.

getPassword

public 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.

Returns:
The value of the password slot, or null if no value was set.


JADE