analysis modeling
Skip this Video
Download Presentation
Analysis Modeling

Loading in 2 Seconds...

play fullscreen
1 / 18

Analysis Modeling - PowerPoint PPT Presentation

  • Uploaded on

Analysis Modeling. Dynamic Modeling. Requirements analysis. Results in static and dynamic models Scenario models: use cases (static), swimlane diagrams (dynamic) Class diagrams (static) Flow oriented diagrams (dynamic)

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about 'Analysis Modeling' - lajos

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
analysis modeling

Analysis Modeling

Dynamic Modeling

requirements analysis
Requirements analysis
  • Results in static and dynamic models
    • Scenario models: use cases (static), swimlane diagrams (dynamic)
    • Class diagrams (static)
    • Flow oriented diagrams (dynamic)
    • Behavioral models: sequence diagrams (dynamic), state diagrams (dynamic)
  • These models bridge the gap between requirements and implementation (code)
activity swimlane diagrams
Activity/Swimlane diagrams
  • Help us visualize the

flows associated with

use cases

  • A swimlane diagram has

multiple actors; an

activity diagram is the

same thing, but no

concrete actors are


other syntax
Other syntax


  • Concurrency can be modeled by


  • We can include one

diagram inside of


    • Enables reuse


swimlane diagrams
Swimlane diagrams
  • Start circle
  • Ends in bulls-eye
  • Decisions are

diamonds (must

always have a

guard on all


in class exercise
In-class exercise
  • Let’s do a swimlane diagram for the canonical use case U1 for the Quiz Game
sequence diagrams
Sequence diagrams
  • Used to model interactions between classes/objects
  • Emphasis on time ordering
  • Message passing

between objects

sequence diagram example
Sequence Diagram Example
  • Take notes as I describe the parts in class!

Synchronous message

Asynchronous message

Return message

messages in sequence diagrams
Messages in sequence diagrams
  • Messages, along horizontal lines, correspond to operations in your class diagram; i.e. they are method calls
  • Three main types
    • Synchronous: expects return
    • Asynchronous: does not expect return
    • Return argument: dashed line

Synchronous message

Asynchronous message

Return message

bad example
Bad Example!
  • What are the problems here?
in class exercise1
In-class exercise
  • Let’s do a sequence diagram for the canonical use case U1 for the Quiz Game
state diagrams
State diagrams
  • Once sequence diagrams have been constructed for each use case, a state diagram can be built for

the system

  • Can model the:
    • State of each class
    • State of the system

as viewed from

the outside

state diagram syntax
State diagram syntax

State Name (verb in current tense)

(Optional) actions happening during state

[age <= 20]

[age > 20]

[age <= 20]/setFlag(false)

Guards: Use to describe event that causes a state transition happens (ALL transitions should have guards)

Name Examples:



updating status

Action: If something happens while transitioning to another state. (Optional)

  • What are some states for an ATM?
    • For the class CheckingAccount?
    • For the machine itself as viewed by a customer?
  • What are the triggers and transitions between theses states?
team exercise
  • Examine the Quiz Game description/use cases
  • In your teams, come up with at least:
    • One swimlane diagram
    • One sequence diagram
    • One state diagram for a class
    • One state diagram for the system
  • Turn in this assignment through XP-Dev