Docsity

Use Case Realizations-Object-Oriented Design-Lecture 13 Slides-Computer Engineering, Slides of Object Oriented Analysis and Design

Partial preview of the text

Download Use Case Realizations-Object-Oriented Design-Lecture 13 Slides-Computer Engineering and more Slides Object Oriented Analysis and Design in PDF only on Docsity!

Department of Computer Engineering

Sharif University of Technology

Object-Oriented Design

Lecturer: Raman Ramsin

Lecture 13 :

Use Case Realizations – Part 1

Department of Computer Engineering

Sharif University of Technology

Analysis Workflow: Analyze a Use Case  The analysis workflow consists of the following activities:  Architectural analysis  Analyze a use caseOutputs:analysis classesuse case realizations  Analyze a class  Analyze a package

Department of Computer Engineering

Sharif University of Technology

Lifelines  A lifeline represents a participant in an interaction - how an instance of a classifier participates in the interaction.  Each lifeline has an optional name, a type, and an optional selector.  Each lifeline is drawn with the same icon as its type.  Underline the name, type, and selector to show actual instances.

Department of Computer Engineering

Sharif University of Technology

Messages  A message represents a specific kind of communication between two lifelines in an interaction.

Department of Computer Engineering

Sharif University of Technology

Sequence Diagrams: General Notation  Time runs top to bottom.  Lifelines run left to right:  lifelines have dashed vertical tails that indicate the duration of the lifeline;  lifelines may have activations to indicate when the lifeline has focus of control;  organize lifelines to minimize the number of crossing lines.  Place explanatory scripts down the left-hand side of the sequence diagram.  State invariants - place state symbols on the lifeline at the appropriate points.  Constraints - place constraints in {} on or near lifelines.

Department of Computer Engineering

Sharif University of Technology

Sequence Diagrams: Realization Example 1

Department of Computer Engineering

Sharif University of Technology

Sequence Diagrams: Realization Example 3 Use Case

Department of Computer Engineering

Sharif University of Technology

Sequence Diagrams: Realization Example 3 Sequence Diagram