jade.domain.introspection
Class MovedAgent

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

public class MovedAgent
extends java.lang.Object
implements Event

An introspection event, recording the migration of an 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
MovedAgent()
          Default constructor.
 
Method Summary
 AID getAgent()
          Retrieve the value of the agent slot of this event, containing the agent identifier of the newly moved agent.
 ContainerID getFrom()
          Retrieve the value of the from slot of this event, containing the container identifier of the container from where the agent migrated.
 java.lang.String getName()
          Retrieve the name of this event.
 ContainerID getTo()
          Retrieve the value of the to slot of this event, containing the container identifier of the container where the agent migrated.
 void setAgent(AID id)
          Set the agent slot of this event.
 void setFrom(ContainerID id)
          Set the from slot of this event.
 void setTo(ContainerID id)
          Set the to 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

MovedAgent

public MovedAgent()
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.

setAgent

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

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

getAgent

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

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

setFrom

public void setFrom(ContainerID id)
Set the from slot of this event.

Parameters:
id - The container identifier of the container from where the agent migrated.

getFrom

public ContainerID getFrom()
Retrieve the value of the from slot of this event, containing the container identifier of the container from where the agent migrated.

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

setTo

public void setTo(ContainerID id)
Set the to slot of this event.

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

getTo

public ContainerID getTo()
Retrieve the value of the to slot of this event, containing the container identifier of the container where the agent migrated.

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


JADE