Improving Modeling with Layered UML Diagrams
Harald St
¨
orrle
Department of Informatics and Mathematical Modeling, Technical University of Denmark,
Richard Petersens Plads, 2800 Lyngby, Denmark
Keywords:
Model based Development, Model Structuring, Diagram Presentation.
Abstract:
Layered diagrams are diagrams whose elements are organized into sets of layers. Layered diagrams are rou-
tinely used in many branches of engineering, except Software Engineering. In this paper, we propose to add
layered diagrams to UML modeling tools, and elaborate the concept by exploring usage scenarios. We vali-
date the concept by implementation, lab assessments, and field testing. We conclude that layers enhance and
complement conventional diagrams and model structuring techniques, are easy to add to existing modeling
infrastructure, and are easy to apply by modelers.
1 INTRODUCTION
In a previous survey (St
¨
orrle, 2007), we have found
that models in industry can grow to substantial sizes.
We have also found that there are some very large
diagrams, that is, diagrams representing hundreds or
thousands of model elements. Often, these are also
very important diagrams in the sense that they are
widely used and play a central role in the organiza-
tions that created them; frequently, posters created
from these diagrams can be found on many office
walls. For such big diagrams, organizing and struc-
turing the underlying models and their presentation as
diagrams becomes a major challenge (St
¨
orrle, 2010).
Today, we have only few practical and widely avail-
able methods to structure diagrams, and they have sig-
nificant shortcomings. As a remedy, we propose to
add layering features to UML modeling tools, emu-
lating graphic design tools like Adobe Illustrator or
Photoshop.
A layer groups a set of presentation elements to
express some commonality of the model elements vi-
sualized by the corresponding presentation elements.
As a shorthand, we will often refer to the model el-
ements of a layer, meaning the model elements pre-
sented by the presentation elements placed on a layer.
A layered diagram is a diagram with an ordered set
of layers. There are contexts where “model” and “di-
agram” are synonymous, but this is not the case for
most UML modeling tools. Layers as we discuss
them in this paper have no impact to the underlying
models, they are only used to structure diagrams.
The placement of elements on layers is not part of
the model as such. Thus, the constraints or relation-
ships between the model elements as implied by the
modeling language (e.g., the UML meta model) do
not constrain the placement of corresponding presen-
tation elements on layers. Thus, a layer does not have
to be a correct or complete UML diagram by itself—
only the combination of all layers together has to sat-
isfy the same language-induced constraints as a con-
ventional diagram. Fig. 1 contrasts the concepts used
in layered diagrams with those used in conventional
diagrams. Obviously, the conceptual differences are
small, which helps with the implementation of lay-
ered diagrams.
Each set of layers may be shown or hidden inde-
pendently, so that n layers allow 2
n
combinations of
visible layers. Also, layers may be selectively locked
so that they stay visible, but are not affected by ma-
nipulations. Finally, layers may be used to select the
input to semantic model operations such as union, in-
tersection, or difference by simply computing the set
of model elements presented by a set of layers. Ele-
ments may also be placed on layers dynamically by
filters, such that there are layers to collect model ele-
ments based on their type, the presence of an error or
annotation, their time of creation, and so on.
2 RELATED WORK
Today, very few UML modeling tools offer layer-
ing; the only two exceptions we know of are Visu-
206
Störrle H..
Improving Modeling with Layered UML Diagrams.
DOI: 10.5220/0004337302060209
In Proceedings of the 1st International Conference on Model-Driven Engineering and Software Development (MODELSWARD-2013), pages 206-209
ISBN: 978-989-8565-42-6
Copyright
c
2013 SCITEPRESS (Science and Technology Publications, Lda.)