All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.aglet.event.MobilityAdapter | +----com.ibm.agletx.util.SeqItinerary | +----com.ibm.agletx.util.SeqPlanItinerary
itinerary.addPlan("atp://first", "job1"); itinerary.addPlan("atp://second", "job2");first dispatches an aglet to the "atp://first" and sends new Message("job1") message to the aglet. After that message handling is completed, the itinerary dispatches the aglet to the next address, "atp://second" , and send the corresponding message new Message("job2", init) to the aglet again. The order of plan is defined in the order addPlan method is called, or you can insert a new plan item at the specified index by calling insertPlanAt . To automatically dispatches an aglet to the next address when the job is completed, the aglet have to have the following block
public SeqPlanItinerary(Aglet aglet)
public Message getMessageAt(int index)
public void addPlan(String address, Message msg)
public void addPlan(String address, String msg)
public void removePlanAt(int index)
public void onArrival(MobilityEvent ev)
All Packages Class Hierarchy This Package Previous Next Index