03-Week UMLSWE316
03-Week UMLSWE316
▪ A major revision (UML 2.0) was finalized in 2004. The UML is universally
accepted as the standard approach for developing Object-oriented
models of software systems.
▪ UML 2 has many types of diagrams which are divided into two
categories namely Structural Diagrams and Behavioural Diagrams.
Why UML?
Different diagrams describe various facets of the model
• Actor:
Overview of UML notations 1/4
• Actor:
• Use Case
Overview of UML notations 2/4
• Relation
among
Actors:
Overview of UML notations 2/4
• Relation
among
Actors:
• Relation
among
Use Cases
Overview of UML notations 3/4
• Classes:
Overview of UML notations 3/4
• Classes:
• Relations
Overview of UML notations 3/4
• Classes:
• Relations
Overview of UML notations 3/4
• Classes:
• Relations
Overview of UML notations 3/4
• Classes:
Association Composition
• Relations
Aggregation Dependency
Overview of UML notations 4/4
• Relations
Inheritance
Realization
Package Diagrams
Package diagrams are used to reflect the organisation of packages and their elements.
When used to represent class elements, package diagrams provide a visualization of the
namespaces.
The most common use for package diagrams is to organise use case diagrams and class
diagrams, although the use of package diagrams is not limited to these UML elements.
InputOutpout Graphics
A component diagram has a higher level of abstraction than a Class Diagram - usually a
component is implemented by one or more classes (or objects) at runtime. They are building
blocks so a component can eventually encompass a large portion of a system.
UserAuthorisation ProfileCreation
ProfileCreation
ProfileCreation
UserAuthorisation
Deployment Diagrams
Activity diagrams show the workflow from a start point to the finish point
detailing the many decision paths that exist in the progression of events
contained in the activity.
State Machine Diagrams
A state machine diagram models the behaviour of a single object,
specifying the sequence of events that an object goes through during its
lifetime in response to events.
As an example, the following state machine diagram shows the states that
a door goes through during its lifetime.
Key points
UML 2.0 as a defacto standard for software modelling allows Structural and
Behavioral Modeling of Software
Class Diagrams
Use case Diagrams
Sequence Diagrams
Package Diagram
Deployment Diagrams
Component Diagrams
Activity Diagram
State Machine Diagram