Slide 16B.51 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering.

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

1 Behavioral Modeling Chapter 8. 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Object-Oriented Analysis and Design
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Slide 6B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 11C.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 11D.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 10A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Slide 10B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007.
1 More on UML Xiaojun Qi. 2 The Current Version of UML Like all modern computer languages, UML is constantly changing –When this book was written, the.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
Objectives Explain the purpose and objectives of object- oriented design Develop design class diagrams Develop interaction diagrams based on the principles.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
SE-565 Software System Requirements More UML Diagrams.
An Introduction to Rational Rose Real-Time
Slide 12E.121 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
Unified Modeling Language
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Slide 16A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering.
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.
Slide 15.1 Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. Object-Oriented Software Engineering WCB/McGraw-Hill, 2008 Stephen.
Data Flow Diagrams.
Introduction to UML By: Prof. Aiman Hanna Department of Computer Science, Concordia University, Montreal, Canada.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Unified Modeling Language, Version 2.0
Slide 10A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Object-Oriented Systems Analysis and Design Mr Gavuna
1 Analysis Extracting from Use Cases to Create Diagrams.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
Behavioral Modeling Chapter 8.
Software Engineering Prof. Ing. Ivo Vondrak, CSc. Dept. of Computer Science Technical University of Ostrava
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
ניתוח מערכות מידע 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.
Slide 12A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
1 System Analysis and Design Using UML INSTRUCTOR: Jesmin Akhter Lecturer, IIT, JU.
2 2009/10 Object Oriented Technology 1 Topic 2: Introduction to Object-Oriented Approach Reference: u Ch.16 Current Trends in System Development (Satzinger:
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Information System Design IT60105
Chapter 7 The Object-Oriented Approach to Requirements.
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School.
Design Jon Walker. More UML ● What is UML again?
SWT - Diagrammatics Lecture 4/4 - Diagramming in OO Software Development - partB 4-May-2000.
Unified Modeling Language. Object Oriented Methods ► What are object-oriented (OO) methods?  OO methods provide a set of techniques for analyzing, decomposing,
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
Slide 10A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
CIM LAB MEETING Presentation on UML Rakesh Mopidevi Kwangyeol Ryu.
OMT Modeling 1. Object Model : presented by the object model and the data dictionary. 2. Dynamic Model: presented by the state diagrams and event flow.
Lecture 9-1 : Intro. to UML (Unified Modeling Language)
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
COP 3331 OBJECT-ORIENTED ANALYSIS AND DESIGN Bob Myers Department of Computer Science.
Slide 12D.88 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
1 Unified Modeling Language, Version 2.0 Chapter 2.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Slide 12F.135 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
Technical Module C Object Modeling Objects Object – a valuable resource: Money (Account Receivable) Material (Product) Machines (Delivery Truck) Personnel.
Introduction to UML and Rational Rose UML - Unified Modeling Language Rational Rose 98 - a GUI tool to systematically develop software through the following.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
UML Activity and Sequence Diagrams David Millard
UML (Unified Modeling Language)
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
UML (Unified Modeling Language)
Object-Oriented and Classical Software Engineering Eighth Edition, WCB/McGraw-Hill, 2011 Stephen R. Schach.
Presentation transcript:

Slide 16B.51 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering

Slide 16B.52 © The McGraw-Hill Companies, 2005 CHAPTER 16 — Unit B MORE ON UML

Slide 16B.53 © The McGraw-Hill Companies, 2005 Continued from Unit 16B

Slide 16B.54 © The McGraw-Hill Companies, Statecharts l Statechart with guards Figure 16.16

Slide 16B.55 © The McGraw-Hill Companies, 2005 Statecharts (contd) l An event also causes transitions between states l Example: The receipt of a message Figure 16.17

Slide 16B.56 © The McGraw-Hill Companies, 2005 Statecharts (contd) l The elevator is in state Elevator Moving  It performs operation »Move up one floor while guard [no message received yet] remains true, until it receives the message »Elevator has arrived at floor

Slide 16B.57 © The McGraw-Hill Companies, 2005 Statecharts (contd) l Receipt of this message [event] causes the guard to be false l It also enables a transition to state Stopped at Floor  In this state, activity »Open the elevator doors is performed

Slide 16B.58 © The McGraw-Hill Companies, 2005 Statecharts (contd) l The most general form of a transition label is »event [guard] / action  If »event has taken place and »[guard] is true, the transition occurs, and, while it is occurring, »action is performed

Slide 16B.59 © The McGraw-Hill Companies, 2005 Statecharts (contd) l Equivalent statement with the most general transition Figure 16.18

Slide 16B.60 © The McGraw-Hill Companies, 2005 Statecharts (contd) l The transition label is  Elevator has arrived at floor [a message has been received] / Open the elevator doors l The guard  [a message has been received] is true when the event  Elevator has arrived at floor has occurred and the message has been sent l The action to be taken is  Open the elevator doors

Slide 16B.61 © The McGraw-Hill Companies, 2005 Statecharts (contd) l There are two places where an action can be performed in a statechart  When a state is entered »Activity  As part of a transition »Action l Technical difference:  An activity can take several seconds  An action takes places essentially instantaneously

Slide 16B.62 © The McGraw-Hill Companies, 2005 Statecharts (contd) l An event can be specified in terms of words like “when” or “after” l Example:  when (cost > 1000) or after (2.5 seconds)

Slide 16B.63 © The McGraw-Hill Companies, 2005 Statecharts (contd) l Superstates combine related states Figure 16.19

Slide 16B.64 © The McGraw-Hill Companies, 2005 Statecharts (contd) l States A, B, C, and D all have transitions to Next State l Combine them into superstate ABCD Combined  Now there is only one transition  The number of arrows is reduced from four to only one l States A, B, C, and D all still exist in their own right

Slide 16B.65 © The McGraw-Hill Companies, 2005 l Example: Four states are unified into Osbert Combined Statecharts (contd) Figure 16.20

Slide 16B.66 © The McGraw-Hill Companies, Activity Diagrams l Activity diagrams show how various events are coordinated  Used when activities are carried on in parallel l Example:  One diner orders chicken, the other fish  The waiter writes down their order, and hands it to the chef  The meal is served only when both dishes have been prepared

Slide 16B.67 © The McGraw-Hill Companies, 2005 Activity Diagrams (contd) l Example: Figure 16.21

Slide 16B.68 © The McGraw-Hill Companies, 2005 Activity Diagrams (contd) l A fork has  One incoming transition, and  Many outgoing transitions, each of which starts an activity to be executed in parallel with the other activities l A join has  Many incoming transitions, each of which lead from an activity executed in parallel with the other activities, and  One outgoing transition that is started when all the parallel activities have been completed

Slide 16B.69 © The McGraw-Hill Companies, 2005 Activity Diagrams (contd) l Example:  A company that assembles computers as specified by the customer Figure 16.22

Slide 16B.70 © The McGraw-Hill Companies, 2005 Activity Diagrams (contd) l The three departments involved  Assembly Department  Order Department  Accounts Receivable Department are each in their own swimlane

Slide 16B.71 © The McGraw-Hill Companies, Packages l A large information system is decomposed into relatively independent packages  UML notation for a package Figure 16.23

Slide 16B.72 © The McGraw-Hill Companies, 2005 Packages (contd) l Example showing the contents of My Package Figure 16.24

Slide 16B.73 © The McGraw-Hill Companies, Component Diagrams l A component diagram shows dependencies among software components, including  Source code (represented by a note)  Compiled code  Executable load images

Slide 16B.74 © The McGraw-Hill Companies, 2005 Component Diagrams (contd) l Example: Figure 16.25

Slide 16B.75 © The McGraw-Hill Companies, Deployment Diagrams l A deployment diagram shows on which hardware component each software component is installed (or deployed) l It also shows the communication links between the hardware components

Slide 16B.76 © The McGraw-Hill Companies, 2005 Deployment Diagrams (contd) l Example: Figure 16.26

Slide 16B.77 © The McGraw-Hill Companies, Review of UML Diagrams l Some diagrams that could be confused include:  A use case models the interaction between actors and the information system  A use-case diagram is a single diagram that incorporates a number of use cases  A class diagram is a model of the classes showing the static relationships between them »Including association and generalization

Slide 16B.78 © The McGraw-Hill Companies, 2005 Review of UML Diagrams l A statechart shows  States (specific values of attributes of objects),  Events that cause transitions between states (subject to guards), and  Actions taken by objects l An interaction diagram (sequence diagram or collaboration diagram) shows how objects interact as messages are passed between them l An activity diagram shows how events that occur at the same time are coordinated

Slide 16B.79 © The McGraw-Hill Companies, UML and Iteration l Every UML diagram consists of a small required part plus any number of options  Not every feature of UML is applicable to every information system  To perform iteration and incrementation, features have to be added stepwise to diagrams l This is one of the many reasons why UML is so well suited to the Unified Process