摘要 |
A programming technique for defining, structuring, and developing event driven software. More particularly, event driven software is structured in two basic parts: control-sensitive code and non-control-sensitive code. Control sensitive code includes the identification of control states, the events that are generated and that must be recognized, and the responses to the arrival of particular events in particular states. Further, within the control-sensitive code defining the system, control states are uniquely identified throughout such program code with a single symbol. The non-control-sensitive code, specified separately from the control sensitive code, is directed at the necessary normal sequential code for programming the event driven system such as the invocation of device drivers, the control of peripheral devices, the updating of tables, variable definition, etc. Advantageously, the technique allows the software developer to structure the event driven software application source code such that a clear distinction is made between core control features, i.e., states, events and responses, and extraneous details not directly impacting the behavior of the event driven system. As such, the programmer can readily determine the exact execution flow from control state-to-control state directly from a cursory examination of the program code itself as the individual control states have a strong visual context.
|