All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.aglet.event.MobilityEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.aglet.event.AgletEvent
                   |
                   +----com.ibm.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 static final int AGLET_MOBILITY_FIRST
Marks the first integer id for the range of mobility event ids.

 o AGLET_MOBILITY_LAST
 public static final int AGLET_MOBILITY_LAST
Marks the last integer id for the range of mobility event ids.

 o DISPATCHING
 public static final int DISPATCHING
The DISPATCHING event type is delivered just after the dispatch methods is called.

 o REVERTING
 public static final int REVERTING
The REVERTING event type is delivered when the retaction is requested from the remote site.

 o ARRIVAL
 public static final 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 EventObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index