20
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Embed Size (px)

Citation preview

Page 1: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Diagrams

CSC 422

Kutztown University

Dr. Daniel Spiegel

Page 2: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Classes of Diagrams

Model of Dynamic Aspects of Systems

Model of Physical Aspects of Systems

Static Design View

Page 3: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Modeling Dynamic Aspects of Systems

Statechart Activity Collaboration Sequence Use Case

Page 4: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Statechart Diagram

A statechart diagram shows: state machine.

flow of control from state to state.

Page 5: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Statechart Diagram

Page 6: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Activity Diagram

essentially a flowchart shows flow of control from activity to

activity.

Page 7: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Activity Diagram

Page 8: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Collaboration Diagram

an interaction diagram emphasizes the structural organization of the

objects that send and receive messages. Shows:

a set of objects links among those objects messages sent and received by those objects.

used to illustrate the dynamic view of a

system.

Page 9: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Collaboration Diagram

11: Send confirmation tocustomer

10: Send addressfor shipping

9: Accept credit

8: Check credit for customer

6: Buy item(s)

7: Item selected

5: Connect customer toproduct database

4: View product

3: Connect customer to customer database

2: Matches customer database

1: Sign in

pdb:ProductDatabase

sd:ShippingDepartment

fd:FinancingDepartment

cdb:CustomerDatabase

rp:RegistrationProcessor

c:Customer

Page 10: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Sequence Diagram

emphasizes the time ordering of messages.

has 2 features that distinguish it from a collaboration diagram. object lifeline

vertical dashed line in the diagram. focus of control

a tall, thin rectangle that shows the period of time during which an object is performing an action.

Page 11: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Sequence Diagram

Page 12: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Use case Diagram

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.

Page 13: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Usecase Diagram

Page 14: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Modeling Physical Aspects of Systems

Deployment Package

Page 15: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Deployment Diagram

shows the configuration of: run time processing nodes the components that live on them.

Page 16: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Deployment Diagram

Netscape 6.lnk

E-Business InternetWork

I nternet Explorer.lnk

Page 17: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Package Diagram

shows organization and dependencies among a set of packages.

Page 18: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Package Diagram

Page 19: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

UML Object Diagram

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.

Page 20: UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel

Object Diagram