sends new Message("job2") message to the owner aglet
when arrived at the destination
In this way, an aglet can specify both a destination
to go and a message to be handled at the destination.
-
SimpleItinerary()
- For Manual Serialization
-
SimpleItinerary(Aglet)
- Constructs a SimpleItinerary with the specified owner aglet.
-
go(String, Message)
- Goes to the destination given by name and the message processed
at the destination.
-
go(String, String)
- Goes to the destination given by name and the message processed
at the destination.
-
onArrival(MobilityEvent)
- This is not normally used by aglets programmers.
-
readExternal(ObjectInput)
-
-
writeExternal(ObjectOutput)
-
SimpleItinerary
public SimpleItinerary(Aglet aglet)
- Constructs a SimpleItinerary with the specified owner aglet.
- Parameters:
- aglet - the owner of this itinerary.
SimpleItinerary
public SimpleItinerary()
- For Manual Serialization
go
public void go(String address,
Message msg) throws IOException, AgletException
- Goes to the destination given by name and the message processed
at the destination.
- Parameters:
- address - the address of the destination
- msg - the message being sent to the aglet at the destination
go
public void go(String address,
String msg) throws IOException, AgletException
- Goes to the destination given by name and the message processed
at the destination.
- Parameters:
- address - the address of the destination
- msg - the message being sent to the aglet at the destination
onArrival
public void onArrival(MobilityEvent ev)
- This is not normally used by aglets programmers.
- Parameters:
- ev - a mobility event
- Overrides:
- onArrival in class MobilityAdapter
writeExternal
public void writeExternal(ObjectOutput oo) throws IOException
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
All Packages Class Hierarchy This Package Previous Next Index