structural model: a formal way of representing the ______
Post on 31-Dec-2015
47 Views
Preview:
DESCRIPTION
TRANSCRIPT
Slide 1
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
Ch.6 Class Diagrams
Slide 2
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
Slide 3
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
Sam
ple
CR
C C
ard
Slide 5
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
Sample Class Diagram
Cla
ss D
iag
ram
Syn
tax
Sample Association
Multiplicity
Sam
ple
Associtio
n C
lass
Sample Generalization
Slide 12
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
Sample Object Diagram
Slide 14
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_18
top related