Lesson 1.4.2
Lesson 1.4.2
BEHAVIORAL
■ Many business systems are data-processing systems that are primarily driven
by data. They are controlled by the data input to the system, with relatively
little external event processing.
■ Data-driven models show the sequence of actions involved in processing
input data and generating an associated output.
■ They are particularly useful during the analysis of requirements as they can
be used to show end-to-end processing in a system.
Event-Driven Modeling
■ Real-time systems are often event-driven, with minimal data processing. For
example, a landline phone switching system responds to events such as
‘receiver off hook’ by generating a dial tone.
■ Event-driven modeling shows how a system responds to external and internal
events.
■ It is based on the assumption that a system has a finite number of states and
that events (stimuli) may cause a transition from one state to another.
State Machine Models
■ These model the behaviour of the system in response to external and internal
events.
■ They show the system’s responses to stimuli so are often used for modelling
real-time systems.
■ State machine models show system states as nodes and events as arcs between
these nodes. When an event occurs, the system moves from one state to
another.
■ State charts are an integral part of the UML and are used to represent state
machine models.
State Diagram of a Microwave Oven