public class BornAgent extends java.lang.Object implements Event
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
A string constant for the name of this event.
|
Constructor and Description |
---|
BornAgent()
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 newly born agent. |
java.lang.String |
getClassName() |
java.lang.String |
getName()
Retrieve the name of this event.
|
java.lang.String |
getOwnership() |
java.lang.String |
getState()
Retrieve the value of the
state slot of this
event, containing the initial state of the newly born agent. |
ContainerID |
getWhere()
Retrieve the value of the
where slot of this
event, containing the container identifier of the container
where the newly added agent was born. |
void |
setAgent(AID id)
Set the
agent slot of this event. |
void |
setClassName(java.lang.String c)
Set the
className slot of this event. |
void |
setOwnership(java.lang.String o)
Set the
ownership slot of this event. |
void |
setState(java.lang.String as)
Set the
state slot of this event. |
void |
setWhere(ContainerID id)
Set the
where slot of this event. |
public static final java.lang.String NAME
public BornAgent()
public java.lang.String getName()
public void setWhere(ContainerID id)
where
slot of this event.id
- The container identifier of the container where the
newly added agent was born.public ContainerID getWhere()
where
slot of this
event, containing the container identifier of the container
where the newly added agent was born.where
slot, or
null
if no value was set.public void setAgent(AID id)
agent
slot of this event.id
- The agent identifier of the newly born agent.public AID getAgent()
agent
slot of this
event, containing the agent identifier of the newly born agent.agent
slot, or
null
if no value was set.public void setState(java.lang.String as)
state
slot of this event.as
- The name of the initial state of the newly born
agent.public java.lang.String getState()
state
slot of this
event, containing the initial state of the newly born agent.state
slot, or
null
if no value was set.public void setOwnership(java.lang.String o)
ownership
slot of this event.o
- The name of the entity owning the newly born agent.public java.lang.String getOwnership()
ownership
slot of this
event, containing the name of the entity owning the newly born
agent.public void setClassName(java.lang.String c)
className
slot of this event.c
- The class name of the newly born agent.public java.lang.String getClassName()
className
slot of this
event, containing the class name of the newly born
agent.