System Modeling
System Modeling
ENGINEERING
SYSTEM MODELING
✓ Context models
✓ Interaction models
✓ Structural models
✓ Behavioral models
✓ Model-driven engineering
2
SYSTEM MODELING
✓ 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
Sep 2019 8
CONTEXT MODELS
10
THE CONTEXT OF THE MENTCARE SYSTEM
11
PROCESS PERSPECTIVE
Context models simply show the other systems in the environment, not how
the system being developed is used in that environment.
12
PROCESS MODEL OF INVOLUNTARY DETENTION
our system
13
INTERACTION PERSPECTIVES
Sep 2019 14
INTERACTION MODELS
17
TABULAR DESCRIPTION OF THE ‘TRANSFER DATA’
USE-CASE
19
Use Case ID:
Alternative x:
…
Exceptions: Exception 1:
…
Exception x:
…
Notes and Issues: 20
A USE-CASE EXAMPLE
Use-case Search club events
name
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 Alternative 1: at step 3 21
MORE USE-CASE ANNOTATION
24
Sep 2019 CHAPTER 5 SYSTEM MODELING 25
ANOTHER SEQUENCE DIAGRAM
26
IN-CLASS ACTIVITY
✓ Note:
1. If in seq. diagram A ---- method1(xxx) ----> B,
then “method1” is of A or B?
Sep 2019 31
CLASSES AND ASSOCIATIONS IN THE MENTCARE
32
THE CONSULTATION CLASS
33
GENERALIZATION
Rather than learn the detailed
characteristics of every entity, place these
entities in more general classes (animals,
cars, houses, etc.) and learn the
characteristics of these classes
34
A GENERALIZATION HIERARCHY WITH ADDED DETAIL
35
OBJECT CLASS AGGREGATION MODELS
36
AGGREGATION VS COMPOSITION RELATIONSHIP
37
DATABASE DIAGRAMS VS CLASS DIAGRAMS
✓ 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
Sep 2019 CHAPTER 5 SYSTEM MODELING 40
DATA-DRIVEN MODELING
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
Sep 2019 CHAPTER 5 SYSTEM MODELING 41