Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2009, Vol. 35 ›› Issue (17): 249-251. doi: 10.3969/j.issn.1000-3428.2009.17.086

• Developmental Research • Previous Articles     Next Articles

Design of General Framework Based on Event-Condition-State

ZHU Fei, DIAO Hong-jun   

  1. (School of Computer Science and Technology, Soochow University, Suzhou 215006)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-09-05 Published:2009-09-05

基于事件-条件-状态的通用框架设计

朱 斐,刁红军   

  1. (苏州大学计算机科学与技术学院,苏州 215006)

Abstract: This paper designs a general framework based on Event-Condition-State. It resegments context of GOF state pattern into two classes: One is responsible for management and the other is responsible for operation interface. Implementation parts such as state management, state transferring index and event triggering mechanism are embodied in the framework. With general framework, development of the system based on Event-Condition-State is simplified. The framework is utilized in developing mobile Input Method(IM) system for various different platforms. Practice proves it can simplify IM developing process and provide convenience in multiple various IM systems maintenance.

Key words: state pattern, event mapping mechanism, mobile developing, Input Method(IM)

摘要: 设计一个基于事件-条件-状态的通用框架,通过对GOF状态模式中的Context进行适当的重新划分,将其拆分为一个负责状态管理的类和一个负责操作接口的类,并将状态管理、状态转移表检索、事件触发机制等功能包含在框架中。将该框架应用于多种不同平台的手机输入法的开发中,发现其可以简化输入法程序的开发,为不同版本输入法程序的维护提供方便。

关键词: 状态模式, 事件映射机制, 手机开发, 输入法

CLC Number: