More Related Content
Similar to Lecture08 (20)
Lecture08
- 1. Object Oriented Software Modeling and Design CE 350 Abdel-Karim Al-Tamimi, Ph.D. [email_address] http://faculty.yu.edu.jo/altamimi Al-Tamimi 2011 ©
- 11. State Conditions Al-Tamimi 2011 © Action or activity Description entry/ action 1; …; action n Upon entry to the state, the specified actions are performed. exit/ action 1; …; action n Upon exit from the state, the specified actions are performed. do/ activity The specified activity is performed continuously while in this state . event-name(parameters) [guard-condition] / action 1 ; …; action n An internal transition is fired when the specified event occurs and the specified guard condition is true . The specified actions are performed when the transition is fired.
- 32. Shallow History State Al-Tamimi 2011 © When the activities associated with that state are finished, the system puts the Order back into the Retrieving Books state and the substate in which the Order resided when activity was interrupted, and the Order resumes performing the interrupted activity. (in this case Accumulating from Inventory) When a query event comes in while an Order object is in the Retrieving Books state, the system puts the current activity hold and puts the object into the Checking Status state.
- 33. Deep History State Al-Tamimi 2011 © In this case, that execution should resume with the object in the Waiting for Back Order substate.
- 35. State Diagram UML Notations Al-Tamimi 2011 © Initial state Final state State Shallow History state Deep History state Concurrent composite state Transition
- 36. State Diagram UML Notations Al-Tamimi 2011 © Exit Point Entry Point Choice Join and Fork Junction state Transition