160 likes | 252 Views
Ch.6 Class Diagrams. Structural model: a formal way of representing the ______ that are used and created by a business system. conceptual model design model (design phase) Class: general template that we use to create specific ______ or ______
E N D
Ch.6 Class Diagrams Structural model: a formal way of representing the ______ that are used and created by a business system. conceptual model design model (design phase) Class: general template that we use to create specific ______ or ______ in the application domain application domain class Attribute: a piece information that is relevant to the description of the class Operation: behavior of the class converted to ________ (related to implementation) domain specific operation
Relationships: - Generalization Subclass inherits _________________ of their superclass contains ___________________________. a-kind-of relationship cf. specialization - Aggregation Composition relationship a-part-of or a-member-of - Association Patient schedules an appointment. Patient is a-pat-of an appointment? Y/N semantic difference
Class-Responsibility-Collaboration Card (CRC Card) Responsibility: - Knowing knows the value of its _______ and its _______ - Doing can executes its _______ Collaboration: Client object Server object Contract Elements of CRC Card: Fig. 6-1
fig_06_01 Sample CRC Card
Class Diagrams Elements of a Class Diagram: Class: class name Attributes : derived, visibility(public, protected, private) Operation Relationships: association multiplicity generalization aggregation multiplicity Fig. 6-2
fig_06_02 Sample Class Diagram
fig_06_03 Class Diagram Syntax
fig_06_04 Sample Association
fig_06_05 Multiplicity
fig_06_06 Sample Assocition Class
fig_06_07 Sample Generalization
Object Diagram Instantiation of all or part of a class diagram instantiation: creates an instance of a class with a set of appropriate attribute value. Fig. 6-10 Example Object Diagram
fig_06_10 Sample Object Diagram
Creating CRC Cards and Class Diagram (1) Object Identification 1. Textual Analysis 2. Common Object List 3. Patterns (2) Building CRC Cards and Class Diagram 1. Create CRC Cards 2. Examine Common Object List 3. Role-Play CRC Cards 4. Create the Class Diagram 5. Review the Class Diagram 6. Incorporate Patterns 7. Review the Model
fig_06_17 fig_06_17
fig_06_18 fig_06_18