This demo illustrates the use of communities in Cougaar.
Installation and execution of this demo follows the same procedure as the Hello World demo. For the two-node version, you must start NodeA and NodeB in two different console windows, whether that be inside Eclipse or outside.
The idea of the demo is that there are five agents joining different communities. Agent-1 sends pings to all the agents who have joined the PingReceivers community, which should be Agent-2 and Agent-4. These two agents should receive the pings and respond, and this all should appear in the log output.
In the two-node variety of the demo, Agent-1 and Agent-2 are on NodeA, while Agent-4 is on NodeB. This causes a delay while the name server is being established before Agent-4 starts receiving pings, so expect up to a minute delay during which only Agent-2 is responding.
In the two-node variety of the demo, it is also possible to instruct the agents to move from one node to the other. This is done using the /move servlet available at http://localhost:8800/$Agent-1/move.
