摘要
提出一种用于Java语言的图形编程工具的设计方法。它基于元建模机制设计图形编程语言,采用模型-视图-控制器(MVC)构架模式实现图形编辑器,并设计代码转换器完成从图形代码到对应文本代码的等价转换。通过在机器人编程游戏中的实际使用,证明其满足实际需要,大大提高图形编程语言的设计效率,增强了图形编辑器的可维护性与可复用性。这种设计方法也可以用来设计其他语言的图形编程工具。
A design method of a graphical programming tool for Java is proposed. To facilitate graphical programming, a new graphical programming language is designed based on meta-modeling, a graphical editor is created using Model-View-Controller (MVC) architecture and a code-transformer is implemented to translate visual code to equivalent textual code. The tool proves to be able to satisfy actual needs in its use in robot programming game. It not only improves coding efficiency, but also enhances the maintainability & reusability of graphical editor. This design method could also be used to design graphical programming tools for other programming languages.
出处
《测控技术》
CSCD
2007年第11期52-54,70,共4页
Measurement & Control Technology
基金
国家自然科学基金资助项目(60272040)
关键词
图形编程
元建模
模型-视图-控制器架构
代码转换
graphical programming
meta-modeling
Model-View-Controller architecture
code translating