CSS 434
Lab Work 3: RMI and Mobile Agents
Professor: Munehiro Fukuda
Lab work date: See the syllabus
1. Purpose
This laboratory work intends to let you understand how to code and run
RMI programs and mobile agents, so that you can focus on your HW3's
code design.
2. Statement of Work
- Read program 3's specification carefully to
understand how to run RMI and UWAgent.
- Redesign the lab work 1's client/server programs with RMI. In
other words, your client program should call the following server function:
double[] sqrt( double[] array )
This function receives an array of doubles, updates each array element with
its square root, and returns the modified array back to a client.
- Code a simple mobile agent, say MyAgent.java that migrates to
uw1-320-20, thereafter uw1-320-21, and finally uw1-320-22 in this
order as printing out "hop", "step", and "jump" at a respective site.
3. Related Materials
4. What to Turn in
Turn in the following materials at the end of class:
- Your RMI programs, (i.e., Client.java and Server.java)
- Your RMI execution output
- Your mobile agent program, (i.e., MyAgent.java)
- Your agent execution output
If your time runs out, that is okay. Just turn in what you have.