Lecture Software design and architecture – Chapter 24

The class diagram is a static model that shows the classes and the relationships among classes that remain constant in the system over time. The class diagram depicts classes, which include both behaviors and states, with the relationships between the classes. The following sections will first present the elements of the class diagram, followed by the way in which a class diagram is drawn. | SOFTWARE DESIGN AND ARCHITECTURE LECTURE 24 Review ANALYSIS Level Class Diagram Identifying Entities Identifying Attributes Identifying Operations Identifying Relationships Outline Design Level Class Diagram Identifying classes/Operations/Attributes Associations Simple associations Multiplicity Aggregation Composition Generalization Class diagram 5 Essential Elements of a UML Class Diagram Class Attributes Operations Relationships Associations Generalization Dependency Realization Constraint Rules and Notes 6 What is a Class Diagram? A class diagram describes the types of objects in the system and the various kinds of static relationships that exist among them. A graphical representation of a static view on declarative static elements. A central modeling technique that runs through nearly all object-oriented methods. The richest notation in UML. Classes A class is the description of a set of objects having similar attributes, operations, relationships and behavior. 7 Window size: . | SOFTWARE DESIGN AND ARCHITECTURE LECTURE 24 Review ANALYSIS Level Class Diagram Identifying Entities Identifying Attributes Identifying Operations Identifying Relationships Outline Design Level Class Diagram Identifying classes/Operations/Attributes Associations Simple associations Multiplicity Aggregation Composition Generalization Class diagram 5 Essential Elements of a UML Class Diagram Class Attributes Operations Relationships Associations Generalization Dependency Realization Constraint Rules and Notes 6 What is a Class Diagram? A class diagram describes the types of objects in the system and the various kinds of static relationships that exist among them. A graphical representation of a static view on declarative static elements. A central modeling technique that runs through nearly all object-oriented methods. The richest notation in UML. Classes A class is the description of a set of objects having similar attributes, operations, relationships and behavior. 7 Window size: Size visibility: boolean display() hide() Class Name Attributes Operations Identifying Analysis Classes Perform a grammatical parse of the problem statement or use cases Classes are determined by underlining each noun or noun clause A class required to implement a solution is part of the solution space A class necessary only to describe a solution is part of the problem space A class should NOT have an imperative procedural name (., a verb) List the potential class names in a table and "classify" each class according to some taxonomy and class selection characteristics A potential class should satisfy nearly all (or all) of the selection characteristics to be considered a legitimate problem domain class (More on next slide) Potential classes General classification Selection Characteristics Grammatical Parse The SafeHome security function enables the homeowner to configure the security system when it is installed, monitors all sensors connected to the security system, and interacts with

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.