7 CONCLUSIONS
In this paper, we have defined a new compositional
semantics of sequence diagrams based on the true-
concurrent model of labelled event structures, and
presented an automated technique based on Alloy that
relies on the true-concurrent semantics.
The underlying developed tool takes as an input
one or more sequence diagrams, and automatically
constructs Alloy solutions for the composition. Each
of the solutions corresponds to a run that can be
derived from the underlying labelled event structure
of the composed sequence diagram. Our approach
has been evaluated through a series of examples and
larger case studies.
The composition as defined in this paper assumes
a diagram as representing possible but not mandatory
behaviour. It is our intention to extend this view to
a more flexible approach which enables designers to
choose between must and may interactions. An exten-
sion of our formal framework and consequent trans-
lation to Alloy to cover both options is subject to fur-
ther work, as is an extension to more complex features
from sequence diagrams in Alloy.
REFERENCES
Akehurst, D., Bordbar, B., Evans, M., Howells, W., and
McDonald-Maier, K. (2006). SiTra: Simple transfor-
mations in Java. In MoDELS’06, LNCS 4199, pages
351–364. Springer.
Ara
´
ujo, J., Whittle, J., and Kim, D. (2004). Modeling and
composing scenario-based requirements with aspects.
In RE 2004, pages 58–67. IEEE.
Berre, D. L. and Parrain, A. (2010). The SAT4j library,
release 2.2 - system description. Journal on Satisfia-
bility, Boolean Modeling and Computation, 7:59–64.
Anastasakis, K., Bordbar, B., Georg, G., and Ray, I. (2007).
UML2Alloy: A challenging model transformation. In
Model Driven Engineering Languages and Systems,
pages 436–450. Springer.
Harel, D. and Marelly, R. (2003). Come, Let’s Play:
Scenario-based Programming Using LSCs and the
Play-Engine. Springer.
Jackson, D. (2006). Software Abstractions: logic, language
and analysis. MIT Press.
Kleppe, A., Warmer, J., and Bast, W. (2003). MDA Ex-
plained: The model driven architecture: practice and
promise. Addison-Wesley.
K
¨
uster-Filipe, J. (2006). Modelling concurrent interactions.
Theoretical Computer Science, 351:203–220.
K
¨
uster-Filipe, J. and Bordbar, B. (2007). A formal model
for integrating multiple views. In ACSD 2007, pages
71–79. IEEE.
Lanusse, A., Tanguy, Y., Espinoza, H., Mraidha, C., Ger-
ard, S., Tessier, P., Schnekenburger, R., Dubois, H.,
and Terrier, F. (2009). Papyrus UML: an open source
toolset for MDA. In ECMDA-FA 2009, pages 1–4.
Liang, H., Diskin, Z., Dingel, J., and Posse, E. (2008). A
general approach for scenario integration. In MoD-
ELS’08, LNCS 5301, pages 204–218. Springer.
Micskei, Z. and Waeselynck, H. (2011). The many mean-
ings of UML 2 sequence diagrams: a survey. Software
and Systems Modeling, 10:489–514.
OMG (2011). UML: Superstructure. Version 2.4.1. OMG,
http://www.omg.org. Document id: formal/2011-08-
06. [accessed 1-6-2012].
Rosa, M. L., Dumas, M., Uba, R., and Dijkman, R. (2010).
Merging business process models. On the Move to
Meaningful Internet Systems: OTM 2010, pages 96–
113.
Rubin, J., Chechik, M., and Easterbrook, S. (2008). Declar-
ative approach for model composition. In MiSE’08,
pages 7–14. ACM.
Widl, M., Biere, A., Brosch, P., Egly, U., Heule, M., Kap-
pel, G., Seidl, M., and Tompits, H. (2013). Guided
merging of sequence diagrams. In SLE 2012, LNCS
7745, pages 164–183. Springer.
Winskel, G. and Nielsen, M. (1995). Models for Concur-
rency. In Abramsky, S., Gabbay, D., and Maibaum,
T., editors, Handbook of Logic in Computer Science,
Vol. 4, Semantic Modelling, pages 1–148. Oxford Sci-
ence Publications.
AutomatedCompositionofSequenceDiagramsviaAlloy
391