Software Process Modeling State Diagrams Lab Exercises
Dive into the world of state diagrams and state machine diagrams in software process modeling. Explore hands-on exercises such as creating state diagrams for controlling air conditioners and garage doors. Understand the importance of capturing object states in OOP and learn how to represent transitional stages efficiently. Get ready to enhance your knowledge and skills in software process modeling through practical demonstrations and lab exercises.
- Software Process Modeling
- State Diagrams
- State Machine Diagrams
- Object-Oriented Programming
- Lab Exercises
Download Presentation
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
E N D
Presentation Transcript
7. State Diagram HTTP://FAC.KSU.EDU.SA/AQUADRI SWE 313 - SOFTWARE PROCESS MODELING - AMAN QUADRI
Coverage Coverage: State Diagram Demo State Diagram Lab Exercise 2 SWE 313 - SOFTWARE PROCESS MODELING - AMAN QUADRI
Lets Refresh!! AKA State Chart Diagram or State Machine Diagrams. Concerned with the states of the objects (initial, transitional and final) A State represents a stage of of the object in behavior. Helpful in capturing states of objects and useful in all forms of OOP. 3 SWE 313 - SOFTWARE PROCESS MODELING - AMAN QUADRI
State Diagram Hands on Lets create State Diagram. Create a New Blank Rose Package and Add Diagram > State Machine Diagram. Give it a Name. 4 SWE 313 - SOFTWARE PROCESS MODELING - AMAN QUADRI
Description A Trip Switch is used to Turn On or Turn off the Air Conditioner. When the switch is flipped up (Give, the AC is off), The motor starts working and the LED on the switch is blinking. Once the AC is ON the LED on switch is continuous on . When the switch is flipped down the the AC motor starts to SHUT down and the LED starts blinking. Once the AC is Turned OFF completely the LED on Switch is Continuous off While in the mid of turning off the AC, if the switch is flipped up again, the AC motors starts to turn ON the AC. 5 SWE 313 - SOFTWARE PROCESS MODELING - AMAN QUADRI
State Diagram 6 SWE 313 - SOFTWARE PROCESS MODELING - AMAN QUADRI
Lab Exercise Drawing a state diagram for: a)A button is used to initiate the opening and closing of the garage door. b)When the button is pressed while the door is close, the door will be opening while the light is also turned on. c)When the button is pressed while the door is open, the door will be closing while a flash light is turned on. Before start closing, the door has to check that the entrance is clear. d)When closing the door, if the button is pressed while the door is closing, the motor is immediately thrown into the forward direction, causing the door to start opening again. 7 SWE 313 - SOFTWARE PROCESS MODELING - AMAN QUADRI