object oriented design
play

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


  1. Object-Oriented Design Lecture 19: Use Case Realization – Design Sharif University of Technology 1 Department of Computer Engineering

  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. 2 Sharif University of Technology

  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. 3 Sharif University of Technology

  4. Interaction Diagrams: Example – Use Case 4 Sharif University of Technology

  5. Interaction Diagrams: Example – Analysis 5 Sharif University of Technology

  6. Interaction Diagrams: Example – Design 6 Sharif University of Technology

  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. 7 Sharif University of Technology

  8. Concurrency: Sample System – Use Case Diagram 8 Sharif University of Technology

  9. Concurrency: Sample System – Use Cases 9 Sharif University of Technology

  10. Concurrency: Active Classes 10 Sharif University of Technology

  11. Concurrency: Interaction Diagrams (1) 11 Sharif University of Technology

  12. Concurrency: Interaction Diagrams (2) 12 Sharif University of Technology

  13. Concurrency: Communication Diagrams 13 Sharif University of Technology

  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. 14 Sharif University of Technology

  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. 15 Sharif University of Technology

  16. Timing Diagrams: Notation 16 Sharif University of Technology

  17. Timing Diagrams: Compact Form • The compact form emphasizes relative time. 17 Sharif University of Technology

  18. Timing Diagrams: Complex Timing Constraints 18 Sharif University of Technology

  19. Reference • Arlow, J., Neustadt, I., UML 2 and the Unified Process: Practical Object- Oriented Analysis and Design , 2 nd Ed. Addison-Wesley, 2005. 19 Sharif University of Technology

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend