Design, Implementation and Deployment of State Machines Using a Generative Approach

  • Authors:
  • Graham N. Kirby;Alan Dearle;Stuart J. Norcross

  • Affiliations:
  • School of Computer Science, University of St Andrews, North Haugh, Scotland Fife KY16 9SX;School of Computer Science, University of St Andrews, North Haugh, Scotland Fife KY16 9SX;School of Computer Science, University of St Andrews, North Haugh, Scotland Fife KY16 9SX

  • Venue:
  • Architecting Dependable Systems V
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We describe an approach to designing and implementing a distributed system as a family of related finite state machines, generated from a single abstract model. Various artefacts are generated from each state machine, including diagrams, source-level protocol implementations and documentation. The state machine family formalises the interactions between the components of the distributed system, allowing increased confidence in correctness. Our methodology facilitates the application of state machines to problems for which they would not otherwise be suitable.We illustrate the technique with the example of a Byzantine-fault-tolerant commit protocol used in a distributed storage system, showing how an abstract model can be defined in terms of an abstract state space and various categories of state transitions. We describe how such an abstract model can be deployed in a concrete system, and propose a general methodology for developing systems in this style.