Class Diagram UML Annotations Example: cs.gordon.edu/courses/cps211/ATMExamp le/ClassDiagram.html cs.gordon.edu/courses/cps211/ATMExamp.

Slides:



Advertisements
Similar presentations
UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
Advertisements

UML Class Diagrams. Represent the (static) structure of the system GeneralIn JavaIn C++ NameNameName StateVariablesMembers BehaviorMethodsFunctions.
Jump into Release 1 Pepper. Goals for End of Class Project delivery Diagrams (new class & firm state, use, context, sequence) Agile cycles with SCRUM.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Architectural Modeling Notations.
Unified Modeling Language
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
Jan Ron McFadyen1 Singleton To guarantee that there is at most one instance of a class we can apply the singleton pattern. Singleton Static.
A File System. A Programming Interface We will model the programming interface to a file system. This is a list of operations upon the file system, complete.
Design Patterns in Java Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
 2008 Pearson Education, Inc. All rights reserved Introduction to Classes and Objects.
MORE ON CLASS MODELS Lecture Outline Aggregation and composition Roles Navigability Qualified association Derived association Constraints Association.
 2008 Pearson Education, Inc. All rights reserved Introduction to Classes and Objects.
UML Examples Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Week 3 Recap CSE 115 – Spring Constructor Special capability of a class that sets up the initial state of the object. Constructor definitions are.
Modelling classes Drawing a Class Diagram. Class diagram First pick the classes –Choose relevant nouns, which have attributes and operations. Find the.
Winter 2007ACS-3913 Ron McFadyen1 Singleton To guarantee that there is at most one instance of a class we can apply the singleton pattern. Singleton Static.
Sequence diagrams Chapter 5 Sommerville. Sequence diagrams Sequence diagrams are part of the UML and are used to model the interactions between the actors.
UML for Java Programmers Object Mentor, Inc. Copyright  by Object Mentor, Inc All Rights Reserved
 2008 Pearson Education, Inc. All rights reserved (Optional) Software Engineering Case Study: Identifying the Classes in the ATM Requirements.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Architecture: Component and Deployment Diagrams Patrick Bailey Keith Vander Linden Calvin College.
Chapter 14 – Object Oriented Design. Copy Constructor u Called with an object as an argument u General declarator Class :: Class (Class& alias) –Class.
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Chapter 7 – Design and Implementation part 1 Credits to Sommerville book, Dr. Chays and Russell C. Bjork of Gordon College in MA 1Chapter 7 Design and.
Chapter 5 – System Modeling
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Lab 04.
7-1 © Prentice Hall, 2007 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Unit 3 Conceptual Data Modeling. Key Concepts Conceptual data modeling process Classes and objects Attributes Identifiers, candidate keys, and primary.
7-1 © Prentice Hall, 2007 Week 5: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Unit 1 INTRODUCTION TO MODELING AND CLASS MODEL Ref : L7-UML.PDF.
1 Class Diagrams: Advanced Concepts. 2 Overview Class diagrams are the most commonly used diagrams in UML. Class diagrams are the most commonly used diagrams.
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
UML Diagrams: The Static Model Class Diagrams. The Static Model Define the static structure of the logical model Represent classes, class hierarchies.
Prezi is a flash-based presentation software and storytelling tool for exploring and sharing ideas upon a virtual canvas.presentation software storytelling.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Advanced UML Class Diagrams.
Periodic Table How to Draw Bohr Diagrams.
1 Introduction to Classes and Objects Chapter 3 Introduction to Classes and Objects Chapter 3.
PROG Object Oriented Programming II With Java PROG Object Oriented Programming II With Java Class Relationships.
 C-style pointer-based arrays  Have great potential for errors and several shortcomings  C++ does not check whether subscripts fall outside the range.
Design Jon Walker. More UML ● What is UML again?
Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
Class and Sequence diagrams UML notation SE-2030 Dr. Mark L. Hornick 1.
Chapter 3 Class Diagrams. 2 Outline Class Basics Class Basics Classes Classes Association Association Multiplicity Multiplicity Inheritance Inheritance.
CS212: Object Oriented Analysis and Design Lecture 33: Class and Sequence Diagram.
UML Class Diagram notation Indicating relationships between classes SE-2030 Dr. Mark L. Hornick 1.
UML Part 1: Class Diagrams. Introduction UML stands for Unified Modeling Language. It represents a unification of the concepts and notations presented.
2D Design – A Guide! SECTION 1.
Triangle Inequality Day Two Notes Name:________________________ Date:_________________________ Do Now: 1. Try to construct a triangle with sides of the.
UML Fundamental Elements. Structural Elements Represent abstractions in our system. Elements that encapsulate the system's set of behaviors. Structural.
Software Modelling Class Diagram. Class Diagrams The main building block in object oriented modeling They are used both for general conceptual modeling.
Adobe Illustrator CS Design Professional WITH ILLUSTRATOR GETTING STARTED.
Method – Notation 8 Hours.
Activity Diagram.
Business Process and Functional Modeling
Chapter 3 DOCUMENTING ACCOUNTING SYSTEMS
CHAPTER
UML Diagrams: Class Diagrams The Static Analysis Model
Use Case Model.
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
UML Diagrams: The Static Model Class Diagrams
Software Engineering Lecture #11.
Sending your APEX assignments through is as simple as 1, 2, 3
Systems Analysis and Design With UML 2
CIS 375 Bruce R. Maxim UM-Dearborn
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Periodic Table Study Guide
9-4 Operations with Functions
Object Oriented System Design Class Diagrams
9-4 Operations with Functions
Warmup Which of the 4 sorting algorithms uses recursion?
Presentation transcript:

Class Diagram UML Annotations Example: cs.gordon.edu/courses/cps211/ATMExamp le/ClassDiagram.html cs.gordon.edu/courses/cps211/ATMExamp le/ClassDiagram.html Diamond Big Open Triangle Small Arrow Dotted line reference.htmlhttp:// reference.html

ATM – check Bjork’s design  Class diagram Annotations  Diamond  Diamond attached to the class that contains another class.  Often read as “has a “ from the diamond side to the non-diamond, and “is part of” from the non- diamond to the diamond.  Filled diamond means the part cannot exist without the container. If the container is deleted, delete the parts. Chapter 7 Design and implementation2

ATM – check Bjork’s design – more annotations  Class diagram Annotations  Triangle  Triangle attached to the whole in an “is a “ relationship.  The class not touching the triangle “is a “ the class touching the triangle.  The class touching the triangle “can be a “ the class not touching the triangle (“but it will not always be one”) Chapter 7 Design and implementation3

ATM – check Bjork’s design – more annotations  Class diagram Annotations  Small arrow  Two classes are related, but only one knows the relationship exists  The class without the arrow knows the one with the arrow exists  Solid line – the arrow side is contained inside the other side  Dotted line – just has a weak relationship with (maybe creates it during a method) Chapter 7 Design and implementation4

ATM – check Bjork’s design – more annotations  Class diagram Annotations  Dotted line - association  To small arrow – depends on the small arrow side  Non-arrow side “somehow depends upon” arrow side  (small arrow side may be an interface)  Maybe “uses’, calls, creates, sends, instead of “depends upon”  To large arrow - realizes (implements or executes)  Non arrow side implements or executes arrow side Chapter 7 Design and implementation5

Inventory UML Simple Product is a product manager A product manager can be a Simple Product manager ProductManager knows Product exists, but Product does not know. PM changes product

Try one (observer) Concrete Observer is a Observer Concerted subject is the information being observed Concrete observer holds one copy of the subject's state Concrete subject is a subject Subject has an observer (diamond) Observer is part of a subject (diamond) Observer is owned by Subject (filled circle)

One More - File Inventory All these files are types of Inventory Items Directory and path are inventory containers Items and containers are inventory elements Elements are part of inventory container, and inventory model and should be deleted when container gone An element has a inventory relationship, which deletes when the element is gone