Object-Oriented Design Lecture 19: Use Case Realization Design - - PowerPoint PPT Presentation

object oriented design
SMART_READER_LITE
LIVE PREVIEW

Object-Oriented Design Lecture 19: Use Case Realization Design - - PowerPoint PPT Presentation

Object-Oriented Design Lecture 19: Use Case Realization Design Sharif University of Technology 1 Department of Computer Engineering Design Workflow: Design a Use Case Place in the Design Workflow: Architectural Design Design a


slide-1
SLIDE 1

Department of Computer Engineering

Object-Oriented Design

Lecture 19: Use Case Realization – Design

Sharif University of Technology 1

slide-2
SLIDE 2

Design Workflow: Design a Use Case

  • Place in the Design Workflow:
  • Architectural Design
  • Design a Use Case
  • Design a Class
  • Design a Subsystem
  • The activity Design a Use Case is concerned with finding the design

classes, interfaces, and components that interact to provide the behavior specified by a use case.

Sharif University of Technology 2

slide-3
SLIDE 3

Use Case Realizations - Design

  • Use case realization in design is really just an extension of use case

realization in analysis.

  • Use case realizations-design are collaborations of design objects and

classes that realize a use case; models consist of:

  • design interaction diagrams - these are refinements of analysis interaction

diagrams;

  • design class diagrams - these are refinements of analysis class diagrams.
  • Interaction diagrams can be used in design to model central mechanisms

such as object persistence; these mechanisms may cut across many use cases.

Sharif University of Technology 3

slide-4
SLIDE 4

Interaction Diagrams: Example – Use Case

Sharif University of Technology 4

slide-5
SLIDE 5

Interaction Diagrams: Example – Analysis

Sharif University of Technology 5

slide-6
SLIDE 6

Interaction Diagrams: Example – Design

Sharif University of Technology 6

slide-7
SLIDE 7

Modeling Concurrency

  • Use active classes and objects.
  • Sequence diagrams:
  • par - all operands execute in parallel;
  • critical - the operand executes atomically without interruption.
  • Communication diagrams:
  • postfix the sequence number with a label to indicate the thread of control.
  • Activity diagrams:
  • forks;
  • joins.

Sharif University of Technology 7

slide-8
SLIDE 8

Concurrency: Sample System – Use Case Diagram

Sharif University of Technology 8

slide-9
SLIDE 9

Concurrency: Sample System – Use Cases

Sharif University of Technology 9

slide-10
SLIDE 10

Concurrency: Active Classes

Sharif University of Technology 10

slide-11
SLIDE 11

Concurrency: Interaction Diagrams (1)

Sharif University of Technology 11

slide-12
SLIDE 12

Concurrency: Interaction Diagrams (2)

Sharif University of Technology 12

slide-13
SLIDE 13

Concurrency: Communication Diagrams

Sharif University of Technology 13

slide-14
SLIDE 14

Subsystem Interaction Diagrams

  • Subsystem interaction diagrams show the interactions between

the different parts of the system at a high level:

  • they may contain actors, subsystems, components, and classes;
  • you can show parts of the subsystem (e.g., provided interfaces) in boxes

hanging down below the subsystem.

Sharif University of Technology 14

slide-15
SLIDE 15

Timing Diagrams

  • Timing diagrams - model timing constraints:
  • very useful for modeling real-time and embedded systems;
  • time increases horizontally from left to right;
  • lifelines, states, and conditions are placed vertically;
  • transitions between states or conditions are shown as a graph;
  • timing constraints and events can be shown.

Sharif University of Technology 15

slide-16
SLIDE 16

Timing Diagrams: Notation

Sharif University of Technology 16

slide-17
SLIDE 17

Timing Diagrams: Compact Form

  • The compact form emphasizes relative time.

Sharif University of Technology 17

slide-18
SLIDE 18

Timing Diagrams: Complex Timing Constraints

Sharif University of Technology 18

slide-19
SLIDE 19

Reference

  • Arlow, J., Neustadt, I., UML 2 and the Unified Process: Practical Object-

Oriented Analysis and Design, 2nd Ed. Addison-Wesley, 2005.

Sharif University of Technology 19