Uml Detailed Class Design

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Uml Detailed Class Design as PDF for free.

More details

  • Words: 307
  • Pages: 12
DETAILED CLASS hanh-at-hueuni.edu.vn DESIGN



Dr. Hoang Huu Hanh, OST – Hue University



 

Hue University

e University

Objectives To

describe the determining of class’s operations. To describe a template for class interface specifications

e University 2

Designing Class Operations It

is usually easy to determine class’s operations from the dynamic models of the systems, in particular, from the interaction diagrams.

 When

e University  It

two objects interact, one object provides an operation that is used by the other object. is also necessary to consider

3

Example of Entity Class  Analysis

model: collaboration diagram

 Design

model: collaboration diagram



e University 4

Example of Output Device Interface Class        

e University   Needs

an initialize operation to initialize5

Example of State Dependant Control Class       

e University

Support

two generic operations

◦ processEvent ◦ currentState

6

Example of Business Logic Class

e University 7

Further Categorization of Entity Classes

e University

During

design, a decision has to be made whether the data encapsulated by an entity class is to be managed directly by the entity class or whether the data is actually to be stored in a database. ◦ ◦ Data abstraction classes (transient) ◦ ◦ Database wrapper classes 8

Examples of Data Abstraction Class

e University 9

Example of Database Wrapper Class        

e University 

10

Class Interface Specifications

e University

     

Class type (class structuring criterion) Assumptions Anticipated changes Superclass (if applicable) Inherited operations (if applicable) Operations provided by the class. For each operation, define, ◦ Function performed ◦ Precondition ◦ Postcondition ◦ Invariant ◦ Input parameters ◦ Output parameters ◦ Operations used from other classes 11

Thank you!

e University 12

Related Documents