SDM: State diagrams

Summary of differences between protocol and behavioural state diagrams

Any kind of state diagram records the qualitatively different states an object can be in, and how events (things that happen TO the object) affect that state.

Quick questions

Q1 States in a UML state diagram are shown as
rectangles
ellipses
rectangles with left and right sides curved
rectangles with rounded corners

Q2 The arrows in a state diagram are called
transitions
messages
events
associations

Q3 Two people could each create a behavioural state diagram for the same class, and their diagrams could both be correct but have different numbers of states:
True
False

Q4 An element that can appear on a behavioural state diagram, but cannot appear on a protocol state diagram, is:
a nested state
an action
an event
a condition