520 likes | 729 Views
UML Component and Deployment Diagrams. Models, Views, and Diagrams. A model is a complete description of a system from a particular perspective. Static views. State Diagrams. State Diagrams. Class Diagrams. Use Case Diagrams. Use Case Diagrams. State Diagrams. Use Case
E N D
Models, Views, and Diagrams A model is a complete description of a system from a particular perspective Static views State Diagrams State Diagrams Class Diagrams Use Case Diagrams Use Case Diagrams State Diagrams Use Case Diagrams State Diagrams Use Case Diagrams Object Diagrams Use Case Diagrams Sequence Diagrams Scenario Diagrams State Diagrams Scenario Diagrams State Diagrams Component Diagrams Collaboration Diagrams Models Component Diagrams Scenario Diagrams Component Diagrams Scenario Diagrams Deployment Diagrams Statechart Diagrams Activity Diagrams Interactions Dynamic views
Diagrams • A diagram is a view into a model • Presented from the aspect of a particular stakeholder • Provides a partial representation of the system • Is semantically consistent with other views • In the UML, there are nine standard diagrams • Static views:use case, class, object, component, deployment • Dynamic views:sequence, collaboration, statechart, activity
Collaboration Diagram“who sends to whom” • Captures dynamic behavior (message-oriented) – not “when”
Collaboration Diagram • Captures dynamic behavior (message-oriented) • Purpose • Model flow of control • Illustrate coordination of object structure and control
UML Statechart Diagram Automata:
Statechart Example: Login part of an online banking system. Logging in consists of entering a valid social security number and personal id number, then submitting the information for validation.
Example: Activity Diagram – work flow, operation • Captures dynamic behavior (activity-oriented) Building a house • Syntax not defined in UML • Semantics: • Evaluate expression • Send a method • Create or destroy an object activity Synchronization bars Parallel activities Change of state or attribute