Association - Multiplicity. UML and Classes, Objects and Relationships [ 2] Notes. Notes. Association - Self. Association - Self



Similar documents
ATM Case Study OBJECTIVES Pearson Education, Inc. All rights reserved Pearson Education, Inc. All rights reserved.

Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant

History OOP languages Year Language 1967 Simula Smalltalk

An Introduction To UML Class Diagrams Classes

LAB 3: Introduction to Domain Modeling and Class Diagram

Graphical Systems Modeling with UML / SysML Class diagrams

>

0 0 such that f x L whenever x a

Entity-Relationship Model. Purpose of E/R Model. Entity Sets

Lecture 12: Entity Relationship Modelling

IV. The (Extended) Entity-Relationship Model

Case studies: Outline. Requirement Engineering. Case Study: Automated Banking System. UML and Case Studies ITNP090 - Object Oriented Software Design

Glossary of Object Oriented Terms

Data Analysis 1. SET08104 Database Systems. Napier University

Using Inheritance and Polymorphism

TETRIX Add-On Extensions. Encoder Programming Guide (ROBOTC )

Applying Object-Oriented Principles to the Analysis and Design of Learning Objects

So let us begin our quest to find the holy grail of real analysis.

Chapter 8 The Enhanced Entity- Relationship (EER) Model

Concepts of Database Management Seventh Edition. Chapter 9 Database Management Approaches

Chapter 2: Entity-Relationship Model. E-R R Diagrams

2. Conceptual Modeling using the Entity-Relationship Model

Chapter 1 Fundamentals of Java Programming

UML Class Diagrams (1.8.7) 9/2/2009

UML basics. Part III: The class diagram. by Donald Bell IBM Global Services

Method To Solve Linear, Polynomial, or Absolute Value Inequalities:

The Interface Concept

Entity - Relationship Modelling

Exercise 1: Relational Model

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

Mathematics (Project Maths Phase 2)

11 November

Zeros of Polynomial Functions

How To Design Software

Exercise 8: SRS - Student Registration System

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #5: En-ty/Rela-onal Models- - - Part 1

Visio Tutorial 1BB50 Data and Object Modeling (DOM) How to make a UML Class Diagram 2004/2005

Introducing Variance into the Java Programming Language DRAFT

Agile Software Development

Lecture 16 : Relations and Functions DRAFT

Tutorial - Building a Use Case Diagram

Database Design Methodology

Review: Participation Constraints

Introduction. UML = Unified Modeling Language It is a standardized visual modeling language.

Access Tutorial 3: Relationships

UML Diagram Types. Use Cases do the Following. Use Case Diagram

XV. The Entity-Relationship Model

Data Modeling: Part 1. Entity Relationship (ER) Model

JIDE Gantt Chart Developer Guide

Unit 2.1. Data Analysis 1 - V Data Analysis 1. Dr Gordon Russell, Napier University

Agenda. What is and Why Polymorphism? Examples of Polymorphism in Java programs 3 forms of Polymorphism

SE 360 Advances in Software Development Object Oriented Development in Java. Polymorphism. Dr. Senem Kumova Metin

Practice with Proofs

1. Then f has a relative maximum at x = c if f(c) f(x) for all values of x in some

CSE 1020 Introduction to Computer Science I A sample nal exam

Object Oriented Software Models

ios App Development for Everyone

Design and UML Class Diagrams

The Entity-Relationship Model

Databases and DBMS. What is a Database?

SYLLABUS CIS 3660: OBJECT-ORIENTED SYSTEM ANALYSIS AND DESIGN SPRING 2010

Database Management Systems

Data Modeling Basics

The Entity-Relationship Model

CEON ABAP Eclipse Editor White Paper

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Object-Oriented Data Modeling

Playing with Numbers

Object Oriented System Analyze and Design of Revenue Information System using UML

III. Class and Object Diagrams

Structural Modeling and Analysis

Unit 21 - Creating a Button in Macromedia Flash

Lectures 2 & 3: Introduction to Modeling & UML. Getting started

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Part I. Multiple Choice Questions (2 points each):

AP Computer Science A 2004 Free-Response Questions

Design by Contract beyond class modelling

6.4 Logarithmic Equations and Inequalities

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

Decimals and Percentages

Analysis and Design with UML

Cubic Functions: Global Analysis

Programming Languages Featherweight Java David Walker

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER

Largest Fixed-Aspect, Axis-Aligned Rectangle

Visual Logic Instructions and Assignments

Developing Entity Relationship Diagrams (ERDs)

Explanation of Testing Accommodations for Students with Disabilities - Assistive Technology Accommodations

Programming Language Constructs as Basis for Software Architectures

Assignment # 2: Design Patterns and GUIs

Decimal Notations for Fractions Number and Operations Fractions /4.NF

Hypothesis testing - Steps

Actor business cards design, tamil actors side business, tax write offs for actors and models, actor sudeep business, actor jayaram business.

Binomial Probability Distribution

135 Final Review. Determine whether the graph is symmetric with respect to the x-axis, the y-axis, and/or the origin.

Software Engineering. System Models. Based on Software Engineering, 7 th Edition by Ian Sommerville

Transcription:

- Multiplicity UML and Classes, Objects and Relationships [ 2] Defining Domain Models Using Class Diagrams A can take many Courses and many s can be enrolled in one Course. Alice: takes * * 254: Course Course Jill: 253: Course 2 Notes One class can be relate to another in a One-to-one One-to-many One-to-one or more One-to-zero or one One-to-a bounded interval (one-to-two through twenty) One-to-exactly n One-to-a set of choices (one-to-five or eight) Notes Multiplicity can be expressed as, Exactly one - Zero or one - 0.. Many - 0..* or * One or more - Exact Number - e.g. 3..4 or 6 Or a complex relationship e.g. 0.., 3..4, 6..* would mean any number of objects other than 2 or 5 3 4 - Self - Self An association that connects a class to itself is called a self association. A Company has Employees. A single manager is responsible for up to 0 workers. Responsible for manager 0..0 Employee worker 5 6

- Multiplicity Team Member 0 A cricket team has players. One of them is the captain. A player can play only for one Team. The captain leads the team members. Player Captain Captain 0.. member of Team Leads 7 8 (Inheritance) (Inheritance) e.g. Child class is a special case of the parent class SuperClass Graphic SubClass SubClass2 9 0 Inheritance - Implementation Abstract Class public class { Shape public class Graphic extends { Rectangle 2

Abstract Methods (Operations) Shape Abstract class and method Implementation public abstract class Shape { public abstract ; //declare without implementation Rectangle public class { public {... 3 4 - Interface Interface is a set of operation the class Keyboard brandname numofkeys ctl() pagedown() carries out <<interface>> TypeWriter keystroke() OR Keyboard brandname numofkeys ctl() pagedown() TypeWriter 5 6 - Implementation public interface TypeWriter { void keystroke() public class KeyBoard implements TypeWriter { public void keystroke(){ 7 8

cont Change in specification of one class can change the other class. This can happen when one class is using another class. Move(p:Point) Point relationship can be used to show relationships between classes and objects. < <instanceof> > < < instanceof> > circlea: circleb: 9 20 Class Diagrams The UML class diagram consists of several Classes, connected with Relationships. 2 Draw a class diagram for a information modeling system for a school. has one or more s. offers one or more Subjects. A particular subject will be offered by only one department. has instructors and instructors can work for one or more departments. can enrol in upto 5 subjects in a. Instructors can teach upto 3 subjects. The same subject can be taught by different instructors. s can be enrolled in more than one school. 22 has one or more s. has offers one or more Subjects. A particular subject will be offered by only one department. has Instructors and instructors can work for one or more departments. Instructor assigned to can enrol in upto 5 Subjects. offers Subject takes * 0..5 Subject 23 24

Instructors can teach up to 3 subjects. The same subject can be taught by different instructors. s can be enrolled in more than one school. Instructor teaches..3 Subjects * member 25 26 Class Diagram Example Object Diagram * member has offeres assignedto Object Diagram shows the relationship between objects. Unlike classes objects have a state. * attends teaches Subject Instructor *..5..3 27 28 Object Diagram - Example c: Company d: name= Sales d2: name= R&D manager p: Persont name= John employee p2: Person name= David 29