UML Diagrams CSC 422 Kutztown University Dr Daniel

  • Slides: 20
Download presentation
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Classes of Diagrams n n n Model of Dynamic Aspects of Systems Model of

Classes of Diagrams n n n Model of Dynamic Aspects of Systems Model of Physical Aspects of Systems Static Design View

Modeling Dynamic Aspects of Systems n n n Statechart Activity Collaboration Sequence Use Case

Modeling Dynamic Aspects of Systems n n n Statechart Activity Collaboration Sequence Use Case

UML Statechart Diagram n A statechart diagram shows: n state machine. n flow of

UML Statechart Diagram n A statechart diagram shows: n state machine. n flow of control from state to state.

Statechart Diagram

Statechart Diagram

UML Activity Diagram n essentially a flowchart n shows flow of control from activity

UML Activity Diagram n essentially a flowchart n shows flow of control from activity to activity.

Activity Diagram

Activity Diagram

UML Collaboration Diagram n an interaction diagram n n Shows: n n emphasizes the

UML Collaboration Diagram n an interaction diagram n n Shows: n n emphasizes the structural organization of the objects that send and receive messages. a set of objects links among those objects messages sent and received by those objects. used to illustrate the dynamic view of a system.

Collaboration Diagram 4: View product pdb: Product. Database 5: Connect customer to product database

Collaboration Diagram 4: View product pdb: Product. Database 5: Connect customer to product database c: Customer 6: Buy item(s) 7: Item selected 1: Sign in 11: Send confirmation to customer sd: Shipping. Department 10: Send address for shipping 3: Connect customer to customer database fd: Financing. Department rp: Registration. Processor 2: Matches customer database cdb: Customer. Database 8: Check credit for customer 9: Accept credit

UML Sequence Diagram n n emphasizes the time ordering of messages. has 2 features

UML Sequence Diagram n n emphasizes the time ordering of messages. has 2 features that distinguish it from a collaboration diagram. n object lifeline n n vertical dashed line in the diagram. focus of control n a tall, thin rectangle that shows the period of time during which an object is performing an action.

Sequence Diagram

Sequence Diagram

UML Use case Diagram n n shows a set of use cases and actors

UML Use case Diagram n n shows a set of use cases and actors and their relationships. used to model the context of a system and to model the requirements of a system.

Usecase Diagram

Usecase Diagram

Modeling Physical Aspects of Systems n n Deployment Package

Modeling Physical Aspects of Systems n n Deployment Package

UML Deployment Diagram n shows the configuration of: n n run time processing nodes

UML Deployment Diagram n shows the configuration of: n n run time processing nodes the components that live on them.

Deployment Diagram

Deployment Diagram

UML Package Diagram n shows organization and dependencies among a set of packages.

UML Package Diagram n shows organization and dependencies among a set of packages.

Package Diagram

Package Diagram

UML Object Diagram n n shows a set of of objects and their relationships

UML Object Diagram n n shows a set of of objects and their relationships at a point in time. address the static design view or static process view of a system.

Object Diagram

Object Diagram