jade.domain.introspection
Class BornAgent

java.lang.Object
  |
  +--jade.domain.introspection.BornAgent
All Implemented Interfaces:
Concept, Event, java.io.Serializable, Serializable, Term

public class BornAgent
extends java.lang.Object
implements Event

An introspection event, recording the birth of a new agent within the platform.

Version:
$Date: 2003-11-19 17:04:37 +0100 (Wed, 19 Nov 2003) $ $Revision: 4567 $
Author:
Giovanni Rimassa - Universita' di Parma
See Also:
Serialized Form

Field Summary
static java.lang.String NAME
          A string constant for the name of this event.
 
Constructor Summary
BornAgent()
          Default constructor.
 
Method Summary
 AID getAgent()
          Retrieve the value of the agent slot of this event, containing the agent identifier of the newly born agent.
 java.lang.String getName()
          Retrieve the name of this event.
 java.lang.String getOwnership()
          Retrieve the value of the ownership slot of this event, containing the name of the entity owning the newly born agent.
 java.lang.String getState()
          Retrieve the value of the state slot of this event, containing the initial state of the newly born agent.
 ContainerID getWhere()
          Retrieve the value of the where slot of this event, containing the container identifier of the container where the newly added agent was born.
 void setAgent(AID id)
          Set the agent slot of this event.
 void setOwnership(java.lang.String o)
          Set the ownership slot of this event.
 void setState(java.lang.String as)
          Set the state slot of this event.
 void setWhere(ContainerID id)
          Set the where slot of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
A string constant for the name of this event.

See Also:
Constant Field Values
Constructor Detail

BornAgent

public BornAgent()
Default constructor. A default constructor is necessary for ontological classes.

Method Detail

getName

public java.lang.String getName()
Retrieve the name of this event.

Specified by:
getName in interface Event
Returns:
A constant value for the event name.

setWhere

public void setWhere(ContainerID id)
Set the where slot 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 the where slot of this event, containing the container identifier of the container where the newly added agent was born.

Returns:
The value of the where slot, or null if no value was set.

setAgent

public void setAgent(AID id)
Set the agent slot of this event.

Parameters:
id - The agent identifier of the newly born agent.

getAgent

public AID getAgent()
Retrieve the value of the agent slot of this event, containing the agent identifier of the newly born agent.

Returns:
The value of the agent slot, or null if no value was set.

setState

public void setState(java.lang.String as)
Set the state slot of this event.

Parameters:
as - The name of the initial state of the newly born agent.

getState

public java.lang.String getState()
Retrieve the value of the state slot of this event, containing the initial state of the newly born agent.

Returns:
The value of the state slot, or null if no value was set.

setOwnership

public void setOwnership(java.lang.String o)
Set the ownership slot of this event.

Parameters:
o - The name of the entity owning the newly born agent.

getOwnership

public java.lang.String getOwnership()
Retrieve the value of the ownership slot of this event, containing the name of the entity owning the newly born agent.

Returns:
The value of the where slot, or null if no value was set.


JADE