Transcript PPT
CS 494 Adv. OO Design and Development State and Event Modeling • See handout from Ambler, Sect. 7.4 © 2001 T. Horton 4/16/05 J-1 State Machine: Thermostat • From UML Users Guide, p. 289 4/16/05 J-2 Events 4/16/05 J-3 Advanced States and Transitions 4/16/05 J-4 Sequential Substates 4/16/05 J-5 Concurrent Substates 4/16/05 J-6 Modeling the Lifetime of an Object 4/16/05 J-7 State Charts as Tables • Sometimes preferable to represent as a table: Starting State Event/Action Ending State Action/Activity state1 evt1 / act1 State2 do / something • Tool support: – Robert Martin’s SMC tool generates code from text version of table – See Resources at www.objectmentor.com 4/16/05 J-8