OOD - Principles Design Class Diagrams Chapter 10 pp. 295-298; 304-314; 317-320 1.

Slides:



Advertisements
Similar presentations
Systems Analysis and Design in a Changing World, Fourth Edition
Advertisements

Systems development life cycle & development methodologies
Copyright W. Howden1 Lecture 7: Functional and OO Design Descriptions.
1 Software Testing and Quality Assurance Lecture 12 - The Testing Perspective (Chapter 2, A Practical Guide to Testing Object-Oriented Software)
Software Testing and Quality Assurance
Robustness Analysis Dr. Neal CIS 480. Outline What is robustness analysis? Key roles in robustness analysis Object types found in discovery Diagramming.
© 2005 Prentice Hall8-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
16/22/2015 2:54 PM6/22/2015 2:54 PM6/22/2015 2:54 PMObject-Oriented Development Concept originated with simulating objects and their interactions. Adapted.
Asper School of Business University of Manitoba Systems Analysis & Design Instructor: Bob Travica System sequence diagram Updated: 2014.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Objectives Explain the purpose and objectives of object- oriented design Develop design class diagrams Develop interaction diagrams based on the principles.
Object-Oriented Analysis and Design
Object-Oriented Analysis and Design
Object-Oriented Design. From Analysis to Design Analysis Artifacts –Essential use cases What are the problem domain processes? –Conceptual Model What.
The Design Discipline.
The Object Oriented Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
Systems Analysis and Design in a Changing World, Fifth Edition
Chapter 5 - Writing a Problem Domain Class Definition1 Chapter 5 Writing a Problem Domain Class Definition.
Chapter 10: Writing Class Definitions Visual Basic.NET Programming: From Problem Analysis to Program Design.
Systems Analysis and Design in a Changing World, 6th Edition
Systems Analysis and Design in a Changing World, 6th Edition
12 Systems Analysis and Design in a Changing World, Fifth Edition.
1 ITEC 3010 “Systems Analysis and Design, I” LECTURE 10: Use Case Realizations [Prof. Peter Khaiter]
An Introduction to Java Chapter 11 Object-Oriented Application Development: Part I.
Object Oriented Design Jerry KotubaSYST Object Oriented Methodologies1.
Chapter 7 Objects and Classes 1 Fall 2012 CS2302: Programming Principles.
111 Protocols CS 4311 Wirfs Brock et al., Designing Object-Oriented Software, Prentice Hall, (Chapter 8) Meyer, B., Applying design by contract,
Chapter 1 Object Orientation: Objects and Classes.
Object-Oriented Design. A Historical Perspective Programs  Procedures to manipulate data Earlier: procedural  Think actions/procedures first, data second.
Systems Analysis and Design in a Changing World, 3rd Edition
Design Class Diagrams (DCDs)
© 2005 Prentice Hall9-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Lecture 6: Structural Modeling
JAVA Classes Review. Definitions Class – a description of the attributes and behavior of a set of computational objects Constructor – a method that is.
Object Oriented Design Jerry KotubaSYST Object Oriented Methodologies1.
A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes.
2007ACS-3913 Ron McFadyen1 Class Diagram See Schaum’s UML Outline, especially chapters 4, 5, 6, 7.
Use Case Controller System sequence diagram (SSD) shows input messages from external actors within use case Only indicates that messages go to system Use.
Chapter 10 Defining Classes. The Internal Structure of Classes and Objects Object – collection of data and operations, in which the data can be accessed.
Design Model Lecture p6 T120B pavasario sem.
CSC 205 Java Programming II Defining & Implementing Classes.
COP INTERMEDIATE JAVA Designing Classes. Class Template or blueprint for creating objects. Their definition includes the list of properties (fields)
Classes. Student class We are tasked with creating a class for objects that store data about students. We first want to consider what is needed for the.
11-1 CHAPTER 11 Concepts for Object-Oriented Databases.
TK2023 Object-Oriented Software Engineering CHAPTER 12 Introduction to Responsibility-Driven Design.
90-723: Data Structures and Algorithms for Information Processing Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 1: Introduction Data.
Chapters 10, 11 SSD (Revision) SD DCD Exam Object-Oriented Design.
Chapter 16 UML Class Diagrams.
CMSC 345 Fall 2000 OO Design. Characteristics of OOD Objects are abstractions of real-world or system entities and manage themselves Objects are independent.
OOD - Principles Design Class Diagrams
Computer Science II 810:062 Section 01 Session 2 - Objects and Responsibilities.
Chapter 20 Concepts for Object-Oriented Databases Copyright © 2004 Pearson Education, Inc.
SourceAnatomy1 Java Source Anatomy Barb Ericson Georgia Institute of Technology July 2008.
1.1: Objects and Classes msklug.weebly.com. Agenda: Attendance Let’s get started What is Java? Work Time.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
BTS430 Systems Analysis and Design using UML Design Class Diagrams (ref=chapter 16 of Applying UML and Patterns)
11. Chapter 11: The Object-Oriented Approach to Design: Use Case Realization Systems Analysis and Design in a Changing World, Fourth Edition.
11 Systems Analysis and Design in a Changing World, Fifth Edition.
ABT1/GUT1/KFT1 Task 4 Prep Diagrams for MediaManager Cynthia Lang, PE, MSChE Pubali Banerjee, PhD IT Course Mentors-Java Assessments.
Classes CS 162 (Summer 2009). Parts of a Class Instance Fields Methods.
Modeling with UML – Class Diagrams
Chapter 16 UML Class Diagrams.
Today’s Objectives Define the Problem Domain
The Object Oriented Approach to Design
OOD - Principles Design Class Diagrams
Corresponds with Chapter 7
The Object-Oriented Thought Process Chapter 04
Data Structures and Algorithms for Information Processing
Design Model: Creating Design Class Diagrams
Presentation transcript:

OOD - Principles Design Class Diagrams Chapter 10 pp ; ;

Where are we? 2 Design Chapters Ch 7Designing User & System Interfaces Ch 10OO Design – Principles Ch 11OO Design – Use Case Realizations Ch 12Databases, Controls & Security

OOD: Object-Oriented Design  From "Domain Classes" to "Programming Classes"  Specify objects to carry out each use case 3

From Requirements (Analysis) to Design… 4 Ch10 Ch11

Defining a Single Design Class 5

Domain Class vs. Design Class 6

Design Class: Things to Know  Elaborate attributes  Define Method types  Write Method Signatures  Identify Instance-Level and Class-Level Attributes & Methods 7

Elaborating Attributes visibility attributeName: dataType {property}  Visibility Public or Private  Data type Numbers: integer, double Text: string True/False: boolean Dates: dateTime  Property key 8

Method Types  3 Method types Constructor methods Accessor methods − Get − Set Processing methods 9 9:05 & 10:1 0

Method Signatures visibility methodName(parameterList) : returnType  Visibility Public or Private  Method name Verb phrase  Parameter List Inputs  Return Type Output Typical data type: integer, string, etc Object (e.g. Student) Collection of objects: StudentArray 10

Instance-Level vs. Class-Level Attributes & Methods Instance-Level − Pertains to an individual object/instance − Attribute  name − Method  getName(), calcGPA() Class-Level − Does not pertain to an individual object/instance − Attribute  tuitionPerHour − Method  findAboveHours() 11 -tuitionPerHour: integer

Exercise  Design a Design Class for: Vehicle Attributes − Primary Key − Instance attribute − Class Attribute Method − Constructor method − Instance Method Accessor methods (2) Processing method − Class Method & 1010

A Design Class (coded in VB) 13

14 Design Class Diagram Overridden Method How many attributes are there in a MailOrder object?

Designing a Domain Class Diagram 15

Review – let’s understand this Use Case before continuing  Use Case Description “Process New Order” 16

Review – let’s understand this model before continuing  Domain Class Diagram 17

Steps: Initial Design Class Diagram 1. Select a Use Case: “Process New Order” 2. Add Domain Classes See pre-conditions & post-conditions for ideas 3. Elaborate Attributes: visibility, data types 18

Steps: Initial Design Class Diagram 4. Add a "Controller" class − Switchboard between the View & Domain Layer; a collection point for incoming messages. Include one per use case. 19

Steps: Initial Design Class Diagram 5. Add Navigation Visibility (def) the ability of one object to interact with another 20 1 to Many Association 1  * Mandatory Associations Indep  Dependent Needs info Sender  Receiver Rules

Steps: Initial Design Class Diagram 6. Add Methods (we will see this in Ch 11 via Sequence Diagrams) That is, Behavior! 21