Volume 6 Number 8 (Aug. 2011)
Home > Archive > 2011 > Volume 6 Number 8 (Aug. 2011) >
JSW 2011 Vol.6(8): 1506-1512 ISSN: 1796-217X
doi: 10.4304/jsw.6.8.1506-1512

Developing Software Using A Novel Event- Condition-State Pattern Framework: Taking Mobile Input Method System As A Case Study

Fei Zhu, Hongjun Diao, Wei Huang
School of Computer Science and Technology, Soochow University; Provincial Key Laboratory for Computer Information Processing Technology, Soochow University Suzhou, Jiangsu, China, 215006

Abstract—Design patterns add more reliability, flexibility and reusability to a software system. Taking advantage of design patterns is usually beneficial to software design and makes software development relatively easier. The state pattern proposed by GoF is not a determined design and can hardly be transformed into implementation code directly. It is disable to cope with sophisticated response event either. Hereby we propose a novel event-conditionstate pattern framework, an event-based finite state machine. The framework improves GoF state pattern by resegmenting Context into two classes, one for management and the other for operation interface. Essential components for implementation, such as management, state transferring, and event triggering mechanism, are also taken into consideration in the framework. We use pattern framework to develop a thirty party input method system which has a Windows Mobile system version and a Symbian system version separately. We rewrote Context part related with system interfaces in the two different systems, and encapsulated the part related with internal logic of input method by concrete subclasses, thus avoiding redundant developing work in both systems and providing convenience for later synchronous updating and maintenance of two input methods. With the pattern framework, much effort during software development is saved. The development logic seems simpler and clearer. As a result, the whole development process is simplified.

Index Terms—software architecture, design pattern, event condition state, mobile developing, input method

[PDF]

Cite: Fei Zhu, Hongjun Diao, Wei Huang, "Developing Software Using A Novel Event- Condition-State Pattern Framework: Taking Mobile Input Method System As A Case Study," Journal of Software vol. 6, no. 8, pp. 1506-1512, 2011.

General Information

ISSN: 1796-217X (Online)
Frequency: Monthly
Editor-in-Chief: Prof. Antanas Verikas
Executive Editor: Ms. Yoyo Y. Zhou
Abstracting/ Indexing: DBLP, EBSCO, ProQuest, INSPEC, ULRICH's Periodicals Directory, WorldCat, CNKI,etc
E-mail: jsw@iap.org
  • Jun 25, 2019 News!

    Papers published in JSW Vol. 14, No. 1- Vol. 14 No. 6 have been indexed by DBLP.    [Click]

  • Jun 25, 2019 News!

    Vol.13, No.9 has been indexed by EI (Inspec).   [Click]

  • Aug 01, 2018 News!

    [CFP] 2019 the annual meeting of JSW Editorial Board, ICCSM 2019, will be held in Barcelona, Spain, July 14-16, 2019.   [Click]

  • Jul 10, 2019 News!

    Vol 14, No.8 has been published with online version 4 original aritcles from 2 countries are published in this issue.    [Click]

  • Jul 22, 2019 News!

    Welcome Prof Ferhat Khendek from Canada to join the Editorial board of JSW    [Click]