0% found this document useful (0 votes)
6 views9 pages

Lecture Software Modelling - UML 2

Uploaded by

Laiba Anwaar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views9 pages

Lecture Software Modelling - UML 2

Uploaded by

Laiba Anwaar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Lecture-

20
University of Management & Technology
School of Systems and Technology

Software Engineering
CC-2101

Software Modelling – Using


UML
Structural & Behavioural
Models
Somerville | Ch-5 (Pg.
149)
Structural models
• Structural models of software display the organization of
a system in terms of the components that make up that
system and their relationships.

• Structural models may be static models, which show the


structure of the system design, or dynamic models, which
show the organization of the system when it is executing.

• You create structural models of a system when you are


discussing and designing the system architecture.

2
Class diagrams
• Class diagrams are used when developing an object-
oriented system model to show the classes in a system
and the associations between these classes.

• An object class can be thought of as a general definition


of one kind of system object.

• An association is a link between classes that indicates


that there is some relationship between these classes.

• When you are developing models during the early stages of


the software engineering process, objects represent
something in the real world, such as a patient, a
prescription, doctor, etc. 3
UML classes and association

4
Classes and associations in the Hospital system

5
Behavioral models
• Behavioral models are models of the dynamic
behavior of a system as it is executing.
• They show what happens or what is supposed
to happen when a system responds to a stimulus
from its environment.
• You can think of these stimuli as being of two types:
• Data Some data arrives that has to be processed by the
system.

• Events Some event happens that triggers system


processing. Events may have associated data, although this 6

is not always the case.


State machine models
• These model the behaviour of the system in response to
external and internal events.

• They show the system’s responses to stimuli so are


often used for modelling real-time systems.

• State machine models show system states as nodes


and events as arcs between these nodes. When an
event occurs, the system moves from one state to
another.

• State charts are an integral part of the UML and are


used to represent state machine models. 7
8
Thankyou
Q&A

You might also like