Top Banner
State diagram
14

State diagram

Apr 16, 2017

Download

Education

Hareem Naz
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: State diagram

State diagram

Page 2: State diagram

•One way to characterize change in a system is to say that its object change their state in response to events and to time .• When you throw a stick a light changes its state from off to on .•When you click a remote control a television changes its state from showing you one channel to showing you another .• After an appropriate amount of time , a washing machine changes its state from Washing to Rinsing .

Page 3: State diagram

•The uml state diagram captures these kind of changes .It presents the states an object can be in along with the transitions between the states and shows the starting point and end point of a sequence of state changes.

Page 4: State diagram
Page 5: State diagram
Page 6: State diagram
Page 7: State diagram
Page 8: State diagram

•Three frequently used activities are entry(what happens when the system enters a state) ,exit(what happens when the system leaves the state ) and what happens while the system is in the state.•You can add others as necessary.

Page 9: State diagram
Page 10: State diagram
Page 11: State diagram

Guard conditionGuard condition is something when its met transition take place

Page 12: State diagram

Here the Screensaving is a guard condition.

Page 13: State diagram
Page 14: State diagram

The end !!!