A Unidirectional Channel for simjava

Here's a simple extension of the simjava simulation environment that implements a unidirectional message passing channel that can be faulty.


The Applet

Here's a small Java applet to give you a feel of how the new class works and looks like. You see a ``source'' to the right that keeps on sending packets to the ``sink'' on the left. The channel in the middle simply relays the packets and buffers them if they come in too fast. It will also inject faults into the channel. Faults can be:

The source will produce about 40 packets and will send them with increasing speed. During the simulation you'll see how the channel buffers the elements in a queue and what kind of faults occur.

[This Applet will only show if you have a Browser for JDK1.1 (e.g. Hotjava, Netscape 4 and IE4.0).]


You can also browse the source code of the applet:


Felix C. Gartner <fcg@acm.org>