Package jade.domain.introspection
Class SuspendedAgent
- java.lang.Object
-
- jade.domain.introspection.SuspendedAgent
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class SuspendedAgent extends Object implements Event
An introspection event, recording the suspension of a formerly active agent within the platform.- Version:
- $Date$ $Revision$
- Author:
- Michele Tomaiuolo - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuspendedAgent()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 suspended agent.StringgetName()Retrieve the name of this event.ContainerIDgetWhere()Retrieve the value of thewhereslot of this event, containing the container identifier of the container where the newly suspended agent was deployed.voidsetAgent(AID id)Set theagentslot 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
-
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 suspended agent.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the newly suspended agent.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setWhere
public void setWhere(ContainerID id)
Set thewhereslot of this event.- Parameters:
id- The container identifier of the container where the newly suspended agent was deployed.
-
getWhere
public ContainerID getWhere()
Retrieve the value of thewhereslot of this event, containing the container identifier of the container where the newly suspended agent was deployed.- Returns:
- The value of the
whereslot, ornullif no value was set.
-
-