Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSE563 Lecture 14

CSE563 Lecture 14

Software Requirements and Specification
Midterm Review (updated)
(202110)

B546a9b97d993392e4b22b74b99b91fe?s=128

Javier Gonzalez
PRO

August 29, 2021
Tweet

More Decks by Javier Gonzalez

Other Decks in Programming

Transcript

  1. jgs CSE 563 Software Requirements and Specification Lecture 14: State

    Machine Diagram Dr. Javier Gonzalez-Sanchez javiergs@asu.edu javiergs.engineering.asu.edu | javiergs.com PERALTA 230U Office Hours: By appointment
  2. jgs Previously … Where can I put the details ?

  3. jgs Fall 2021 | 00000001 Use Case Template Number and

    Name < the name is the goal as a short active verb phrase> Goal / Description < a longer statement of the goal in context if needed > Pre-conditions <what we expect is already the state of the world> Success End Condition <the state of the world upon successful completion> Failed End Condition <the state of the world if goal abandoned> Actors <a role name or description for the primary actor> <other systems relied upon to accomplish use case> Trigger <the action upon the system that starts the use case> Description step action 1 <put here the steps of the scenario from trigger to goal delivery, and any cleanup after> 2 <...> 3
  4. jgs Fall 2021 | 00000001 Example Number Name Goal/ Description

    Pre-conditions Success End Condition Failed End Condition Actors Trigger Description
  5. jgs Fall 2021 | 00000001 Behavioral Modeling § A graphical

    representation of the flow of interaction. Create a activity diagram for each use-case. § A list of the different states of a system. Build a state diagram for the system. § They are not mandatory, § They are an option to natural language § They can be combined.
  6. jgs Fall 2021 | 00000001 Example with Pacman http://gameinternals.com/post/2072558330/ understanding-pac-man-ghost-behavior

  7. jgs Fall 2021 | 00000001 The Red Ghost (Blinky)

  8. jgs State Machine Diagram

  9. jgs Fall 2021 | 00000001 State machine models § Model

    the behaviour of the system in response to external and internal events. § State machine models show system states as nodes and events as arcs between these nodes. When an event occurs, the system moves from one state to another. State ~ Data Event ~ Change in Data
  10. jgs Fall 2021 | 00000001 Note Think about global data

    that control behaviors
  11. jgs Fall 2021 | 00000001 Notation § Simple state is

    shown as a rectangle with rounded corners and the state name inside the rectangle. § composite state is defined as state that has substates (nested states). § An initial state represents a default vertex that is the source for a single transition. There can be at most one initial vertex. The outgoing transition from the initial vertex may have not a trigger or guard. § Final state is a special kind of state signifying that the enclosing region is completed. § A transition is a directed relationship between a source vertex and a target vertex. § Junctions
  12. jgs Fall 2021 | 00000001 Example state machine diagram

  13. jgs Fall 2021 | 00000001 Example state machine diagram

  14. jgs Fall 2021 | 00000001 Example state machine diagram

  15. jgs Fall 2021 | 00000001 Example state machine diagram

  16. jgs Fall 2021 | 00000001 Example state machine diagram

  17. jgs Pac-Man Video Game Examples of State machine Diagrams

  18. jgs Fall 2021 | 00000001 The Red Ghost (Blinky) –

    Activity Diagram
  19. jgs Fall 2021 | 00000001 Pac-Man What about: § New

    § Hunter § Hunted § Eaten
  20. jgs Fall 2021 | 00000001 Ghost States - State Machine

    Diagram
  21. jgs Fall 2021 | 00000001 Ghost States - State Machine

    Diagram
  22. jgs Fall 2021 | 00000001 Pacman States - State Machine

    Diagram
  23. jgs Fall 2021 | 00000001 Pacman States - State Machine

    Diagram
  24. jgs Homework

  25. jgs Fall 2021 | 00000001 Pac-Man http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior § Use Case

    Diagram § Use Case Description (per Oval) § Activity Diagram (where/how many are needed?) § State Machine Diagram (where/how many are needed?)
  26. jgs Fall 2021 | 00000001 Space Invaders https://en.wikipedia.org/wiki/Space_Invaders § Use

    Case Diagram § Use Case Description (per Oval) § Activity Diagram (where/how many are needed?) § State Machine Diagram (where/how many are needed?)
  27. jgs Fall 2021 | 00000001 Game of Life https://playgameoflife.com/info §

    Use Case Diagram § Use Case Description (per Oval) § Activity Diagram (where/how many are needed?) § State Machine Diagram (where/how many are needed?)
  28. jgs Fall 2021 | 00000001 Assignment § Submit one PDF

    file per project § Due date before the exam– it will help you to study for your exam § Work individually § Please, follow academic integrity policies
  29. jgs Fall 2021 | 00000001 Questions

  30. jgs CSE 563 Software Requirements and Specification Javier Gonzalez-Sanchez, Ph.D.

    javiergs@asu.edu Fall 2021 Copyright. These slides can only be used as study material for the class CSE563 at ASU. They cannot be distributed or used for another purpose.