Faculty of Computer Science Engineering, Computing Systems Department, University of Castilla-La Mancha, 02071 Albacete, Spain.
Sensors (Basel). 2018 Aug 13;18(8):2654. doi: 10.3390/s18082654.
Applications are employing Near Field Communication (NFC) technology to interact with physical objects by using NFC tags. The architecture to implement these kinds of applications varies according to non-functional requirements such as the physical environment where the application is running, the flexibility to adapt the information to be manipulated through physical objects, etc. To cope with these challenges, this paper proposes a Model-driven Architecture (MDA) where designers are able to model the configuration of the system according to NFC based system requirements. Through a model-to-text transformation process, the MDA also provides developers with templates of source code for the applications that support the system. The proposed MDA process defines a Platform Independent Model (PIM) which supports a Domain Specific Language (DSL) implemented as an Eclipse platform plugin that provides designers with a graphical model editor, and a model to text transformation, to generate the source code templates using the Acceleo transformation language. The paper also presents the Albacete Photo Gallery case of study to illustrate the modelling process. The main benefit of the proposal is that it allows developers to create mixed environments where the availability and flexibility of NFC based interaction systems can be easily configured, extended and maintained.
应用程序正在使用近场通信 (NFC) 技术通过 NFC 标签与物理对象进行交互。实现这些应用程序的体系结构根据非功能要求而有所不同,例如应用程序运行的物理环境、通过物理对象操作信息的灵活性等。为了应对这些挑战,本文提出了一种模型驱动架构 (MDA),设计人员可以根据基于 NFC 的系统要求对系统的配置进行建模。通过模型到文本的转换过程,MDA 还为支持系统的应用程序提供了源代码模板。所提出的 MDA 过程定义了一个平台独立模型 (PIM),该模型支持作为 Eclipse 平台插件实现的特定于域的语言 (DSL),为设计人员提供了图形模型编辑器和模型到文本的转换,以使用 Acceleo 转换语言生成源代码模板。本文还介绍了阿尔瓦塞特美术馆案例研究,以说明建模过程。该提案的主要好处是,它允许开发人员创建混合环境,其中基于 NFC 的交互系统的可用性和灵活性可以轻松配置、扩展和维护。