System Analysis & Design
B Y
D R A B D U L L A H A L Z A H R A N I د . ﻲ ﻧ ا ﺮ ھ ﺰ ﻟ ا ﻦ ﻤ ﺣ ﺮ ﻟ ا ﺪ ﺒ ﻋ ﻦ ﺑ ﷲ ﺪ ﺒ ﻋ
A A H Z A H R A N I @ U Q U . E D U . S A
PART 9 – UML diagrams
Unified Modeling Language (UML)
The Unified Modeling Language (UML) is an industry standard for modeling object-oriented systems.
DR ABDULLAH ALZAHRANI.
UML Diagrams
Structural diagrams
Used to describe the relation between classes
Behavior diagrams
Used to describe the interaction between people (actors) and a use case
(how the actors use the system)
UML Structural Diagrams
Class diagrams
Object diagrams
Component diagrams
Deployment diagrams
DR ABDULLAH ALZAHRANI.
UML Behavioral Diagrams
Use case diagrams
Sequence diagrams
Collaboration diagrams
Statechart diagrams
Activity diagrams
Commonly Used UML Diagrams
Use case diagram
Describing how the system is used
The starting point for UML modeling
Use case scenario
A verbal articulation of exceptions to the main behavior described by the primary use case
Activity diagram
Illustrates the overall flow of activities
DR ABDULLAH ALZAHRANI.
Commonly Used UML Diagrams (continued)
Sequence diagrams
Show the sequence of activities and class relationships
Class diagrams
Show classes and relationships
Statechart diagrams
Show the state transitions
Use Case Modeling
Describes what the system does, without describing how the system does it
Based on the interactions and relationships of individual use cases
DR ABDULLAH ALZAHRANI.
Use Case Modeling (2)
Use case – a behaviourally related sequence of steps
(scenario), both automated and manual, for the purpose of completing a single business task.
Description of system functions from the perspective of external users in terminology they understand.
Use-case diagram – a diagram that depicts the interactions between the system and external systems and users.
graphically describes who will use the system and in what
ways the user expects to interact with the system.
A Use Case scenario example
(Cont.)
DR ABDULLAH ALZAHRANI.
(Cont.)
DR ABDULLAH ALZAHRANI.
A Use Case Example of Student
Enrollment
Class Diagrams
Show the static features of the system and do not represent any particular processing
Show the nature of the relationships between classes
Show data storage requirements as well as
processing requirements
DR ABDULLAH ALZAHRANI.
Class Diagrams (continued)
Class Diagram main components
1. Classes
2. Attributes/fields
Private
Public
Protected
3. Methods/operations
Standard
Custom
DR ABDULLAH ALZAHRANI.
DR ABDULLAH ALZAHRANI.
A Class Diagram for Course Offerings
DR ABDULLAH ALZAHRANI.
lifeline
DR ABDULLAH ALZAHRANI.
DR ABDULLAH ALZAHRANI.
End
DR ABDULLAH ALZAHRANI. [email protected]