4 IESI Modelling SA
4 IESI Modelling SA
Modelling SA
Konsep dan Modeling
Fajar Pradana S.ST., M.Eng
2
SA Modelling
• Pertama kali dipopulerkan oleh T. DeMarco (1979) Structured
Analysis and System Specification
• Perluasan notasi untuk kebutuhan real-time systems oleh Hatley
dan Pirbhai (1987) – SA/RT Strategies for Real-Time System
Specification
Processes
Data Behavior
3
Elemen-Elemen Pemodelan
Process
Data Object
Specificatio
Description
Data Flown (PSPEC)
ER
Diagram
Diagram
(DFD)
Data
Dictionary
State
Transition
Diagram
(STD)
Control
Specificatio
n (CSPEC)
4
Data Dictionary
Representasi Simbol :
= : composed of + : and
{} : iterations of [….|…] : selection / or
() : optional “ “ : literal
* * : comment/description
Panduan DFD
• Jumlah proses dalam satu diagram DFD : 4 + 2
• Maks. 4 level dekomposisi (DFD/CFD)
• Dekomposisi fungsional (DFD) :
▪ fungsi-fungsi yang saling berhubungan dikelompokkan
▪ fungsi-fungsi yang tidak berhubungan dipisahkan
▪ setiap fungsi dispesifikasi hanya sekali
• Data flow membawa informasi yg diperlukan oleh sebuah proses
untuk transformasi, control flow membawa informasi yang harus
diinterpretasikan untuk merubah perilaku sistem dan/ aktifasi
proses (Trigger)
▪ Proses pemodelan DFD/CFD adalah proses iterasi, tidak sekali jadi
▪ Penjenjangan CFD harus sesuai dengan DFD
9
object
returned coins
0*
customer
selection Vend
Customer Customer
product
slug
product
coin return
request product
available
10
1* 5* returned
slug Get payment Dispense coins
customer change
payment sufficient change due
coin detected payment 3p
Validate product
payment product
price 6p
available product
2p Dispense
dispensed
Get product
product 4p valid
valid
price Get valid selection
price table selection
selection
customer product products
selection available
11
coin return
request
product
change due
available
5.2p
Get payment coins
coins payment
coin
payment
12
PSPEC
• Inputs : payment (data in)
• price (data in)
• Outputs : change due (data out)
• sufficient payment (control out)
• Body :
• IF payment >= price THEN
• change due = payment – price
• sufficient payment = TRUE
• ELSE
• change due = 0
• sufficient payment = FALSE
• END IF
13
CSPEC
get
coin return product get change
payment
request available coin
coin
TRUE TRUE 1 0
D/C FALSE 0 1
14
a e
incoming
flow d
c
transfor
h
m center f
g
• Transaction flow :
outgoing
flow
transactio b
transactio n center
n
a c f
action
path d e
g
h
17
Transform Mapping
• Langkah-langkah Transform Mapping :
▪ Review dan refine DFD sampai ke level paling bawah
▪ Tentukan apakah DFD tsb. memiliki karakteristik tipe transform flow
atau transaction flow
▪ Tentukan batas antara incoming flow, transform center dan outgoing
flow
▪ Bangun first level factoring
▪ Bangun second level factoring
▪ Refine first iteration
• Contoh Transform Mapping : SafeHome Security Software
18
Contoh
start stop 3
password Activate
/deactivat
e sytem
A/D msg. 4
5* display Control
valid ID msg. Display information
Process panel
messages
password display
and status
sensor
Alarm
information
6*
sensor status alarm type
Sensors Monitor
Telephone
sensors telephone number tones line
19
Contoh
• Level 2
6.3*
Format sensor
for information
display
configuration
information configuration sensor ID, type,
data location 6.4
Generate alarm type
6.2* alarm
Assess signal
against alarm data
setup
telephone
6.1 sensor ID, type number
Read
sensors
sensor status
6.5*
Dial
phone telephone
number tones
20
Contoh
• Level 3 configuration
formated ID, sensor
information
type, 9
information
location Generate
6 display telephone
configuration Format
number tones
data display
sensor status
7
sensor ID, alarm type
Generate
type, location alarm
8
1 signal
Generate
Read 2 alarm data pulses to
sensors Acquire
3 line
response
sensor ID, type info Establish
4 tone ready
alarm
alarm cond. conditions Select telephone
list of phone 5 number
code, sensor
numbers number Set up
ID, timing
conn. to
information telephone
phone net
number
21
Contoh
• First Level Factoring
configuration
information
9
6
1
2 7
3
4
5 8
Monitor
sensors
executive
Contoh
• Refine first iteration : Monitor sensors
Monitor
sensors
executive
Generate
pulses to line
Transaction Mapping
• Langkah-langkah Transaction Mapping :
▪ Review dan refine DFD sampai ke level paling bawah
▪ Tentukan apakah DFD tsb. memiliki karakteristik tipe transform flow
atau transaction flow
▪ Tentukan batas antara incoming path/transaction, transaction center
dan action path
▪ Bangun first level factoring
▪ Bangun second level factoring
▪ Refine first iteration
• Contoh Transaction Mapping : SafeHome Security Software
25
Transaction Mapping
• Transaction structuring
Transaction
control
a
Reception
b d Dispatcher
path
b a c1
q r s
d
p
p
s
26
Invoke
Read user
command
command
processing
System Password
Activate
configuration processing
/deactivate system
controller controller
Generate
System Activate Password
pulses to line
configuration /deactivate processing
controller system controller
Terima Kasih
Ada Pertanyaan