CS 2511 Fall 2014. UML Diagram Types  2 Main Types Structure Diagrams ○ Class Diagrams ○ Component Diagrams ○ Object Diagrams Behavior Diagrams ○ Sequence.

Slides:



Advertisements
Similar presentations
Object-Oriented Application Development Using VB.NET 1 Chapter 5 Object-Oriented Analysis and Design.
Advertisements

Unified Modeling Language
UML Class and Sequence Diagrams Violet Slides adapted from Marty Stepp, CSE 403, Winter 2012 CSE 403 Spring 2012 Anton Osobov.
Unified Modeling Language Sequence Diagrams Chapter 2 (JIA)
Design Patterns in Java Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
Unified Modeling Language (UML) Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Classes and Objects in Java
Component and Deployment Diagrams
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
Lab 6 CPIT 250 System Analysis and Design.
CS 2511 Fall UML Diagram Types  2 Main Types Structure Diagrams ○ Class Diagrams ○ Component Diagrams ○ Object Diagrams Behavior Diagrams ○ Sequence.
UML a crash course Alex Lo Brian Kiefer. Overview Classes Class Relationships Interfaces Objects States Worksheet.
SE-565 Software System Requirements More UML Diagrams.
Object-oriented design Part 4: More UML. Interfaces An interface is a language construct specific to Java Java does not support multiple inheritance Interfaces.
Unified Modeling Language
Object-Oriented Analysis and Design
Sequence Diagram Tutorial
CSC 142 B 1 CSC 142 Java objects: a first view [Reading: chapters 1 & 2]
Lecture 3: Visual Modeling & UML 1. 2 Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship via “ Modeling.
Introduction To System Analysis and Design
Computer Science 340 Software Design & Testing UML Sequence Diagrams.
Chapter Two The UML – Unified Modeling Language Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Introduction to UML: Unified Modeling Language Ric Holt U Waterloo, March 2009 CS246.
Centre for Computer Technology ICT214 Object Oriented Design and Programming Week 02 – Classes, Objects, Instances Richard Salomon and Umesh Patel Centre.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
1 UML Sequence Diagrams UML Distilled, Third Edition, Chapter 4 M. Fowler.
Singleton and Basic UML CS340100, NTHU Yoshi. What is UML Unified Modeling Language A standardized general-purpose modeling language in the field of software.
JAVA Classes Review. Definitions Class – a description of the attributes and behavior of a set of computational objects Constructor – a method that is.
BCS 2143 Object Oriented Design Using UML. Objectives Objects Interactions Finding Classes Relationship Between Classes Attribute and Operation Class.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Classes and Objects in Java
© 2004 Pearson Addison-Wesley. All rights reserved September 12, 2007 Encapsulation ComS 207: Programming I (in Java) Iowa State University, FALL 2007.
CSE 403, Spring 2008, Alverson Using UML to express Software Architecture.
CSE 403, Spring 2007, Alverson Using UML to express Software Architecture.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
Programming in Java (COP 2250) Lecture 9 Chengyong Yang Fall, 2005.
Software Engineering Lecture 8 Object-Oriented Analysis.
Coming up: Interaction Diagrams Sequence Diagrams Dan Fleck.
CS 6502-OBJECT ORIENTED ANALYSIS AND DESIGN TOTAL : 40 Questions CLASS : III CSE.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
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.
Object-Oriented Application Development Using VB.NET 1 Chapter 5 Object-Oriented Analysis and Design.
Chapter 3: Introducing the UML
Interaction Diagrams CS 124. Object collaboration A use case carried out involves objects and interaction or collaboration between these objects Method.
 What to do if you want to build a new house? › Buy a bunch of wood and nails and start immediately. › Or, put some blueprints to follow, and plan of.
Computer Programming 2 Lab (1) I.Fatimah Alzahrani.
Fall 2007 Week 9: UML Overview MSIS 670: Object-Oriented Software Engineering.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
Unified Modeling Language (UML)
Chapter 5 – System Modeling Lecture 1 1Chapter 5 System modeling.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
CS 350 – Software Design UML – The Unified Modeling Language – Chapter 2 The Unified Modeling Language is a visual language used to create models of programs.
COP 3330 Notes 4/13. Today’s Topics UML Class Diagrams.
Class Inheritance Part I
Object-Oriented Analysis and Design
UML SEQUENCE DIAGRAM.
Sequence Diagram.
Object Oriented Analysis and Design
Computing Adjusted Quiz Total Score
Corresponds with Chapter 7
Unified Modeling Language
Interaction diagrams.
class PrintOnetoTen { public static void main(String args[]) {
Basics of OOP A class is the blueprint of an object.
Review CSE116 2/21/2019 B.Ramamurthy.
Outline Anatomy of a Class Encapsulation Anatomy of a Method
Encapsulation September 13, 2006 ComS 207: Programming I (in Java)
Presentation transcript:

CS 2511 Fall 2014

UML Diagram Types  2 Main Types Structure Diagrams ○ Class Diagrams ○ Component Diagrams ○ Object Diagrams Behavior Diagrams ○ Sequence Diagrams ○ Use Case Diagrams

Sequence Diagrams sequence diagram  A sequence diagram in Unified Modeling Language (UML) is a kind of interaction diagram that shows how processes operate with one another and in what order. objects  In Java most of the interaction between processes is done via objects, and thus a sequence diagram basically shows how objects interact with other objects.

Organization Object Name: Class Name :Class NameObject Name Method Call

Some Important Points  Each use case can be depicted as a sequence diagram.  An underline with the class name and/or object name usually means that the entity being displayed is an object not a class.

Object  Each box represents an Object that is alive (i.e. it’s constructor has been called) at a particular time in the computation.  3 options to represent objects : Object Name: Class Name :Class NameObject Name

LifeLines  The time for which an object is “alive” i.e. still in scope (which means has not been garbage collected yet) is represented by a life line. smallCircle :Circle

Activation Bars  Activation bars are used to represent the time when an object is calling a method.  The activation bars ends when the method that was called returns. smallCircle :Circle myMonitor: Display methodCall( ) Returned from method

Call Arrows and Method Names  A call is represented by an arrow going from one object to another.  Method Names are represented on the call arrow. :BridgeProblem currentState :BridgeState >

Examples  Code : public static void main(String[] args) { BridgeState initialState = new BridgeState("west", "west", "west", "west", "west", 0); BridgeState finalState = new BridgeState("east", "east", "east", "east", "east", 17); initialState.display(); finalState.display(); }

Sequence Diagram initialState: BridgeState > finalState: BridgeState > display() BridgeTest1. main