11 Software Engineering Dr. K. T. Tsang Lecture 6 Interaction Diagrams

Slides:



Advertisements
Similar presentations
© 2005 by Prentice Hall Appendix 3 Object-Oriented Analysis and Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George.
Advertisements

UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
Flow Chart.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
1 Introduction to modeling Process modelling. 2 Where are we? #TitleDate 1Introduction ORM modeling Relational modeling
Software Engineering COMP 201
Essentials of interaction diagrams Lecture 23 & 24.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
Activity Diagrams. What is Activity Diagrams?  Activity diagrams are a technique to describe procedural logic, business process, and work flow.  An.
Sequence Diagram. What is Sequence Diagram?  Sequence Diagram is a dynamic model of a use case, showing the interaction among classes during a specified.
Requirements Analysis Activity Diagrams b511.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
Activity Diagrams Derived from several techniques: Event diagrams of Jim Odell SDL state modeling techniques Workflow modeling Petri nets Especially useful.
Modern Systems Analysis and Design Fifth Edition Jeffrey A
Use Case Diagrams. Use Case Use case A view to system seen from outside(user) User’s requirements on system A set of scenario for an actor to achieve.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L3-6b-S1 Sequence Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
COMP1007 Intro to Requirements Analysis © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Introduction to Requirements Analysis Lecture.
SE-565 Software System Requirements More UML Diagrams.
UML. Overview of UML Diagrams Structural : element of spec. irrespective of time Class Component Deployment Object Composite structure Package Behavioral.
Unified Modeling Language
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
Interaction Modeling. Sequence Models  There are two kinds of sequence models: scenarios and sequence diagrams  A scenario is a sequence of events that.
CS3773 Software Engineering
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Lecture 6 Unified Modeling Language (UML)
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.
1 SAD2 - UML 2 nd Lecture Sequence Diagram and other dynamic views Lecturer: Dr Dimitrios Makris
UNIT- Venkata Ratnam K1 BEHAVIORAL MODELING.
1 Sequence Diagrams (Based on Stevens and Pooley (2006, Chapters 9, 10) and Fowler (2004, Chapter 4)) David Meredith Aalborg University.
11 Software Engineering Dr. K. T. Tsang Lecture 9 Advance State Modeling
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence Diagrams.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
9-1 © Prentice Hall, 2007 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
© 2008 Prentice Hall, Ovidiu Noran Lecture 7b 1 Modelling OO Logic Requirements: Sequence Diagrams and Activity Diagrams (Textbook Chapter 8, Appendix)
Design Jon Walker. More UML ● What is UML again?
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
Chapter 7 Appendix B Object-Oriented Analysis and Design: Activity Diagrams Modern Systems Analysis and Design Seventh Edition Jeffrey A. Hoffer Joey F.
Lecture 2: Information Engineering Dr. Taysir Hassan Abdel Hamid October 12, 2015.
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Interaction Models (2): Activity Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh.
Business Process and Functional Modeling
Embedded Systems Software Engineering
Appendix 3 Object-Oriented Analysis and Design
Analysis Classes Unit 5.
UML Diagrams By Daniel Damaris Novarianto S..
Subject Name: Object oriented Modeling and Design
Activity and State Transition Diagram
Visit for more Learning Resources
UML Diagrams Jung Woo.
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Business System Development
UML Activity Diagrams.
Lecture 4: Activity Diagrams
Software System Engineering
Process Modeling: Activity/Swimlane Diagrams
Object-Oriented Analysis and Design: Activity Diagrams
Activity Diagrams.
Structure Charts Agenda: What are Structure Charts
Appendix 3 Object-Oriented Analysis and Design
Software System Engineering
Interaction Models (2): Activity Diagrams
Object-Oriented Analysis and Design: Activity Diagrams
Presentation transcript:

11 Software Engineering Dr. K. T. Tsang Lecture 6 Interaction Diagrams

2 Interaction diagrams Sequence diagrams – ordered by time –Shows the flow of logic through a scenario Collaboration diagrams – shows the communications among objects –Use to assess the impact of interactions Activity diagrams – focuses on the flow of activities, useful for understanding complex procedures

3 Sequence diagrams Describe the time sequence of interactions among classes Contain these elements: –Class roles –Lifelines –Activations –Messages B&R 7.2

4 Example class model..1 Project Activity Resource Task * * Assigned to Filled diamond – composition relationship

5 Example class model..2 Skill Resource HourlySalaried Resource-Skill * *

6 Sequence diagrams Example..1 Res Manager Win :UserInterface :Resource:Skill:Resource-skill :Resource Manager Find resource by name Find resource Find skill assign skill to resource Find skill by name Assign skill to resource [Resource is not assigned skill]

7 Proj Manager Win :UserInterface :Project:Activity:Task :Project Manager Find project by name Remove project Find activity by project Remove task Find task by activity Remove activity Remove project No more task No more activity Sequence diagrams Example..2

8 Collaboration diagrams Describe interactions among classes and associations Contains these elements –Class roles –Association roles –Messages flows

9 Collaboration diagrams Example..1

10 Collaboration diagrams Example..2

11 Collaboration diagrams Example: Remove project

12 Activity diagrams Shows the sequence of steps that make up a complex process, like a flowchart Shows flows of control similar to a sequence diagram, but focuses on operation rather than on objects Each activity is represented by an elongated ovals p.140, 7.3; p.155, 8.3 B&R

13 Activity diagrams : example 1

14 Branches –Symbol : Hollow diamond –Condition [square bracket] Initiation & Termination – solid circle, a bull’s eye (a solid circle surrounded by a a hollow circle) Concurrent activities –One activity can be split into several concurrent activities (a fork of control) –Then be combined into a single activity (a merge of control) –A fork or a merge is shown by a synchronization bar (a heavy line with arrows coming in or out of it) Activity diagrams.. 2

15 Activity diagrams : example 2

16 Sending & receiving signals –Convex pentagon, sending –Concave pentagon, receiving Swimlanes – shows organizational responsibility for activities Activity diagrams.. 3

17 Activity diagrams Sending & receiving signals

18 flight attendant Ground crew Catering Activity diagrams: Swimlanes

19 Reading for this lecture Chapter 7 & 8, Blaha & Rumbaugh Study the interaction diagrams in the examples – essBookExample/index.html – Example/index.html