CS558 Sylabus
Intro to state transition diagrams
Intro to state transistion diagrams
Fact:
Protocols
are
commonly
described using a
state transition
diagram
This
webnote
will be a
brief
introduction
on this
subject
State transition diagrams
A
state transistion diagram
consists of:
States
that are
represented
by
labeled nodes
Transistions
that are
represented
by
edges
from a
starting
state
to an
ending
state
The
edges
are
labeled
with an
(event, response)
pair
Example
of a
state transition diagram
:
A
more
concrete example
:
Event and response
The
edges
contains
labels
of the
form
:
event
------------------
response
Meaning:
Event
= the
triggering event
that
causes
the
transition
from the
starting
state
to the
ending
state
Response
= the
action
that will
take place
when the
transition
is
made
A
response
will
usually
can another
event
to
occur
Interpreting a state transition diagram
Reading
a
state transition diagram
:
How to
read
the
diagram:
When
in the
process
is in
state 1
:
If
event A
occurs
, then:
The
process
will
issue
the
response B
and
Make the
transition
to
state 2
If
event C
occurs
, then:
The
process
will
issue
the
response D
and
Make the
transition
to
state 3
This
diagram
should be
clear
: