|
![]() |
This example shows a set of mobile agents moving around while still communicating with their base and with each other. It also features the capability to move a swing window between screens while moving an agent from one JVM to the other.
using the penguin
script.
using the ic2d
script
acquire the machines you have started nodes on
- on the Advanced Penguin Controller window : button "add agent"
an agent is materialized by a picture in a java window.
- select it, and press button "start"
- observe that the active object is moving between the machines, and that the penguin window disappears and reappears on the screen associated with the new JVM.
after selecting them, use the buttons to :
- communicate with them ("chained calls")
- start, stop, resume them
- trigger a communication between them ("call another agent")
- start a node on a different computer, using another screen and keyboard
- monitor the corresponding JVM with IC2D
- drag-and-drop the active object "AdvancedPenguinController" with IC2D into the newly created JVM : the control window will appear on the other computer and its user can now control the penguins application.
- still with IC2D, doing a drag-and-drop back to the original JVM, you will be able to get back the window, and control yourself the application.