Generating class contracts from deterministic UML protocol statemachines

  • Authors:
  • Ivan Porres;Irum Rauf

  • Affiliations:
  • Dept. of Information Technologies, Åbo Akademi University, Turku, Finland;Dept. of Information Technologies, Åbo Akademi University, Turku, Finland

  • Venue:
  • MODELS'09 Proceedings of the 2009 international conference on Models in Software Engineering
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present an approach to generate behavioral class interfaces in the form of class contracts from UML 2.0 protocol state machines. A generated class contract defines a pre- and post-condition for each operation that triggers a transition in the state machine. We consider the following protocol SM elements: state and state invariants, simple transitions, compound transitions, high-level transitions, complete transitions, self transitions also deal with the case of firing priorities. The generated contracts can be used as a behavioral interface, for documentation, run-time checking and test case generation.