next up previous contents
Next: Graphical widgets Up: Graphics Previous: Graphics

A graphical interface for the Dining Philosophers Problem

The following figure shows a display for the Dining Philosophers Problem. Its implementation is straightforward and will not be considered in detail here. It consist of the creation of the simulationclock and screen widgets. The widgets are made toplevel by giving it a toplevel widget when created. After that they are packed with the kit::pack function. The screen methods are used to add, remove and move the items and after a change the display is updated with the kit::update function.

 



A Eliens
Tue Oct 31 09:27:21 MET 1995