24
1 Unified Modeling Language Unified Modeling Language - Concepts - - Concepts -

Unified Modeling Language - Concepts -

  • Upload
    rosa

  • View
    42

  • Download
    0

Embed Size (px)

DESCRIPTION

Unified Modeling Language - Concepts -. Unified Modeling Language. “UML is a language for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling and other non-software systems." - PowerPoint PPT Presentation

Citation preview

Page 1: Unified Modeling Language - Concepts -

1

Unified Modeling LanguageUnified Modeling Language- Concepts - - Concepts -

Page 2: Unified Modeling Language - Concepts -

2

Unified Modeling Unified Modeling LanguageLanguage

“UML is a language for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling and other non-software systems."

The Object Management Group adopted UML in 1997 as a standard.

Page 3: Unified Modeling Language - Concepts -

3

The Need for The Need for Unified Modeling Unified Modeling

LanguageLanguageEvery engineering discipline has a standard method of documentation

Electronic engineers have schematic diagrams Architects have blueprints Mechanical engineers have blueprints and

mechanical diagrams Software industry has UML

Page 4: Unified Modeling Language - Concepts -

4

Why use UML?Why use UML? To professionally design and document software system

before any code is written To easily spot reusable codes To lower development costs To identify logical ‘holes’ in design drawings To reduce ‘re/learning’ of the system To retrain additional developers effectively. UML

Diagrams is an excellent understanding resource To efficiently communicate with other programmers To see the bigger picture To develop more memory and processor efficient codes To easily make modifications on the system To ensure fewer surprises – i.e. software will behave as

expected To make the right decisions before any code is written

Page 5: Unified Modeling Language - Concepts -

5

UML DiagramsUML Diagrams

Use Case Diagram Class Diagram Object Diagram State Diagram Sequence Diagram Collaboration Diagram Activity Diagram Component DiagramComponent Diagram Deployment DiagramDeployment Diagram

Page 6: Unified Modeling Language - Concepts -

6

Use Case Diagram

Describes what a system does from the standpoint of an external observer.

Use Case Diagram displays the relationship among actors and use cases.

An actor is who or what initiates the events involved in that task. Actors are simply roles that people or objects play.

A use case is a summary of scenarios for a single objective. The connection between actor and use case is a

communication association The emphasis is on what a system does rather than

how.

Page 7: Unified Modeling Language - Concepts -

7

Use Case Diagrams

Source: http://bdn.borland.com

Page 8: Unified Modeling Language - Concepts -

8

Use Case Diagram

Use case diagrams are helpful in three areas. determining features (requirements). New use cases

often generate new requirements as the system is analyzed and the design takes shape.

communicating with clients. Their notational simplicity makes use case diagrams a good way for developers to communicate with clients.

generating test cases. The collection of scenarios for a use case may suggest a suite of test cases for those scenarios.

Page 9: Unified Modeling Language - Concepts -

9

Class Diagram

Things naturally fall into categories (books, trees, Things naturally fall into categories (books, trees, computers, …). We refer to these categories as computers, …). We refer to these categories as classesclasses

Class Diagram models class structure and contents using design elements such as classes, packages and objects. It also displays relationships such as containment, inheritance, associations and others.

Page 10: Unified Modeling Language - Concepts -

10

Class Diagram

Source: http://bdn.borland.com

Page 11: Unified Modeling Language - Concepts -

11

Object Diagram

An object is an instance of a class – a specific An object is an instance of a class – a specific thing that has specific values of attributes, and thing that has specific values of attributes, and behaviorbehavior

Object Diagram shows instances instead of classes. They are useful for explaining small pieces with complicated relationships, especially recursive relationships.

Page 12: Unified Modeling Language - Concepts -

12

Object Diagram

Source: http://bdn.borland.com

Page 13: Unified Modeling Language - Concepts -

13

State Diagram

At any given time, an object is in a particular At any given time, an object is in a particular state. State diagrams represent these states, and state. State diagrams represent these states, and their changes over time.their changes over time.

State Diagram displays the sequences of states that an object of an interaction goes through during its life in response to received stimuli, together with its responses and actions.

Page 14: Unified Modeling Language - Concepts -

14

State Diagram

Source: http://bdn.borland.com

Page 15: Unified Modeling Language - Concepts -

15

Sequence Diagram

Class and object diagrams represent static Class and object diagrams represent static information. In a system objects interact with one information. In a system objects interact with one another and these interactions occur over time. another and these interactions occur over time. Sequence diagrams show the time-based Sequence diagrams show the time-based dynamics of interaction.dynamics of interaction.

Sequence Diagram displays the time sequence of the objects participating in the interaction. This consists of the vertical dimension (time) and horizontal dimension (different objects).

Page 16: Unified Modeling Language - Concepts -

16

Sequence Diagram

Source: http://bdn.borland.com

Page 17: Unified Modeling Language - Concepts -

17

Collaboration Diagram

The elements of a system work together to The elements of a system work together to accomplish the system’s objectives, this is accomplish the system’s objectives, this is depicted with the collaboration diagram.depicted with the collaboration diagram.

Collaboration Diagram displays an interaction organized around the objects and their links to one another. Numbers are used to show the sequence of messages.

Page 18: Unified Modeling Language - Concepts -

18

Collaboration Diagram

Source: http://bdn.borland.com

Page 19: Unified Modeling Language - Concepts -

19

Activity Diagram

The activities that occur within a use case or The activities that occur within a use case or within an object’s behavior typically occur in within an object’s behavior typically occur in sequence, which is represented with activity sequence, which is represented with activity diagrams.diagrams.

Activity diagram displays a special state diagram where most of the states are action states and most of the transitions are triggered by completion of the actions in the source states. This diagram focuses on flows driven by internal processing.

Page 20: Unified Modeling Language - Concepts -

20

Activity Diagram

Source: http://bdn.borland.com

Page 21: Unified Modeling Language - Concepts -

21

Component DiagramComponent Diagram

Because large scale system development involves Because large scale system development involves different people working on different components, different people working on different components, it’s important to have a diagram to model these.it’s important to have a diagram to model these.

Component Diagram displays the high level Component Diagram displays the high level packaged structure of the code itself. packaged structure of the code itself. Dependencies among components are shown, Dependencies among components are shown, including source code components, binary code including source code components, binary code components, and executable components. Some components, and executable components. Some components exist at compile time, at link time, at components exist at compile time, at link time, at run times well as at more than one time.run times well as at more than one time.

Page 22: Unified Modeling Language - Concepts -

22

Deployment DiagramDeployment Diagram

UML provides a standard that enables the system UML provides a standard that enables the system analyst to provide a multi-faceted blueprint that’s analyst to provide a multi-faceted blueprint that’s comprehensible to clients, programmers and comprehensible to clients, programmers and everyone involved in the development process.everyone involved in the development process.

Deployment Diagram displays the configuration Deployment Diagram displays the configuration of run-time processing elements and the software of run-time processing elements and the software components, processes, and objects that live on components, processes, and objects that live on them. Software component instances represent them. Software component instances represent run-time manifestations of code units. run-time manifestations of code units.

Page 23: Unified Modeling Language - Concepts -

23

Component and Component and Deployment DiagramDeployment Diagram

Source: http://bdn.borland.com

Page 24: Unified Modeling Language - Concepts -

24