An overview of uml (unified modeling language), its purpose as a standard for drawing diagrams in software development, the types of diagrams it supports, and its application in various development methodologies. Uml can be used to illustrate development documents, enhance communication, and is compatible with methodologies like unified process and extreme programming.
Download Understanding UML: Its Purpose, Diagrams, and Use in Software Development and more Slides Computers and Information technologies in PDF only on Docsity!
UML
Ian Holyer Ian Holyer
What is UML?
UML = Unified Modelling LanguageUML = Unified Modelling Language
For modelling software systemsFor modelling software systems
in an Object Oriented style
independent of actual programming language
Merges previous approaches of Booch, Rumbaugh,Merges previous approaches of Booch, Rumbaugh, Jacobson (the "Three Amigos") Jacobson (the "Three Amigos")
Has become the primary standard (of the OMG =Has become the primary standard (of the OMG = Object Management Group) Object Management Group)
See Wikipedia entry and typeSee Wikipedia entry and type UML 2UML 2 into Google tointo Google to find references & tutorials find references & tutorials
What diagrams are supported?
UML supports 13 types of diagram, but the mostUML supports 13 types of diagram, but the most important ones are: important ones are: - use case diagram (for analysis) - class diagram (for design) - sequence diagram or activity diagram or state machine diagram ( was called state chart ) (for implementation)
The others areThe others are
component, composite structure, deployment, object, package, communication ( was calledcollaboration ) interaction overview, timing
The idea is that they should be capable of being drawnThe idea is that they should be capable of being drawn with any available drawing tool, or scribbled freehand with any available drawing tool, or scribbled freehand
The diagrams describe entities and relationshipsThe diagrams describe entities and relationships
boxes are used for entities
lines joining them are used for relationships
labels add detail to boxes and lines
You can colour in the boxes (or even replace them withYou can colour in the boxes (or even replace them with images) if you keep them recognisable, and only a few images) if you keep them recognisable, and only a few colours with contrasting greyscales for the colour-blind colours with contrasting greyscales for the colour-blind
What should a UML diagram contain?
A mistake people sometimes make is to think theyA mistake people sometimes make is to think they have to produce an illustration which is a complete have to produce an illustration which is a complete class diagram (say) describing their whole system class diagram (say) describing their whole system
Even if you have a complete diagram, you only wantEven if you have a complete diagram, you only want a small extract from it in each illustration, to go with a small extract from it in each illustration, to go with what you are saying at that moment what you are saying at that moment
You may not have a complete diagram, just a fewYou may not have a complete diagram, just a few illustrations, or the complete diagram may appear illustrations, or the complete diagram may appear split over a number of illustrations, or it may appear split over a number of illustrations, or it may appear as a whole in an appendix or separate document as a whole in an appendix or separate document
Which UML tool do I use?
If you just want to draw the simplest diagrams, useIf you just want to draw the simplest diagrams, use something small and simple like UMLet something small and simple like UMLet
If you want to try something more sophisticated, useIf you want to try something more sophisticated, use Poseidon (community edition, or department license) Poseidon (community edition, or department license)
There are many more possibilities, so if you wantThere are many more possibilities, so if you want something ideosynchratic, try typing something ideosynchratic, try typing UML drawingUML drawingtool survey tool survey into Googleinto Google
Actors
An actor is a "user" outside the systemAn actor is a "user" outside the system
It doesn't have to be a personIt doesn't have to be a person
It is drawn with a stick figure shapeIt is drawn with a stick figure shape
It is just another box, but with an unusual lookIt is just another box, but with an unusual look
A label underneath gives it a nameA label underneath gives it a name Visitor
Thinking of Actors
A use case diagram can help make sure you haveA use case diagram can help make sure you have thought of all the possible users thought of all the possible users Visit web site Member of Department Member of Public Search Engine
Thinking of all the Use Cases
A use case diagram helps to make sure you haveA use case diagram helps to make sure you have thought of all the uses which your system can be put to thought of all the uses which your system can be put to Visit normal page Visit protected page Create or edit page Visitor
Relationships
The standard relationship between an actor and a useThe standard relationship between an actor and a use case is that the actor is case is that the actor is involved ininvolved in the use casethe use case
It is shown as a simple straight line joining the boxesIt is shown as a simple straight line joining the boxes Visit web site Visitor
Making Diagrams Simpler
Generalisation between actors may seem strange sinceGeneralisation between actors may seem strange since they are not going to be implemented! they are not going to be implemented!
It can make explanations clearer, and diagrams simplerIt can make explanations clearer, and diagrams simpler Member of Department Student View course info View personal data Register on a unit
Generalised use cases
One use case can be a generalization of anotherOne use case can be a generalization of another Visit web page Visit protected web page
Labels
A label can be a decoration like an arrow head, whichA label can be a decoration like an arrow head, which can be conventional or can have any meaning you want can be conventional or can have any meaning you want
It can be a unique nameIt can be a unique name
It can be a "note" surrounded by European quote marksIt can be a "note" surrounded by European quote marks (officially called a "stereotype" in UML) and less-than (officially called a "stereotype" in UML) and less-than and greater-than signs will do instead of quotes and greater-than signs will do instead of quotes «include» authenticate <>
How do you use Use Case Diagrams?
There are other features, but you can look them upThere are other features, but you can look them up
The diagrams are deliberately simple, free of jargon orThe diagrams are deliberately simple, free of jargon or technical detail, and suitable for clients or users technical detail, and suitable for clients or users
Use cases just name the things you are talking aboutUse cases just name the things you are talking about
To use them in analysis documents, the actualTo use them in analysis documents, the actual requirements or specifications go in the text requirements or specifications go in the text
The purpose of diagrams is to illustrate, soThe purpose of diagrams is to illustrate, so youyou are inare in control, & each diagram in a report shows just the part control, & each diagram in a report shows just the part of the system you want to talk about at that moment of the system you want to talk about at that moment
A sophisticated tool holds a complete "diagram" forA sophisticated tool holds a complete "diagram" for the whole system, then extracts and prints views the whole system, then extracts and prints views