Package jade.domain.introspection
Class MovedAgent
- java.lang.Object
-
- jade.domain.introspection.MovedAgent
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class MovedAgent extends Object implements Event
An introspection event, recording the migration of an agent within the platform.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MovedAgent()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIDgetAgent()Retrieve the value of theagentslot of this event, containing the agent identifier of the newly moved agent.ContainerIDgetFrom()Retrieve the value of thefromslot of this event, containing the container identifier of the container from where the agent migrated.StringgetName()Retrieve the name of this event.ContainerIDgetTo()Retrieve the value of thetoslot of this event, containing the container identifier of the container where the agent migrated.voidsetAgent(AID id)Set theagentslot of this event.voidsetFrom(ContainerID id)Set thefromslot of this event.voidsetTo(ContainerID id)Set thetoslot of this event.
-
-
-
Field Detail
-
NAME
public static final String NAME
A string constant for the name of this event.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Retrieve the name of this event.
-
setAgent
public void setAgent(AID id)
Set theagentslot of this event.- Parameters:
id- The agent identifier of the newly moved agent.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the newly moved agent.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setFrom
public void setFrom(ContainerID id)
Set thefromslot of this event.- Parameters:
id- The container identifier of the container from where the agent migrated.
-
getFrom
public ContainerID getFrom()
Retrieve the value of thefromslot of this event, containing the container identifier of the container from where the agent migrated.- Returns:
- The value of the
fromslot, ornullif no value was set.
-
setTo
public void setTo(ContainerID id)
Set thetoslot of this event.- Parameters:
id- The container identifier of the container where the agent migrated.
-
getTo
public ContainerID getTo()
Retrieve the value of thetoslot of this event, containing the container identifier of the container where the agent migrated.- Returns:
- The value of the
toslot, ornullif no value was set.
-
-