'

Generating structured implementation schemes from UML sequence diagrams

Petri Selonen, Tarja Systä, Kai Koskimies Tampere University of Technology, Finland

In the Unified Modeling Language (UML), a use case describes a particular functionality a system can perform by interacting with outside actors. A realization of a use case can be given as a set of sequence diagrams. This paper discusses how to generate structured implementation schemes represented as pseudocode from a set of sequence diagrams in UML. The proposed approach can be applied to any set of sequence diagrams, allowing the user to view the implementations of operation bodies as implied by this set of sequence diagrams, and to merge the different views into a single implementation scheme that can be used as a starting point for the actual implementation. In order to describe the overall behavior of an individual operation and to generate structured implementation schemes, we modify an existing technique for synthesizing a state machine (statechart diagram) from a set of sequence diagrams. We then introduce a technique for transforming the synthesized state machine into a pseudocode representation. We show how these techniques can be exploited in a UML-based CASE environment by combining them with another transformation operation that produces class diagrams from sequence diagrams. In this way an automatically generated class diagram can be augmented with UML notes describing implementation schemes for individual operations. The described techniques have been implemented in a real CASE environment.'