jade.domain.introspection
Class ChangedAgentOwnership

java.lang.Object
  extended by jade.domain.introspection.ChangedAgentOwnership
All Implemented Interfaces:
Concept, Term, Event, java.io.Serializable

public class ChangedAgentOwnership
extends java.lang.Object
implements Event

An introspection event, recording the change of the ownership of an agent within the platform.

Version:
$Date: 2005-02-16 18:18:28 +0100 (mer, 16 feb 2005) $ $Revision: 5552 $
Author:
Michele Tomaiuolo - 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
ChangedAgentOwnership()
          Default constructor.
 
Method Summary
 AID getAgent()
          Retrieve the value of the agent slot of this event, containing the agent identifier of the agent whose ownership changed.
 java.lang.String getFrom()
          Retrieve the value of the from slot of this event, containing the name of the entity that owned the agent before this event occurred.
 java.lang.String getName()
          Retrieve the name of this event.
 java.lang.String getTo()
          Retrieve the value of the to slot of this event, containing the name of the entity owning the agent after this event occurred.
 ContainerID getWhere()
          Retrieve the value of the where slot of this event, containing the container identifier of the container where the agent is deployed.
 void setAgent(AID id)
          Set the agent slot of this event.
 void setFrom(java.lang.String o)
          Set the from slot of this event.
 void setTo(java.lang.String o)
          Set the to 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

ChangedAgentOwnership

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

Method Detail

setWhere

public void setWhere(ContainerID id)
Set the where slot of this event.

Parameters:
id - The container identifier of the container where the agent is deployed.

getWhere

public ContainerID getWhere()
Retrieve the value of the where slot of this event, containing the container identifier of the container where the agent is deployed.

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 agent whose ownership changed.

getAgent

public AID getAgent()
Retrieve the value of the agent slot of this event, containing the agent identifier of the agent whose ownership changed.

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

setFrom

public void setFrom(java.lang.String o)
Set the from slot of this event.

Parameters:
o - The name of the entity that owned the agent before this event occurred.

getFrom

public java.lang.String getFrom()
Retrieve the value of the from slot of this event, containing the name of the entity that owned the agent before this event occurred.

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

setTo

public void setTo(java.lang.String o)
Set the to slot of this event.

Parameters:
o - The name of the entity owning the agent after this event occurred.

getTo

public java.lang.String getTo()
Retrieve the value of the to slot of this event, containing the name of the entity owning the agent after this event occurred.

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

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.