Package jade.domain.introspection
Class BornAgent
- java.lang.Object
-
- jade.domain.introspection.BornAgent
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class BornAgent extends Object implements Event
An introspection event, recording the birth of a new agent within the platform.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BornAgent()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 born agent.StringgetClassName()StringgetCloneOriginator()StringgetName()Retrieve the name of this event.StringgetOwnership()StringgetState()Retrieve the value of thestateslot of this event, containing the initial state of the newly born agent.ContainerIDgetWhere()Retrieve the value of thewhereslot of this event, containing the container identifier of the container where the newly added agent was born.voidsetAgent(AID id)Set theagentslot of this event.voidsetClassName(String c)Set theclassNameslot of this event.voidsetCloneOriginator(String cloneOriginator)voidsetOwnership(String o)Set theownershipslot of this event.voidsetState(String as)Set thestateslot 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.
-
setWhere
public void setWhere(ContainerID id)
Set thewhereslot of this event.- Parameters:
id- The container identifier of the container where the newly added agent was born.
-
getWhere
public ContainerID getWhere()
Retrieve the value of thewhereslot of this event, containing the container identifier of the container where the newly added agent was born.- 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 newly born agent.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the newly born agent.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setState
public void setState(String as)
Set thestateslot of this event.- Parameters:
as- The name of the initial state of the newly born agent.
-
getState
public String getState()
Retrieve the value of thestateslot of this event, containing the initial state of the newly born agent.- Returns:
- The value of the
stateslot, ornullif no value was set.
-
setOwnership
public void setOwnership(String o)
Set theownershipslot of this event.- Parameters:
o- The name of the entity owning the newly born agent.
-
getOwnership
public String getOwnership()
- Returns:
- the value of the
ownershipslot of this event, containing the name of the entity owning the newly born agent.
-
setClassName
public void setClassName(String c)
Set theclassNameslot of this event.- Parameters:
c- The class name of the newly born agent.
-
getClassName
public String getClassName()
- Returns:
- the value of the
classNameslot of this event, containing the class name of the newly born agent.
-
setCloneOriginator
public void setCloneOriginator(String cloneOriginator)
-
getCloneOriginator
public String getCloneOriginator()
- Returns:
- the name of the originator agent in case the newly born agent was cloned. Null otherwise
-
-