Professional Documents
Culture Documents
in the textbook
1 2
3 4
System Modeling UML Diagrams
Notation to represent the models: Well discuss these UML Diagrams
- Graphical/diagrams
(UML=Unified Modeling Language)
Activity diagrams: the activities in a process.
- Formal/mathematical (ch 12) Use case diagrams: interactions between a
system and its environment.
Models of the new system are used in:
Sequence diagrams: interactions between
- Requirements development
actors and the system and components.
- Design process
- Model-driven engineering Class diagrams: classes in the system and
the associations between these classes.
Precision, completeness: not always necessary
State diagrams: how the system reacts to
events.
5 6
7 8
Fig 5.1: The context of the MHC-PMS Process Model
system
Dynamic view
Patient record
system
system
system
Shows how system is used in business
Management
reporting
Admissions
system
processes
system
system
MHC-PMS UML Activity diagram
system system - Shows activity and flow of control
HC statistics Prescription
system
system
system filled circle: start
Appointments
system
filled concentric circle: finish
rounded rectangles: activities
rectangles: other objects (the different systems in fig 5.2)
Note: <<system>> is an example of a stereotype in UML arrows: flow of work
A mechanism to categorize an element in some way diamonds: branch (and merge)
guards: condition under which flow is taken out of branch
solid bar: activity coordination/concurrency control (fork, join)
9 10
Confirm police station
detention
decision Find secure Uses:
place
[dangerous]
[available]
Transfer to
secure hospital
Inform
social care
- user and system: developing requirements
Inform
patient of Inform next
- system components: help to understand flow of control
rights of kin
in an object oriented system
Record Update
Admit to
detention register
system MHC-PMS
system
MHC-PMS
Admissions
system Sequence Diagrams: components and external
actors in more detail
Note: This diagram is missing one branch and 2 merge diamonds
11 12
5.2.1 Use Case Modeling Fig 5.3: Transfer data use case
Example of a UML Use case diagram
Main purpose: requirements elicitation + analysis
Overview of one discrete user/system interaction
- Focusing on one goal of the actor
- stick figure: actor (user or system) Medical receptionist Patient record system
- ellipse: named interaction (verb-noun)
- line: indicates involvement in interaction
Note: arrows are not part of UML, but shows direction of data flow
Diagram is supplemented with further details Note: primary actor on left, supporting actor on right
- textual description
- structured description (form/template/table)
- sequence diagram(s)
13 14
15 16
5.2.2 Sequence Diagram Fig 5.6: View patient information
Example of a UML Sequence diagram
Models the interactions between actors and
objects within a system in some detail Medical Receptionist
A window from the user interface
Shows the sequence of interactions in a given use P: PatientInfo D: MHCPMS-DB AS: Authorization
alt
objects and actors: listed across top with dotted lines going down [authorization OK] Patient info
boxes on dotted line: lifetime of object (in this interaction)
dotted arrows between lines from objects: interactions [authorization fail] Error (no access)
annotations on arrows: calls to objects with parameters, return values
box named alt with conditions in brackets: for branching/alternatives
17 18
Implementation:
- Details are required:
- Interfaces to method calls between objects
- Source of parameters in method calls
19