Dr. Hoang Huu Hanh, OST – Hue University

 

Hue University

e University


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

e University

Designing Class Operations

is usually easy to determine class’s operations from the dynamic models of the systems, in particular, from the interaction diagrams. two objects interact, one object provides an operation that is used by the other object. is also necessary to consider


e University  It


Example of Entity Class
 Analysis

model: collaboration diagram

 Design

model: collaboration diagram

e University

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

e University 

an initialize operation to initialize5

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


two generic operations

e University

◦ processEvent ◦ currentState

Example of Business Logic Class

e University

Further Categorization of Entity Classes

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

e University

Examples of Data Abstraction Class

e University

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

e University


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

Thank you!

e University

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.