3.2state Machines
3.2state Machines
Active
Card inserted validating
Idle
cancel [more]
processing
mainte selecting
nance finished
maintenance
printing
Entry/readcard
Exit/eject card
History states
• We would like to model an object so that it remember the
last substate that was active prior to leaving the composite
state
• H is the history state (small circle)
H
collecting
command
query
copying
cleaning
Concurrent sub states- 2 or more state machines that
execute parallel in the context of an enclosing object
Idle
fork join
ATM maintenance
Testin
g Self
testing diagnosis
Commanding [continue]
comman
waiting
d
[not
Key press
continue]