Professional Documents
Culture Documents
Reminder Behavioral Diagrams:: Language/behavior-Vs-Structural-Diagram
Reminder Behavioral Diagrams:: Language/behavior-Vs-Structural-Diagram
Reminder Behavioral Diagrams:: Language/behavior-Vs-Structural-Diagram
~ Reminder ~
Behavioral diagrams:
- are used extensively to describe the functionality of software systems
- show what should happen in a system
- describe how the objects interact with each other to create a functioning system
Structural diagrams:
- state the elements of a system (e.g. classes, objects, packages, modules,
components or interfaces)
- also display the relationships between these elements (classes that inherit from other
classes, objects that contain other objects, which classes belong to which packages,
which nodes are connected etc.)
Association
- default relationship between two classes
- both classes are aware of each other and their
relationship
- structural link between two peer classes
Realization
- the relationship between the interface and the
implementing class
- the relationship between the blueprint class
and the object containing its respective
implementation level details
Dependency
- a special type of association
- exists between two classes if changes to the
definition of one may cause changes to the
other (but not the other way around)
- Class1 depends on Class2
- an object of one class uses an object of
another class in the code of a method
Aggregation
- a special type of association denoting a
"consists-of" hierarchy
- represents a "part of" relationship
- Class2 is part of Class1
Composition
- a special type of aggregation where parts are
destroyed when the whole is destroyed
- objects of Class2 live and die with Class1
(Class2 cannot stand by itself)
Example 1: Ordering system
- Component:
- Subsystem:
- has multiple components
- usually independent
- e.g.: db server
- Interfaces:
- provided: symbol
- required: half circle symbol
- Most common relationships:
- Dependency: one component depends on another