Professional Documents
Culture Documents
38 Uml
38 Uml
Jan 9, 2017
What is UML?
Design Patterns
UML is complex
Class diagrams
Classes
Variables I
Example: +length:int
Variables II
private
static
integer
and has 10 as its initial value
8
Methods
Example of a class
Card
cardId:int
-copy:boolean=false
constructor Card(int id)
+isKind(desiredKind:int)
+isSharable():boolean
+toString():String
10
Types of relationships
A
Factory
1..4
Class B
extends
class A
Class C
contains
1 to 4 objects
of class D
creates
Product
Other
kinds of
relations
11
12
UML tools
Rational Rose is the real world standard; full roundtrip code generation
13
Tool links
Rational Rose
Together
http://www.borland.com/together/
ArgoUML
http://www-3.ibm.com/software/awdtools/developer/rosexde/
http://argouml.tigris.org
Visio
http://msdn.microsoft.com/office/understanding/visio/
Dia
http://www.lysator.liu.se/~alla/dia
14
The End
15