DOC PREVIEW
Penn CIT 597 - Simple UML

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Simple UMLWhat is UML?Design PatternsUML is complexClass diagramsClassesVariables IVariables IIMethodsExample of a classTypes of relationshipsExample: Secret Code programUML toolsTool linksThe EndJan 14, 2019Simple UML2What is UML?UML stands for Unified Modeling LanguageUML is a diagramming language designed for Object-Oriented programmingUML can be used to describe:the organization of a programhow a program executeshow a program is usedhow a program is deployed over a network…and more3Design PatternsDesign Patterns describe the higher-level organization of solutions to common problemsDesign Patterns are a current hot topic in O-O designUML is always used for Design PatternsDesign Patterns are used to describe refactoringsWe may discuss some Design Patterns later on in this course4UML is complexUML is a big, complicated diagramming languageUML comprises at least seven or eight different kinds of diagramsThis talk will cover just a tiny bit of one kind of diagram, the class diagramA class diagram is often all that is needed to describe a particular Design Pattern5Class diagramsA class diagram shows classes, interfaces, and their relationshipsWe’ll cover most of classes and interfaces, and a few of the most important relationships6ClassesA class is drawn as a rectangle with two or three compartments:Name of the classVariables [optional]Methods7Variables IA variable is written as: visibility name : typewhere:+ means public visibility# means protected visibility- means private visibility<blank> means default (package) visibilityExample: +length:int8Variables IIStatic variables are underlinedAn initial value can be shown with =valueExample: -numberOfEmployees:int=10means numberOfEmployees is:privatestaticintegerand has 10 as its initial value9MethodsMethods are written as: visibility name (parameters) : returnTypewherevisibility uses the same syntax variables (+, -, #, blank)parameters are given as name:typeif the returnType is void, it is omittedconstructors are preceded by «constructor»interfaces are preceded by «interface»an ellipsis (…) indicates omitted methods10Example of a classCardcardId:int-copy:boolean=false«constructor» Card(int id)+isKind(desiredKind:int)+isSharable():boolean+toString():String11Types of relationshipsABClass Bextendsclass ACD1..4Class Ccontains 1 to 4 objectsof class DFactoryProductcreatesOther kinds ofrelations12Example: Secret Code program13UML toolsRational Rose is the “real world” standard; full round-trip code generationRecently acquired by IBM (right under Microsoft’s nose!)Together (from Borland) is a lot like Rational RoseI haven’t used it in about five years (since before Borland bought it from TogetherSoft)ArgoUML looks interesting (and is open source)BlueJ, of course, displays simple UML diagramsDrawing programs with UML supportVisio is a Microsoft toolDia is a freeware clone of Visio14Tool linksRational Rosehttp://www-3.ibm.com/software/awdtools/developer/rosexde/Togetherhttp://www.borland.com/together/ArgoUMLhttp://argouml.tigris.orgVisioHard to find info on Microsoft’s site!http://msdn.microsoft.com/office/understanding/visio/Diahhttp://www.gnome.org/projects/dia/OmniGraffle 3 (Mac OS X)http://www.omnigroup.com/applications/omnigraffle/15The


View Full Document

Penn CIT 597 - Simple UML

Documents in this Course
DOM

DOM

21 pages

More DOM

More DOM

11 pages

Rails

Rails

33 pages

DOM

DOM

21 pages

RELAX NG

RELAX NG

31 pages

RELAX NG

RELAX NG

31 pages

RELAX NG

RELAX NG

31 pages

RELAX NG

RELAX NG

31 pages

Rake

Rake

12 pages

Ruby

Ruby

58 pages

DOM

DOM

21 pages

Tomcat

Tomcat

16 pages

DOM

DOM

21 pages

Servlets

Servlets

29 pages

Logging

Logging

17 pages

Html

Html

27 pages

DOM

DOM

22 pages

RELAX NG

RELAX NG

30 pages

Servlets

Servlets

28 pages

XHTML

XHTML

13 pages

DOM

DOM

21 pages

DOM

DOM

21 pages

Servlets

Servlets

26 pages

More CSS

More CSS

18 pages

Servlets

Servlets

29 pages

Logging

Logging

17 pages

Load more
Download Simple UML
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Simple UML and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Simple UML 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?