Statecharts: A Visual Formalism for Complex Systems
Summary
David Harel introduces statecharts as a visual formalism that extends state-transition diagrams with hierarchy, concurrency, and communication to describe complex reactive systems.
Hierarchy prevents state explosion.
Using rounded rectangles and encapsulation, statecharts cluster states into super-states, allowing transitions to originate or terminate at any level of the hierarchy.
use rounded rectangles (boxes in > the sequel) to denote states at any level
Orthogonality manages concurrency.
AND decomposition allows systems to exist in multiple components simultaneously, avoiding the exponential blow-up seen in classical finite-state automata.
two components with one thousand states each > would result in one million states
Actions differ from activities.
Actions are instantaneous occurrences, whereas activities are durable processes that take a non-zero amount of time to execute.
Broadcast differs from rendezvous.
Unlike the rendezvous mechanism in CCS which synchronizes a single sender and receiver, statechart communication uses a broadcast mechanism.
the sender may proceed even if nobody is listening.
Visual formalism is primary.
Harel argues that statecharts should serve as the formal description itself rather than just a visual aid for textual or algebraic representations.
visual formalism should be the name of the game
Read the original ↗Save to Sponge
Summarized with Sponge. Quotes are the author’s own words.