Statecharts
Used to model behaviour of Autonomous and Reactive Systems (event driven, react to internal –timeouts– and external stimuli)
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 1/16
Statecharts Used to model behaviour of Autonomous and Reactive - - PowerPoint PPT Presentation
Statecharts Used to model behaviour of Autonomous and Reactive Systems (event driven, react to internal timeouts and external stimuli) Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 1/16 Statecharts
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 1/16
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 2/16
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 3/16
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 4/16
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 5/16
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 6/16
A entry/ ... do/ ... exit/ ...
State transition
Not allowed in DFA !
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 7/16
State automaton Statechart with depth by "flattening" give meaning
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 8/16
Statechart with depth by "flattening" give meaning State automaton (non deterministic)
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 9/16
Deterministic state automaton
inner transition (UML)
Deterministic state automaton
State automaton (non deterministic) Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 10/16
inner1 inner2
e e f(2,"hello") g
e() inner1 e() inner2 f(int, string) g()
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 11/16
Statechart with Orthogonal Components State Automaton
B,F B,E C,E H C,G B,G C,F I k e g e e f e p p n m|p m|p k p p g B C E G F H I Y A D e n e m k g p h e p h
f[D in(G)]
e h
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 12/16
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 13/16
A H D C G E F I J B e f/g n g h m/e n/f e
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 14/16
H Red Green Yellow Manual t t to_manual resume t Autonomous
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 15/16
H* A B OC1 OC2 C D X Y Z I J
Modelling of Software-Intensive Systems (MoSIS) hv@cs.mcgill.ca Statecharts 16/16