Package jade.domain.introspection
Class FrozenAgent
- java.lang.Object
-
- jade.domain.introspection.FrozenAgent
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class FrozenAgent extends Object implements Event
An introspection event, recording the freezing of a formerly active agent within the platform.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FrozenAgent()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.ContainerIDgetBufferContainer()Retrieve the value of thebuffer-containerslot of this event, containing the container identifier of the container where the frozen agent will appear to reside (and where ACL messages for that agent will be redirected and buffered).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 frozen agent was deployed.voidsetAgent(AID id)Set theagentslot of this event.voidsetBufferContainer(ContainerID id)Set thebuffer-containerslot 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 frozen 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 frozen agent was deployed.- Returns:
- The value of the
whereslot, ornullif no value was set.
-
setBufferContainer
public void setBufferContainer(ContainerID id)
Set thebuffer-containerslot of this event.- Parameters:
id- The container identifier of the container where the frozen agent will appear to reside (and where ACL messages for that agent will be redirected and buffered).
-
getBufferContainer
public ContainerID getBufferContainer()
Retrieve the value of thebuffer-containerslot of this event, containing the container identifier of the container where the frozen agent will appear to reside (and where ACL messages for that agent will be redirected and buffered).- Returns:
- The value of the
buffer-containerslot, ornullif no value was set.
-
-