All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.aglet.event.MobilityAdapter | +----com.ibm.agletx.util.SimpleItinerary
SimpleItinerary itinerary; public void onCreation(Object init) { itinerary = new SimpleItinerary(this); itinerary.go("atp://first", "job1"); } public boolean handleMessage(Message msg) { if (msg.sameKind("job1")) { // job at the first place itinerary.go("atp://second", "job2"); } else if (msg.sameKind("job2")) { // job at the second place itinerary.go("atp://third", "job3"); } else if (msg.sameKind("job3")) { // job at the third place dispose(); } else return false; return true; }In above case, what the call itinerary.go("atp://second", "job2") does is
public SimpleItinerary(Aglet aglet)
public SimpleItinerary()
public void go(String address, Message msg) throws IOException, AgletException
public void go(String address, String msg) throws IOException, AgletException
public void onArrival(MobilityEvent ev)
public void writeExternal(ObjectOutput oo) throws IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
All Packages Class Hierarchy This Package Previous Next Index