Package jade.domain.introspection
Class ChangedAgentOwnership
- java.lang.Object
-
- jade.domain.introspection.ChangedAgentOwnership
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class ChangedAgentOwnership extends Object implements Event
An introspection event, recording the change of the ownership of an agent within the platform.- Version:
- $Date$ $Revision$
- Author:
- Michele Tomaiuolo - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangedAgentOwnership()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 agent whose ownership changed.StringgetFrom()Retrieve the value of thefromslot of this event, containing the name of the entity that owned the agent before this event occurred.StringgetName()Retrieve the name of this event.StringgetTo()Retrieve the value of thetoslot of this event, containing the name of the entity owning the agent after this event occurred.ContainerIDgetWhere()Retrieve the value of thewhereslot of this event, containing the container identifier of the container where the agent is deployed.voidsetAgent(AID id)Set theagentslot of this event.voidsetFrom(String o)Set thefromslot of this event.voidsetTo(String o)Set thetoslot of this event.voidsetWhere(ContainerID id)Set thewhereslot 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
-
setWhere
public void setWhere(ContainerID id)
Set thewhereslot of this event.- Parameters:
id- The container identifier of the container where the agent is deployed.
-
getWhere
public ContainerID getWhere()
Retrieve the value of thewhereslot of this event, containing the container identifier of the container where the agent is deployed.- Returns:
- The value of the
whereslot, ornullif no value was set.
-
setAgent
public void setAgent(AID id)
Set theagentslot of this event.- Parameters:
id- The agent identifier of the agent whose ownership changed.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the agent whose ownership changed.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setFrom
public void setFrom(String o)
Set thefromslot of this event.- Parameters:
o- The name of the entity that owned the agent before this event occurred.
-
getFrom
public String getFrom()
Retrieve the value of thefromslot of this event, containing the name of the entity that owned the agent before this event occurred.- Returns:
- The value of the
fromslot, ornullif no value was set.
-
setTo
public void setTo(String o)
Set thetoslot of this event.- Parameters:
o- The name of the entity owning the agent after this event occurred.
-
getTo
public String getTo()
Retrieve the value of thetoslot of this event, containing the name of the entity owning the agent after this event occurred.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
-