public class CreateAgent extends java.lang.Object implements AgentAction
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.Constructor and Description |
---|
CreateAgent()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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. without the platform ID)
of the agent to create. |
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. |
jade.security.Credentials |
getInitialCredentials() |
jade.security.JADEPrincipal |
getOwner() |
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 |
setInitialCredentials(jade.security.Credentials c)
Set the initial credentials to be granted to the agent to be created.
|
void |
setOwner(jade.security.JADEPrincipal p)
Set the principal of the owner of the agent to be created.
|
public CreateAgent()
public void setAgentName(java.lang.String an)
agent-name
slot of this action.an
- The local name (i.e. without the platform ID) of the
agent to create.public java.lang.String getAgentName()
agent-name
slot of this
event, containing the local name (i.e. without the platform ID)
of the agent to create.agent-name
slot, or
null
if no value was set.public void setClassName(java.lang.String cn)
class-name
slot of this action.cn
- The name of the Java class implementing the agent to
create.public java.lang.String getClassName()
class-name
slot of this
event, containing the name of the Java class implementing the
agentto create.class-name
slot, or
null
if no value was set.public void setContainer(ContainerID cid)
container
slot of this action.cid
- The container identifier of the container where the
agent is to be created.public ContainerID getContainer()
container
slot of this
event, containing the container identifier of the container
where the agent is to be created.container
slot, or
null
if no value was set.public void setOwner(jade.security.JADEPrincipal p)
p
- The principal of the owner of the agent to be created.public jade.security.JADEPrincipal getOwner()
public void setInitialCredentials(jade.security.Credentials c)
c
- The initial credentials to be granted to the agent to be created.public jade.security.Credentials getInitialCredentials()
public void addArguments(java.lang.Object a)
arguments
slot collection of
this object.a
- The object to add to the collection.public Iterator getAllArguments()
arguments
slot
collection of this object.