Presentation is loading. Please wait.

Presentation is loading. Please wait.

James Miller, Julia John

Similar presentations


Presentation on theme: "James Miller, Julia John"— Presentation transcript:

1 James Miller, Julia John
UML Diagrams James Miller, Julia John

2 Overview What is a UML diagram? What are UML diagrams used for?
Types of UML diagrams Tools to create UML diagrams

3 What is a UML diagram? Unified Modeling Language
Object Management Group (OMG) Primary authors:Jim Rumbaugh, Ivar Jacobson, Grady Booch Stable and common design language used to develop/build computer applications In 1997, the Object Management Group released the Unified Modeling Language. One of the main purposes of the UML was to provide the development community with a stable and common design language that could be used to develop and build computer applications. Primary authors: Jim Rumbaugh, Ivar Jacobson, Grady Booch they had their own method, but came together to create an open standard. UML is a standard modeling language because it is NOT dependant on a programming language It provides several types of diagrams that increase the ease of understanding an application under development. By placing standard UMLD in a project, it makes it easier for UML-proficient people to join the project and quickly become productive The most useful, standard UML diagrams are: use case diagram, class diagram, sequence diagram, statechart diagram, activity diagram, component diagram, and deployment diagram.

4 What are UML diagrams used for?
A graphical way to represent software Model application structure, behavior and architecture Business processes Data structures

5 Types of UML diagrams Structural diagrams: Behavioral diagrams:
Class diagrams Deployment diagrams Behavioral diagrams: Use Case diagrams Activity diagrams Structure diagrams show the things in a system being modeled. In a more technical term they show different objects in a system. Types: Class diagrams, Deployment diagrams, Object diagrams, Profile diagrams, Component diagrams Behavioral diagrams shows what should happen in a system. They describe how the objects interact with each other to create a functioning system. Types: Use Case diagrams, Activity diagrams, Sequence diagrams, State Machine diagrams, Communication diagrams

6 Class diagrams Depicts the classes in the system
Shows attributes and operations of each class, and relationship between classes A class is depicted on the class diagram as a rectangle with three horizontal sections Three mains parts: Name located at the top, the attributes in the middle and the operations at the bottom. Attributes = variables Operations = methods of a class In Fig01, we see both the inheritance relationship and two association relationships. The CDSalesReport class inherits from the Report class. A CDSalesReport is associated with one CD, but the CD class doesn't know anything about the CDSalesReport class. The CD and the Band classes both know about each other, and both classes can be associated to one or more of each other. Fig01: Class Diagram with inheritance and association relationships

7 Deployment diagram System in a hardware environment
Models physical runtime The deployment diagram shows how a system will be developed in a hardware environment. Shows how the different components of the software will communicate with the hardware involved. In Fig02 the diagram shows that the user wants access to the Reporting tool by browser, The user is running on a local machine connecting via HTTP The tool is running on an application server (Websphere), which links to the Reporting tool on the DB2 Server Fig02: Deployment diagram shows the user access to a reporting tool

8 Use Case diagrams Graphic overview of “actors” in a system
Different functions and interactions in the system In Fig03, we see three main “actors”- the admin, customer, the bank - in the system The administrator has the function of maintaining the system The Bank customer has to login to access any of the transactions. Extended function: Bad Pin (in case of bad pin). The bank has access to a customer’s transaction too Fig03: ATM machine use-case diagram - showing actors and main processes

9 Activity diagram Workflow between two or more classes
Used to model high level business process or low level class actions Sometimes used as an alternate to a state machine.

10 Tools to create UML diagrams
StarUML (staruml.io) Creately (creately.com) Violet (violet.sourceforge.net) Microsoft Visio List of tools: StarUML is free unless for commercial use, and it has a lot more tools than the average UML diagram software, aka the diagrams themselves, and it’s open source Creately - website. free. has templates and examples Violet - From website (Very easy to learn and use. Draws nice-looking diagrams. Completely free. Cross-platform. Violet is intended for developers, students, teachers, and authors who need to produce simple UML diagrams quickly) Visio - Microsoft. Not free. VISIO STANDARD $

11 Why we used StarUML Easy to understand and learn
A lot of different diagrams to choose from Automatic tool customization per diagram StarUML automatically sorts the tools based on the selected diagram at the time. StarUML also allows you to create multiple diagrams in a projects rather than just one diagram like some of the other programs we tried. (6:52PM) Why we “used” StarUML slide before or after the video?

12 James’ space for the video!

13 References http://www.ibm.com/developerworks/rational/library/769.html


Download ppt "James Miller, Julia John"

Similar presentations


Ads by Google