In assignment 2 you are given a small interface in a window, and we ask you to do three things:
The state diagram should be created using the drawing program of your choice; the production system is, of course, text. Printed copies, on paper, should be placed in the submission box before the due time.
All output from the interface (side effects in the terminology of production systems) is produced on the standard output in the window from which execution of the interface is initiated.
Interaction with the window manager is not part of the interface. Changes in appearance of the component when the tracker goes outside the comopnent window should be treated as interaction with the window manager: that is, ignored.
Termination of execution of the interface is not something you need to describe. But you should describe the output that is produced on termination.
The warning produced when program execution starts should not be included in your productions. I would get rid of it if I knew how.
Please use the production system syntax and format used in class, the tutorials and the course notes, not the syntax in the optional textbook.
The state and transitions should be described at a level accessible and understandable to a fellow class member who is assumed to have done the assignment. Marks will be given for understandability.
Submit paper copies of your state diagram and your production system in the submission box on the third floor of MC (Box 2, slot 11). Your state diagram should be created using a drawing program, and should not be drawn by hand. Take advantage of symmetris to make the diagram orderly, neat and easy to read, because there will be marks for presentation.
Your production system should be created using using a word processor using the following format.
Definitions Variables v1{ val1, val2, val3 } = val1 // Meta-language description etc. Events %MouseDown etc. Etc. Productions Button // productions affecting the on-screen button <conditions> => <actions> etc. Keyboard focus etc. Etc.
Return to: