4 RELATED WORK
Task models are often used for model-based user in-
terface development (MBUID), and many researchers
have investigated how task models support multi-
device applications development in ambient intelli-
gence environments. E.g. the work in (Patern
`
o et al.,
2010) exploits the web service annotation for model
transformations at various abstract levels. However,
designers have to create a distinct CTT for each de-
vice to connect them with the web services in order to
develop different versions of the same application on
multiple devices.
Luyten and Clerckx develop an algorithm for
transforming a CTT to executable state machines
(Luyten and Clerckx, 2003). This is similar to the
state machines used here, but does not consider multi-
device environments. More recent work like (Popp
et al., 2013) considers code generation for multi-
device UIs, but does not consider flexible constructs
like our Any or All operators.
In summary, we are not aware of any work sim-
ilar to this approach. Usually, all these existing ap-
proaches handle distribution issues in more concrete
models after defining the task models. In our opin-
ion, it is however natural to consider the distribution
to devices in task models directly. Instead of adding
rules for executing tasks across multiple devices at the
concrete model level, our introduced device labeling
mechanism enables designers to define execution of
tasks at the early stage.
5 CONCLUSION
In this paper, we have presented a first approach
to translate multi-device task models into distributed
state machines. The main novelty of this work is
an algorithm for the MCTT device labeling operators
Any and All, which creates distributed, coordinated
state machines in a multi-device setting. To achieve
this, we generate specific state machines for each in-
volved device which include states and transitions for
both tasks and necessary coordination overhead. We
build upon an already existing translation algorithm,
that translates ordinary CTT tasks and operators into
state machines. Our approach therefore extends the
translation of basic tasks and integrates the distributed
characteristics of device labeling operators into the
translation rules for CTTs. Overall, our paper shows
that MCTTs are a valid tool to build distributed, coor-
dinated systems with a mulitude of devices.
ACKNOWLEDGEMENTS
This work has been partly funded by German Min-
istry of Education and Research (BMBF) in the CrESt
project under grant number 01Is16043A.
REFERENCES
Br
¨
uning, J., Dittmar, A., Forbrig, P., and Reichart, D.
(2008). Getting SW engineers on board: Task mod-
elling with activity diagrams. Lecture Notes in Com-
puter Science (including subseries Lecture Notes in
Artificial Intelligence and Lecture Notes in Bioinfor-
matics), 4940 LNCS:175–192.
Chmielewski, J. (2014). Device-independent architecture
for ubiquitous applications. Personal and Ubiquitous
Computing, 18(2):481–488.
Luyten, K. and Clerckx, T. (2003). Derivation of a dialog
model from a task model by activity chain extraction.
Interactive Systems. Design . . . , pages 203–217.
Patern
`
o, F. (2000). Model-Based Design and Evaluation of
Interactive Applications. Springer-Verlag London.
Patern
`
o, F., Santoro, C., Spano, L. D., and CNR-ISTI, H.
(2010). User task-based development of multi-device
service-oriented applications. In AVI, page 407.
Popp, R., Raneburger, D., and Kaindl, H. (2013). Tool sup-
port for automated multi-device gui generation from
discourse-based communication models. In Proceed-
ings of the 5th ACM SIGCHI Symposium on Engineer-
ing Interactive Computing Systems, EICS ’13, pages
145–150, New York, NY, USA. ACM.
Prehofer, C., Wagner, A., and Jin, Y. (2016). A model-based
approach for multi-device user interactions. In Pro-
ceedings of the ACM/IEEE 19th International Con-
ference on Model Driven Engineering Languages and
Systems, pages 13–23. ACM.
R
¨
adle, R., Jetter, H.-C., Schreiner, M., Lu, Z., Reit-
erer, H., and Rogers, Y. (2015). Spatially-aware or
spatially-agnostic? elicitation and evaluation of user-
defined cross-device interactions. In Proceedings of
the SIGCHI Conference on Human Factors in Com-
puting Systems.
Wagner, A. (2015). Multi-device extensions for ctt dia-
grams and their use in a model-based tool chain for
the internet of things. Master’s thesis, TU M
¨
unchen,
Germany.
Wagner, A. and Prehofer, C. (2016). Translating task mod-
els to state machines. In Proceedings of the 4th In-
ternational Conference on Model-Driven Engineering
and Software Development, pages 201–208.
MODELSWARD 2018 - 6th International Conference on Model-Driven Engineering and Software Development
428