05 - Ch5 System Modeling
05 - Ch5 System Modeling
ENGINEERING
CO3001
Context models
Interaction models
Structural models
Behavioral models
Model-driven engineering
An external perspective
models the context or environment of the system.
An interaction perspective
models the interactions between a system and its
environment, or between the components of a system.
A structural perspective
models the organization of a system or the structure of
the data that is processed by the system.
A behavioral perspective
models the dynamic behavior of the system and how it
responds to events.
Sep 2019 CHAPTER 5 SYSTEM MODELING 5
SYSTEM PERSPECTIVES - EXAMPLE
http://www.youtube.com/watch?v=24Zxr2KHW6s
Biogas system
http://www.youtube.com/watch?v=FxIs2GVsqgY
Coffee maker
Context models simply show the other systems in the environment, not
how the system being developed is used in that environment.
our system
Sep 2019 CHAPTER 5 SYSTEM MODELING 14
INTERACTION PERSPECTIVES
Alternative x:
…
Exceptions: Exception 1:
…
Exception x:
…
Sep 2019
Notes and Issues: CHAPTER 5 SYSTEM MODELING 21
A USE-CASE EXAMPLE
Use-case name Search club events
Actor A member of the public (MP)
Description The MP is searching for club events on a particular date.
Preconditions The MP is at the university home page.
Normal Flow 1. MP selects “Search Events” on MP home page
2. System presents a page with choice of dates for the current month
3. MP selects a date from among the choices
4. System presents a page with events for that date, giving time and
club name
5. MP selects an event
6. System presents a page with details of that event, including
location, description and cost
Exceptions Exception 1: at step 4
4a. If there are no events for the selected date, System presents a
page saying that there are no events for the selected date
Alternative Flows Alternative 1: at step 3
3a. MP selects a different month
3b. System presents a page with choice of dates for the month
Sep 2019 Continue step 3 in the normal flow CHAPTER 5 SYSTEM MODELING 22
MORE USE-CASE ANNOTATION
Note:
1. If in seq. diagram A ---- method1(xxx) ----> B,
then “method1” is of A or B?
Stimuli:
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 is not always the case.
Sep 2019 CHAPTER 5 SYSTEM MODELING 41
DATA-DRIVEN MODELING
Data-Flow-Diagrams ( DFD) ?
Not UML
Sep 2019 CHAPTER 5 SYSTEM MODELING 42
AN ACTIVITY MODEL OF THE INSULIN PUMP’S
OPERATION
Swimming lane