DocumentCode :
3203802
Title :
Facilitating program comprehension via generic components for state machines
Author :
Weidl, Johannes ; Klösch, René R. ; Trausmuth, Georg ; Gall, Harald
Author_Institution :
Dept. of Distribution Syst., Tech. Univ. Vienna, Austria
fYear :
1997
fDate :
28-30 Mar 1997
Firstpage :
118
Lastpage :
127
Abstract :
Various applications use state transition mechanisms as a major building block. As an example, finite state machines (FSMs) and their graphical counterpart-state transition diagram-are heavily used e.g. for the specification of various kinds of protocols such as network protocols (e.g. TCP/IP), protocols for infrared data transmission, etc. Many embedded systems, such as telephone switching systems and television control, are directly based on state machines. Introducing generic components for state machines can raise the source code abstraction level from “hard coded” control flow decisions such as “switch/case” and “if” to a more flexible implementation model of control flow. The paper shows that it is possible to use statecharts and their advanced mechanisms from specification to implementation of reactive systems. By explicitly modeling states and state transitions the source code is described at a higher abstraction level and thereby top down program comprehension is facilitated. We define a set of specific design patterns to abstract state machine source code from low level implementation to a more abstract level. Furthermore, we introduce a certain degree of genericity and thus flexibility without major losses in efficiency during the design and implementation of generic components
Keywords :
finite state machines; formal specification; real-time systems; reverse engineering; visual programming; abstract state machine source code; control flow; embedded systems; finite state machines; flexible implementation model; generic components; graphical counterpart; higher abstraction level; network protocols; program comprehension; reactive systems; source code abstraction level; specification; state machines; state transition diagram; state transition mechanisms; statecharts; telephone switching systems; television control; top down program comprehension; Automata; Data communication; Documentation; Embedded system; Europe; Protocols; Switches; TCPIP; TV; Telephony;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Program Comprehension, 1997. IWPC '97. Proceedings., Fifth Iternational Workshop on
Conference_Location :
Dearborn, MI
ISSN :
1092-8138
Print_ISBN :
0-8186-7993-X
Type :
conf
DOI :
10.1109/WPC.1997.601277
Filename :
601277
Link To Document :
بازگشت