jade.domain.JADEAgentManagement
Class CreateAgent

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

public class CreateAgent
extends java.lang.Object
implements AgentAction

This class represents the create-agent action of the JADE-agent-management ontology. This action can be requested to the JADE AMS to create a new agent on a given container.

Version:
$Date: 2003/11/24 13:33:13 $ $Revision: 2.7 $
Author:
Giovanni Rimassa - Universita' di Parma
See Also:
Serialized Form

Constructor Summary
CreateAgent()
          Default constructor.
 
Method Summary
 void addArguments(java.lang.Object a)
          Add an object to the arguments slot collection of this object.
 java.lang.String getAgentName()
          Retrieve the value of the agent-name slot of this event, containing the local name (i.e.
 Iterator getAllArguments()
          Remove all objects from the arguments slot collection of this object.
 java.lang.String getClassName()
          Retrieve the value of the class-name slot of this event, containing the name of the Java class implementing the agentto create.
 ContainerID getContainer()
          Retrieve the value of the container slot of this event, containing the container identifier of the container where the agent is to be created.
 java.lang.String getDelegation()
          Retrieve the value of the delegation slot of this event.
 java.lang.String getPassword()
          Retrieve the value of the password slot of this event, containing the pasword to authenticate the principal requesting the agent creation.
 void setAgentName(java.lang.String an)
          Set the agent-name slot of this action.
 void setClassName(java.lang.String cn)
          Set the class-name slot of this action.
 void setContainer(ContainerID cid)
          Set the container slot of this action.
 void setDelegation(java.lang.String d)
          Set the delegation 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

CreateAgent

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

Method Detail

setAgentName

public void setAgentName(java.lang.String an)
Set the agent-name slot of this action.

Parameters:
an - The local name (i.e. without the platform ID) of the agent to create.

getAgentName

public java.lang.String getAgentName()
Retrieve the value of the agent-name slot of this event, containing the local name (i.e. without the platform ID) of the agent to create.

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

setClassName

public void setClassName(java.lang.String cn)
Set the class-name slot of this action.

Parameters:
cn - The name of the Java class implementing the agent to create.

getClassName

public java.lang.String getClassName()
Retrieve the value of the class-name slot of this event, containing the name of the Java class implementing the agentto create.

Returns:
The value of the class-name slot, or null if no value was set.

setContainer

public void setContainer(ContainerID cid)
Set the container slot of this action.

Parameters:
cid - The container identifier of the container where the agent is to be created.

getContainer

public ContainerID getContainer()
Retrieve the value of the container slot of this event, containing the container identifier of the container where the agent is to be created.

Returns:
The value of the container 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 creation.

getPassword

public java.lang.String getPassword()
Retrieve the value of the password slot of this event, containing the pasword to authenticate the principal requesting the agent creation.

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

setDelegation

public void setDelegation(java.lang.String d)
Set the delegation slot of this action.

Parameters:
d - The delegation to write into the slot.

getDelegation

public java.lang.String getDelegation()
Retrieve the value of the delegation slot of this event.

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

addArguments

public void addArguments(java.lang.Object a)
Add an object to the arguments slot collection of this object.

Parameters:
a - The object to add to the collection.

getAllArguments

public Iterator getAllArguments()
Remove all objects from the arguments slot collection of this object.



JADE