public class MovedAgent 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 |
|---|
MovedAgent()
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 moved agent. |
ContainerID |
getFrom()
Retrieve the value of the
from slot of this event,
containing the container identifier of the container from where
the agent migrated. |
java.lang.String |
getName()
Retrieve the name of this event.
|
ContainerID |
getTo()
Retrieve the value of the
to slot of this
event, containing the container identifier of the container
where the agent migrated. |
void |
setAgent(AID id)
Set the
agent slot of this event. |
void |
setFrom(ContainerID id)
Set the
from slot of this event. |
void |
setTo(ContainerID id)
Set the
to slot of this event. |
public static final java.lang.String NAME
public MovedAgent()
public java.lang.String getName()
public void setAgent(AID id)
agent slot of this event.id - The agent identifier of the newly moved agent.public AID getAgent()
agent slot of this
event, containing the agent identifier of the newly moved agent.agent slot, or
null if no value was set.public void setFrom(ContainerID id)
from slot of this event.id - The container identifier of the container from where
the agent migrated.public ContainerID getFrom()
from slot of this event,
containing the container identifier of the container from where
the agent migrated.from slot, or
null if no value was set.public void setTo(ContainerID id)
to slot of this event.id - The container identifier of the container where the
agent migrated.public ContainerID getTo()
to slot of this
event, containing the container identifier of the container
where the agent migrated.to slot, or
null if no value was set.