06 - Ch6 System Modeling
06 - Ch6 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
USE OF GRAPHICAL MODELS
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 13
INTERACTION PERSPECTIVES
Use cases were developed originally to support requirements elicitation and now incorporated
into the UML.
http://tynerblain.com/blog/2007/01/22/how-to-write-good-use-case-names/
Sep 2019 CHAPTER 5 SYSTEM MODELING 16
TRANSFER-DATA USE CASE
Alternative x:
…
Exceptions: Exception 1:
…
Exception x:
…
Sep 2019
Notes and Issues: CHAPTER 5 SYSTEM MODELING 20
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 21
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.
Many business systems are data-processing systems that are primarily driven by data. They are
controlled by the data input to the system, with relatively little external event processing.
Data-Flow-Diagrams ( DFD) ?
Not UML
Real-time systems are often event-driven, with minimal data processing. For example, a landline
phone switching system responds to events such as ‘receiver off hook’ by generating a dial tone.
It is based on the assumption that a system has a finite number of states and that events (stimuli)
may cause a transition from one state to another.
Stimulus Description