Class aglet.event.MobilityEvent
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aglet.event.MobilityEvent

java.lang.Object
   |
   +----aglet.event.AgletEvent
           |
           +----aglet.event.MobilityEvent

public class MobilityEvent
extends AgletEvent
The mobility event occurs when the aglet is about to move.

Variable Index

 o AGLET_MOBILITY_FIRST
Marks the first integer id for the range of mobility event ids.
 o AGLET_MOBILITY_LAST
Marks the last integer id for the range of mobility event ids.
 o ARRIVAL
The ARRIVAL event type is delivered when the aglet arrived at the destination.
 o DISPATCHING
The DISPATCHING event type is delivered just after the dispatch methods is called.
 o REVERTING
The REVERTING event type is delivered when the retaction is requested from the remote site.

Constructor Index

 o MobilityEvent(int, AgletProxy, URL)
Constructs a mobility event with specified id, target and location

Method Index

 o getAgletProxy()
Returns the aglet proxy which is the source of the event.
 o getLocation()
Gets the location.
 o toString()

Variables

 o AGLET_MOBILITY_FIRST
  public final static int AGLET_MOBILITY_FIRST
Marks the first integer id for the range of mobility event ids.
 o AGLET_MOBILITY_LAST
  public final static int AGLET_MOBILITY_LAST
Marks the last integer id for the range of mobility event ids.
 o DISPATCHING
  public final static int DISPATCHING
The DISPATCHING event type is delivered just after the dispatch methods is called.
 o REVERTING
  public final static int REVERTING
The REVERTING event type is delivered when the retaction is requested from the remote site.
 o ARRIVAL
  public final static int ARRIVAL
The ARRIVAL event type is delivered when the aglet arrived at the destination.

Constructors

 o MobilityEvent
  public MobilityEvent(int id,
                       AgletProxy target,
                       URL loc)
Constructs a mobility event with specified id, target and location

Methods

 o getAgletProxy
  public AgletProxy getAgletProxy()
Returns the aglet proxy which is the source of the event.
 o getLocation
  public URL getLocation()
Gets the location. This specifies: The destination if the event is DISPATCHING . The requester if the event is REVERTING . The host it arrived if the event is ARRIVED . This returns null for the REVERTING event at the present.
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index