计算机工程与应用 ›› 2020, Vol. 56 ›› Issue (10): 240-245.DOI: 10.3778/j.issn.1002-8331.1901-0263

• 工程与应用 • 上一篇    下一篇

移动用户界面概念模型到代码的转换方法研究

王诗宇,刘洪星,范家佳   

  1. 1.武汉理工大学 计算机科学与技术学院,武汉 430063
    2.武汉理工大学 交通物联网技术湖北省重点实验室,武汉 430070
  • 出版日期:2020-05-15 发布日期:2020-05-13

Research on Transformation Method from Mobile User Interface Conceptual Model to Code

WANG Shiyu, LIU Hongxing, FAN Jiajia   

  1. 1.School of Computer Science and Technology, Wuhan University of Technology, Wuhan 430063, China
    2.Hubei Key Laboratory of Transportation Internet of Things, Wuhan University of Technology, Wuhan 430070, China
  • Online:2020-05-15 Published:2020-05-13

摘要:

针对移动用户界面需在多种平台上重复开发的问题,借鉴模型驱动架构(Model Driven Architecture,MDA)思想,研究模型驱动的移动用户界面开发方法。用Mobile IFML(Interaction Flow Modeling Language)表示移动用户界面概念模型,即平台无关的移动用户界面模型。在此基础上,重点研究移动用户界面概念模型到特定平台用户界面代码的转换,定义了映射规则并设计了转换算法,最后基于Eclipse平台实现了一个支持代码生成的工具原型。用户借助该工具可方便地设计移动用户界面概念模型,随后概念模型可自动或半自动地转换为特定平台用户界面代码。

关键词: 移动用户界面, 概念模型, 映射规则, 模型转换

Abstract:

Learning from Model Driven Architecture(MDA), a model-driven development method for multi-platform mobile user interface is studied. The mobile user interface conceptual model represented by mobile IFML(Interaction Flow Modeling Language) is a Platform-Independent Model(PIM). Based on that, this paper focuses on the transformation method from PIM to Platform-Specific Model(PSM), i.e. the user interface code. The mapping rules are defined and a transformation algorithm is designed, then a software tool supporting the transformation and code generation is implemented based on Eclipse platform. With this tool, users can just design the PIM with ease, which then can be automatically or semi-automatically transformed to platform-specific user interface code.

Key words: mobile user interface, conceptual model, mapping rules, model transformation