Package jade.domain.JADEAgentManagement
Class CreateAgent
- java.lang.Object
-
- jade.domain.JADEAgentManagement.CreateAgent
-
- All Implemented Interfaces:
AgentAction,Concept,ContentElement,Term,Serializable,Serializable
public class CreateAgent extends Object implements AgentAction
This class represents thecreate-agentaction of theJADE-agent-management ontology. This action can be requested to the JADE AMS to create a new agent on a given container.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateAgent()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArguments(Object a)Add an object to theargumentsslot collection of this object.StringgetAgentName()Retrieve the value of theagent-nameslot of this event, containing the local name (i.e.IteratorgetAllArguments()Remove all objects from theargumentsslot collection of this object.StringgetClassName()Retrieve the value of theclass-nameslot of this event, containing the name of the Java class implementing the agentto create.ContainerIDgetContainer()Retrieve the value of thecontainerslot of this event, containing the container identifier of the container where the agent is to be created.CredentialsgetInitialCredentials()JADEPrincipalgetOwner()voidsetAgentName(String an)Set theagent-nameslot of this action.voidsetClassName(String cn)Set theclass-nameslot of this action.voidsetContainer(ContainerID cid)Set thecontainerslot of this action.voidsetInitialCredentials(Credentials c)Set the initial credentials to be granted to the agent to be created.voidsetOwner(JADEPrincipal p)Set the principal of the owner of the agent to be created.
-
-
-
Method Detail
-
setAgentName
public void setAgentName(String an)
Set theagent-nameslot of this action.- Parameters:
an- The local name (i.e. without the platform ID) of the agent to create.
-
getAgentName
public String getAgentName()
Retrieve the value of theagent-nameslot of this event, containing the local name (i.e. without the platform ID) of the agent to create.- Returns:
- The value of the
agent-nameslot, ornullif no value was set.
-
setClassName
public void setClassName(String cn)
Set theclass-nameslot of this action.- Parameters:
cn- The name of the Java class implementing the agent to create.
-
getClassName
public String getClassName()
Retrieve the value of theclass-nameslot of this event, containing the name of the Java class implementing the agentto create.- Returns:
- The value of the
class-nameslot, ornullif no value was set.
-
setContainer
public void setContainer(ContainerID cid)
Set thecontainerslot 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 thecontainerslot of this event, containing the container identifier of the container where the agent is to be created.- Returns:
- The value of the
containerslot, ornullif no value was set.
-
setOwner
public void setOwner(JADEPrincipal p)
Set the principal of the owner of the agent to be created.- Parameters:
p- The principal of the owner of the agent to be created.
-
getOwner
public JADEPrincipal getOwner()
- Returns:
- The principal of the owner of the agent to be created.
-
setInitialCredentials
public void setInitialCredentials(Credentials c)
Set the initial credentials to be granted to the agent to be created.- Parameters:
c- The initial credentials to be granted to the agent to be created.
-
getInitialCredentials
public Credentials getInitialCredentials()
- Returns:
- The initial credentials to be granted to the agent to be created.
-
addArguments
public void addArguments(Object a)
Add an object to theargumentsslot collection of this object.- Parameters:
a- The object to add to the collection.
-
getAllArguments
public Iterator getAllArguments()
Remove all objects from theargumentsslot collection of this object.
-
-