Next: jfta.demo.cs2
Up: Sample code
Previous: jfta.demo.hello2
jfta.demo.cs
This is a simple client/server application. Clients send requests to
a tagboard ``request'', and a server processes them and returns them
back via a tagboard ``reply'' to the clients. The request is basically
to perform a two-argument operation ``+'', ``-'', ``*'', ``/'', and ``Q''
(an invalid operation) on two decimals. The server returns the result or an
error in case of an invalid operation (including division by zero).
This example illustrates tight coupling of ensembles and tagboards through
synchronization.
It also illustrates the use of the reply() method of actors and tagboards
to create HTML output for visualization of actor/tag status.
Holger Veit
2001-05-14