Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral.

Similar presentations

Presentation on theme: "Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral."— Presentation transcript:

1 Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral

2 Relationship Structure Relationship –Describes the ways things are in relation to one another –Shows relationship between classes Behavioral Relationship –Primarily used in use cases diagrams

3 Relationship: Structural

4 Relationship: Structural: Dependency (uses) Used to show the relationship when one thing somehow affects another Such relationship is described as “uses” or “used by” Example: –A vehicle uses fuel

5 Relationship: Structural: Aggregation (has a) Aggregation shows that an object is composed of he sum of other objects Example: A rental contract has a customer A rental contract has a car Relationship: Structural

6 Relationship: Structural: Association Describes connection between things May show multiplicity in associating different things Example: A customer has signed a rental contract Relationship: Structural

7 Relationship: Structural: Generalization (is a) Describes the relationship between general things and more specialized things Example: Car/track is more specialized thing of general thing vehicle Relationship: Structural

8 Relationship: Behavioral Primarily used in use case diagram Type: –Communicates –Includes –Extends –Generalizes

9 Relationship: Behavioral: Communicates Used to connect an actor to a use case

10 Relationship: Behavioral: Includes Describes the situation where a use case contains behavior that is common to more than one use case

11 Relationship: Behavioral: Extends Used when a use case extends the behavior of another use case

12 Relationship: Behavioral: Generalizes Shows general thing of a specialized thing in a use case

13 Diagram: Structural Structural Diagram includes: –Class Diagram –Object Diagram –Component Diagram –Deployment Diagram

14 Diagram: Structural: Class Diagram Used to view the structural design to meet the functional requirement of the system Don’t reflect the state of the system at a particular moment

15 Diagram: Structural: Class Diagram (Contd.)

16 Diagram: Structural: Object Diagram Describes the state of class instances and their relationship at a point in time

17 Diagram: Structural: Object Diagram (Contd.)

18 Diagram: Structural: Component Diagram Shows the components of the system and how they are related to each other Each component is analyzed in more detail using class diagrams and use case diagrams

19 Diagram: Structural: Component Diagram (Contd.) dependency Package

20 Diagram: Structural: Deployment Diagram Shows the Physical implementation of the system, including hardware

21 Diagram: Structural: Deployment Diagram (Contd.)

22 Diagram: Behavioral Structural Diagram includes: –Use Case Diagram –Sequence Diagram –Collaboration Diagram –State Diagram –Activity Diagram

23 Diagram: Behavioral: Use Case Diagram Shows the actors and use cases within the the framework of the system

24 Diagram: Behavioral: Use Case Diagram (Contd.)

25 Diagram: Behavioral: Sequence Diagram Shows the interaction between objects over time Illustrates the process describes in use case scenario

26 Diagram: Behavioral: Sequence Diagram (Contd.)

27 Diagram: Behavioral: Collaboration Diagram It does not focus on sequence of interactions over time like sequence diagram Instead it focuses on the organization of objects during the interaction

28 Diagram: Behavioral: Collaboration Diagram (Contd.)

29 Diagram: Behavioral: State Diagram Shows various states of an object Shows the events and conditions that trigger a transition from one state to another

30 Diagram: Behavioral: State Diagram (Contd.)

31 Diagram: Behavioral: Activity Diagram Show the flow of activities within a process Focuses on state and state transition instead on sequence of activities over time Shows transition between states and the flow of control within a process

32 Diagram: Behavioral: Activity Diagram (Contd.)

Download ppt "Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral."

Similar presentations

Ads by Google