Object-Orientated Analysis, Design and Programming

Slides:



Advertisements
Similar presentations
1 Behavioral Modeling Chapter 8. 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes.
Advertisements

Summary Class responsibility cards can be used to help allocate responsibilities between different classes. The use of stereotype classes, such as entity,
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Slide 1 Systems Analysis & Design CS183 Spring Semester Dr. Jonathan Y. Clark Course Website:
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Object Interaction Models - Review The use case and its scenarios serve as a vehicle for organizing the object interactions that take place. Each scenario.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
1 UML Component and Deployment Diagrams. Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario.
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
7M822 UML Interaction Diagrams 25 November 2010.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
Object-Oriented Analysis and Design
2005/05/25 Unified Modeling Lanauage 1 Introduction to Unified Modeling Language (UML) – Part One Ku-Yaw Chang Assistant Professor.
Unified Modeling Language, Version 2.0
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 25. Review Design Level Class Diagram Identifying classes/Operations/Attributes Associations – Simple associations.
Dynamic Modeling Chapter 11 Part of Analysis Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Behavioral Modeling: Sequence and Communication Diagrams Copyright © 2009 John Wiley & Sons, Inc. Copyright © 2005 Pearson Education Copyright © 2009 Kannan.
Behavioral Modeling Chapter 8.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
L6-S1 UML Overview 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
1 An Introduction to UML Interaction (Sequence and Communication) Diagrams Georgia State University CIS 3300 Spring, 2009.
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes.
Behavioral Modeling Chapter 8
Logical view –show classes and objects Process view –models the executables Implementation view –Files, configuration and versions Deployment view –Physical.
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
1 Unified Modeling Language, Version 2.0 Chapter 2.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
Object-Orientated Analysis, Design and Programming
Object-Orientated Analysis, Design and Programming
Instructor: Dr. Hany H. Ammar
Roberta Roth, Alan Dennis, and Barbara Haley Wixom
The Movement To Objects
Systems Analysis and Design with UML Version 2.0, Second Edition
Systems Analysis and Design
Systems Analysis and Design With UML 2
Dynamic Modeling of Banking System Case Study - II
Systems Analysis and Design
Communication DIAGRAM
Behavioral Modeling.
UML dynamic Modeling (Behavior Diagram)
Software Architecture & Design Pattern
Recall The Team Skills Analyzing the Problem (with 5 steps)
Object-Oriented Analysis
Princess Nourah bint Abdulrahman University
Interactions.
Princess Nourah bint Abdulrahman University
UML Overview Part 2.
Sequence Diagrams.
Unified Modeling Language
IMAT5205 Systems Analysis and Design
Interaction diagrams.
Object Interaction Diagrams
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
Software Design Lecture : 15.
Communication DIAGRAM
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Sequence Diagrams.
Uml diagrams In ooad.
On to Object Design c. 14.
Chapter 4 Sequence Diagrams
Presentation transcript:

Object-Orientated Analysis, Design and Programming Presentation by Dr. Phil Legg Senior Lecturer Computer Science 5: Interaction Modelling Autumn 2016

Interaction Modelling An interaction is a set of messages exchanged within a collaboration. We use interaction diagrams to capture the behaviour of objects at runtime. UML interaction diagrams including sequence and communication diagrams.

Use cases, class diagrams and interaction modelling A use-case consists of related scenarios, e.g. purchase product includes: where I pay by cash, I pay with a credit card and my card is declined. The classes in the class diagram are the building blocks that are available to us to implement the functionality described in the use-case descriptions. To model the dynamic runtime interactions we work through each use case and identify exactly what messages classes will need to send each other in order to implement the required behaviour.

Interaction modelling process Use cases control the way in which the interactions between the objects are modelled The internal behavior of each use case is analyzed to help the understanding of the interactions between objects of different classes. New class responsibilities or new classes may be identified. The class diagrams must be further reviewed to identify any additional associations between classes which are implied by the interactions. The process is repeated for each use case to be modelled.

Message Passing The messaging between objects defines the interaction, the collaboration and control. An object can only be accessed by sending a message to its public interface These published services are performed by the receiving object, not the sending one. A message has a signature, being the required information to perform the service and the information delivered as a response.

Data may be passed as parameters (Method, function, and operation, may be used interchangeably!)

Use case and classes drive interaction modelling The use-cases will define the business services that the system must provide. Use-cases do not however define or describe how this will be achieved. The class diagram is the static view of the required system. The class diagram presents the building blocks (classes) and illustrates which classes interact but does not define how they interact. The interaction model defines the way in which services are provided by the objects within the system Interaction modelling integrates the class model and the use cases.

UML Interaction Diagrams Communication Diagrams: emphasize the links between the various participants and represent the object interaction for chosen threads within the required system. Sequence Diagrams: emphasize the time ordering of messages and model the object interactions

What is the sequence of activity? How actors interact with the system What is the sequence of activity?

What is the sequence of activity? How actors send messages What is the sequence of activity?

Sequence Diagram syntax

In-Class Activity Create a sequence diagram for the add film use case in the UWEfilm case study.

What is the sequence of activity? Communication Diagram What is the sequence of activity?

In-Class Activity Create a sequence diagram for the UWEfilm Customer actor use case “Purchase Advance Tickets”

Summary An interaction is a set of messages exchanged within a collaboration. Interaction diagrams describe how groups of objects collaborate in some behaviour. The use case defines WHAT is required of the system, but not HOW. The classes in the class diagram are the building blocks that are available to us to implement the functionality described in the use-case descriptions.