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.
-
AGLET_MOBILITY_FIRST
- Marks the first integer id for the range of mobility event ids.
-
AGLET_MOBILITY_LAST
- Marks the last integer id for the range of mobility event ids.
-
ARRIVAL
- The ARRIVAL event type is delivered when the aglet arrived at the
destination.
-
DISPATCHING
- The DISPATCHING event type is delivered just after the dispatch methods
is called.
-
REVERTING
- The REVERTING event type is delivered when the retaction is requested
from the remote site.
-
MobilityEvent(int, AgletProxy, URL)
- Constructs a mobility event with specified id, target and location
-
getAgletProxy()
- Returns the aglet proxy which is the source of the event.
-
getLocation()
- Gets the location.
-
toString()
-
AGLET_MOBILITY_FIRST
public final static int AGLET_MOBILITY_FIRST
- Marks the first integer id for the range of mobility event ids.
AGLET_MOBILITY_LAST
public final static int AGLET_MOBILITY_LAST
- Marks the last integer id for the range of mobility event ids.
DISPATCHING
public final static int DISPATCHING
- The DISPATCHING event type is delivered just after the dispatch methods
is called.
REVERTING
public final static int REVERTING
- The REVERTING event type is delivered when the retaction is requested
from the remote site.
ARRIVAL
public final static int ARRIVAL
- The ARRIVAL event type is delivered when the aglet arrived at the
destination.
MobilityEvent
public MobilityEvent(int id,
AgletProxy target,
URL loc)
- Constructs a mobility event with specified id, target and location
getAgletProxy
public AgletProxy getAgletProxy()
- Returns the aglet proxy which is the source of the event.
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.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index