State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.

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

Object-Oriented Software Engineering Visual OO Analysis and Design
Stimulate 2005 Instructor: Luz M. Quiroga University of Hawaii Information and Computer Science / Library and information Science POST.
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Essentials of interaction diagrams Lecture 23 & 24.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
Essentials of state and activity diagram Lecture 24.
Sequence Diagram. What is Sequence Diagram?  Sequence Diagram is a dynamic model of a use case, showing the interaction among classes during a specified.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
State Change Modelling. Aim: To introduce the concept and techniques for describing the changes in state that may occur to an object in its lifetime.
Modern Systems Analysis and Design Fifth Edition Jeffrey A
Object-Oriented Analysis and Design: Sequence Diagrams
SE-565 Software System Requirements More UML Diagrams.
Unified Modeling Language
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
CS3773 Software Engineering
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Lecture 6 Unified Modeling Language (UML)
Class, Sequence and UML Model.  Has actors and use cases.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Interaction diagrams Sequence and collaboration diagrams.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
The Object-Oriented Approach to Requirements
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
CSC 395 – Software Engineering Lecture 13: Object-Oriented Analysis –or– Let the Pain Begin (At Least I’m Honest!)
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
Behavioral Modeling Chapter 8.
Systems Analysis & Design 7 th Edition Chapter 5.
Systems Analysis and Design 8 th Edition Chapter 6 Object Modeling.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Lecture 8 Object-Oriented Analysis and Design 20.1 COSC4406: Software Engineering.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Interaction and Communication Diagrams Patrick Bailey Keith Vander Linden Calvin College.
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
An Introduction to the Unified Modeling Language
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
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)
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
Design Jon Walker. More UML ● What is UML again?
Sequence Diagrams CSIS3600. Sequence Diagrams A sequence diagram shows an interaction arranged in time sequence. In particular, it shows the objects participating.
Chapter 7 Appendix C Object-Oriented Analysis and Design: Sequence Diagrams Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F.
SWT - Diagrammatics Lecture 4/4 - Diagramming in OO Software Development - partB 4-May-2000.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
Chapter 3: Introducing the UML
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
 The Sequence Diagram models the collaboration of objects based on a time sequence.  It shows how the objects interact with others in a particular scenario.
Appendix Object-Oriented Analysis and Design: Use Cases and Sequence Diagrams Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
Appendix 3 Object-Oriented Analysis and Design
Chapter 11: Collaboration Diagram - PART1
Activity and State Transition Diagram
Object-Oriented Analysis and Design: Sequence Diagrams
Business System Development
Object Oriented Analysis and Design
Week 12: Activity & Sequence Diagrams
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
Chapter 20 Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Appendix 3 Object-Oriented Analysis and Design
Presentation transcript:

State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling

Stimulate 2005 Instructor: Luz M. Quiroga University of Hawaii Information and Computer Science / Library and information Science POST 314b; System Analysis and Design (SA&D) Object Oriented modeling Part 4: Dynamic modeling: state and interaction diagrams

State diagrams STATE: a condition during the life of an object during which it –Satisfies some conditions –Performs some actions –Waits for some events State transitions

State diagrams State: rectangle with round corners Event: something that takes at a certain point of time. –It triggers a state transition –It spans a period of time –Initial (solid, filled circle) and final state (bull’s eye: solid, filled circle surrounded by another circle ) –Transition depicted as solid arrow from source state to target state –Transition: labeled with name of the event, parameters of the event, [guard condition] and “/”action expression –Examples: registering to a class, dropping from a class, getting married, being hired, etc.

State diagram for the student object States, transitions, events

Sequence diagrams Depicts interaction among objects during a certain period of time –One diagram for each use case: e.g Class registration –Scenarios –Messages: e.g checkIfopen Synchronous: needs answer Simple: transfering the control –Messages have arguments –Persistent objects –Activation: time period during which the object performs an operation

Sequence diagram for a class registration scenario with prerequisites Objects, lineline, activation, messages

Dynamic Modeling: State Diagrams State –A condition during the life of an object during which it satisfies some conditions, performs some actions or waits for some events –Shown as a rectangle with rounded corners State Transition –The changes in the attribute of an object or in the links an object has with other objects –Shown as a solid arrow –Diagrammed with a guard condition and action Event –Something that takes place at a certain point in time A.8

A.9

Dynamic Modeling: Sequence Diagrams Sequence Diagram –A depiction of the interaction among objects during certain periods of time Activation –The time period during which an object performs an operation Messages –Means by which objects communicate with each other 10.10

Dynamic Modeling: Sequence Diagrams Synchronous Message –A type of message in which the caller has to wait for the receiving object to finish executing the called operation before it can resume execution itself Simple Message –A message that transfers control from the sender to the recipient without describing the details of the communication 10.11

10.12

OO paradigm: Key terms Unified Modeling Language (UML) Associations, relationships Concepts Object Object class Use case Class diagram Event Operation Sequence diagram State State transition

OO scope Source: Sinha OO Is not LIMITED to Information System

Source: Martin