The development and usage of “Automata” pattern



(C) 2003 A.A. Astafurov, A.A. Shalyto

Saint-Petersburg State University of Information Technologies, Mechanics and Optics

Here you can download the full text of documentation in a PDF-format (357 Kb)
Here you can download a sample application (14 Kb)
Source code and images (120 Kb)

Annotation

The purpose of this work is to show all strong and weak places of using object oriented design in development of automata applications.

In this work we compare different methodologies, such as “State” pattern and classical dedicated switch.

Here we will introduce the new pattern “Automata” which combines all advantages of the methodologies listed above.

Pattern “Automata” use case is illustrated with the process of development a traffic lights controller program.

All source codes were written in C# and can be compiled under Microsoft Visual Studio .NET.

You need to have Microsoft .NET Framework 1.1 installed in order to use the examples.