- Information
- AI Chat
Was this document helpful?
Real-time system modeling
Course: Software Engineering (CSPC 111)
140 Documents
Students shared 140 documents in this course
University: STI West Negros University
Was this document helpful?
Real-time system modeling
The events that a real-time system must react to often cause the system to move from
one state to another. For this reason, state models, which I introduced in Chapter 5, are
used to describe real-time systems. A state model of a system assumes that, at any
time, the system is in one of a number of possible states. When a stimulus is received,
this may cause a transition to a different state. For example, a system controlling a
valve may move from a state “Valve open” to a state “Valve closed” when an operator
command (the stimulus) is received.
State models are an integral part of real-time system design methods. The UML
supports the development of state models based on Statecharts (Harel 1987, 1988).
Statecharts are formal state machine models that support hierarchical states, so that
groups of states can be considered as a single entity. Douglass discusses the use of the
UML in real-time systems development (Douglass 1999).
I have already illustrated this approach to system modeling in Chapter 5 where I used
an example of a model of a simple microwave oven. Figure 21.5 is another example of
a state model that shows the operation of a fuel delivery software system embedded in
a petrol (gas) pump. The rounded rectangles represent system states, and the arrows
represent stimuli that force a transition from one state to another.
The names chosen in the state machine diagram are descriptive. The associated
information indicates actions taken by the system actuators or information that is
displayed. Notice that this system never terminates but idles in a waiting state when the
pump is not operating.
The fuel delivery system is designed to allow unattended operation, with the following
sequence of actions: