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.
- See Also:
- Serialized Form
|
Method Summary |
void |
go(java.lang.String address,
Message msg)
Goes to the destination given by name and the message processed
at the destination. |
void |
go(java.lang.String address,
java.lang.String msg)
Goes to the destination given by name and the message processed
at the destination. |
void |
onArrival(MobilityEvent ev)
This is not normally used by aglets programmers. |
void |
readExternal(java.io.ObjectInput in)
|
void |
writeExternal(java.io.ObjectOutput oo)
|
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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(java.lang.String address,
Message msg)
throws java.io.IOException,
AgletException
- Goes to the destination given by name and the message processed
at the destination.
- Parameters:
address - the address of the destinationmsg - the message being sent to the aglet at the destination- Throws:
- java.io.IOException - if dispatch completely failed
- AgletException - if dispatch completely failed
go
public void go(java.lang.String address,
java.lang.String msg)
throws java.io.IOException,
AgletException
- Goes to the destination given by name and the message processed
at the destination.
- Parameters:
address - the address of the destinationmsg - the message being sent to the aglet at the destination- Throws:
- java.io.IOException - if dispatch completely failed
- AgletException - if dispatch completely failed
onArrival
public void onArrival(MobilityEvent ev)
- This is not normally used by aglets programmers.
- Overrides:
- onArrival in class MobilityAdapter
- Parameters:
ev - a mobility event
writeExternal
public void writeExternal(java.io.ObjectOutput oo)
throws java.io.IOException
- Specified by:
- writeExternal in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
- readExternal in interface java.io.Externalizable