SlideShare a Scribd company logo
Sequence Diagram
Sequence Diagram
 Menggambarkan interaksi antar objek di dalam dan di
sekitar sistem (termasuk pengguna, display, dan
sebagainya) berupa message yang digambarkan
terhadap waktu
 Biasa digunakan untuk menggambarkan skenario atau
rangkaian langkah-langkah yang dilakukan sebagai
respons dari sebuah event untuk menghasilkan output
tertentu.
 Diawali dari apa yang men-trigger aktivitas tersebut,
proses dan perubahan apa saja yang terjadi secara
internal dan output apa yang dihasilkan.
Sequence Diagram
 Sequence diagram terdiri atas:
 Dimensi vertikal (waktu)
 Dimensi horizontal (objek-objek yang terkait).
 Masing-masing objek, termasuk aktor, memiliki
lifeline vertikal.
 Diagram ini secara khusus berasosiasi dengan
use case diagram
 Memperlihatkan tahap demi tahap apa yang
seharusnya terjadi untuk menghasilkan sesuatu
didalam use case
Simbol yang digunakan
Simbol...
Partisipant / Object Lifeline
 Pada UML 1 disebut dengan nama Obyek
 Diletakkan dari kiri ke kanan
 Setiap Partisipant terhubung dengan lifeline
 Standar penamaan
 Instance Name : Class Name
Time / Lifeline
 Mewakili waktu pada arah vertikal, dimulai dari
atas ke bawah
 Garis putus-putus yang menempel di partisipant
lifeline
Action
 Mewakili sebuah eksekusi operasi dari
partisipant
 Kotak kecil segiempat di lifeline
 Panjang kotak berbanding lurus dengan durasi
activation
Message
 Message berpindah dari 1 lifeline ke lifeline
yang lain
 Message yan pertama kali muncul di SSD
terletak paling atas, kemudian message yang
berikutnya berada di bawahnya
 Terdapat 3 macam :
 Synchronus
 Asynchronus
 Reply / Return
Message…
 Synchronous
● Pesan yang dikirim oleh 1 obyek ke
obyek lain dan obyek pertama
menunggu sampai hasil aksi
selesai.
 Asynchronous
● Pesan yang dikirim oleh 1 obyek ke
obyek lain dan obyek pertama tidak
menunggu sampai hasil aksi
selesai.
 Reply/Return
● Menunjukkan nilai kembali dari
obyek ke obyek yang mengirim
pesan
Message …
 the analyst object makes a call to the system object which is an instance of
the ReportingSystem class.
 The analyst object is calling the system object's getAvailableReports
method.
 The system object then calls the getSecurityClearance method with the
argument of userId on the secSystem object, which is of the class type
SecuritySystem
 the secSystem object returns userClearance to the system object when the
getSecurityClearance method is called.
 The system object returns availableReports when the getAvailableReports
method is called.
12
Sequence and Collaboration
Diagrams 12
Fun Example Objects
13
Sequence and Collaboration
Diagrams 13
Fun Example
Sequence diagram
14
Sequence and Collaboration
Diagrams 14
Fun Example
Sequence diagram
Recursive
 Suatu Obyek yang memanggil dirinya sendiri
 Digambarkan dengan menambah kotak kecil pada
activation
 Cotoh : system object memberi pesan ke dirinya sendiri :
menentukan Laporan apa saja yang ada
Hapus Partisipant
 Partisipant bisa menghapus dirinya sendiri
atau bisa juga dihapuskan oleh object lain
Petunjuk membuat SD
1. Mengacu ke skenario Use Case / Stimulus-
Response
2. Identifikasi participant objects
3. Gambar lifelines untuk tiap object
4. Gambar duration tiap object pada lifeline
5. Tambahkan object messages dari atas ke
bawah pada diagram (time-based)
6. Check ulang diagram untuk
kelengkapannya
Guards
 Kondisi : suatu syarat agar message dikirim
 the guard is the text "[pastDueBalance = 0]." By having the
guard on this message, the addStudent message will only be
sent if the accounts receivable system returns a past due
balance of zero
Combined fragments
  digunakan untuk mengelompokkan
message, tergantung kondisi tertentu
  disebut juga Interaction Fragment
(Kerangka Interaksi)
 UML 2 specification mengidentifikasi 11
operator untuk combined fragments.
Format Combined
op (operator):
applied to the enclosed interaction(s)
(some operators require arguments, such as diagrams names,
parameters, constants and guards)
[guard]:
a boolean expression
the interaction is executed according
to the guard’s value
diagram name:
needed if we want to refer to a diagram defined elsewhere
interaction:
a (fragment of a) sequence diagram (it can
contain other frames)
if we need to enclose more interactions,
we’ll separate them with an outlined line
(see next slide)
op [:arguments]
diagram name | interaction
[ [guard] ]
Contoh
 satu set interactions dipisahkan dengan garis
putus-putus
 interaction_i dijalankan jika guard_i bernilai
benar
op
interaction_1
[guard_1]
…
interaction_n
[guard_n]
Operator Combined Fragment
 Alternatives (alt)
 choice of behaviors – at most one will execute
 depends on the value of the guard (“else” guard
supported)
 Option (opt)
 Special case of alternative  hanya berisi 2 pilihan
 Break (break)
 Represents an alternative that is executed instead of
the remainder of the fragment (like a break in a loop)
 Parallel (par)
 Concurrent (interleaved) sub-scenarios, fragmen
berjalan secara pararel
 Negative (neg)
 Identifies sequences that must not occur (interaksi
yang salah)
Operator…
 Critical Region (region)
 Fragmen tidak dapat disela dengan kejadian lain
pada participating lifeline
 Loop (loop)
 Optional guard: [<min>, <max>, <Boolean-
expression>]
 Tanpa Guard berarti tidak ada batas
Alternative
Option
if a student's past due balance equals zero, then the addStudent,
getCostOfClass, and chargeForClass messages are sent. If the student's past
due balance does not equal zero, then the sequence skips sending any of the
messages in the option combination fragment.
Loop
Ref
Ref…
Break
 almost identical in every
way to the option combined
fragment, with two
exceptions.
 a break's frame has a
namebox with the text
"break" instead of "option."
 when a break combined
fragment's message is to be
executed, the enclosing
interaction's remainder
messages will not be
executed because the
sequence breaks out of the
enclosing interaction
 Breaks are most commonly
used to model exception
handling
Pararel
Contoh SD
online-bookshop
Contoh SD Pemesanan Buku
Put in shopping cart
Verify availability
Return availability
Buy shopping cart
Verivy customer
Send order
Return Customer chek
Customer
Cart Catalog Authentication Order
Proses pemesanan buku
Contoh SD FB Otentifikasi
Diambil dari : Hendra
Diambil dari : Hendra
Latihan
1. Amati Halaman Kuliah online dan content
yang terdapat pada kuliah online beserta
inputan, proses dan outputnya
2. Berdasarkan pengamatan anda buatlah
diagram use case, scenario, activity dan
sequence.

More Related Content

PDF
[RPL2] Sequence Diagram
PDF
TD-635-05-PSBO
PPTX
Diagram Sequence.pptx
PPTX
pertemuan-ketigabelas13#Sequence Diagram.pptx
PPTX
Sequence diagram
PDF
5_Sequence Diagram for you data flow diagram
PDF
Sequence Diagram
PPT
Sequence diagram
[RPL2] Sequence Diagram
TD-635-05-PSBO
Diagram Sequence.pptx
pertemuan-ketigabelas13#Sequence Diagram.pptx
Sequence diagram
5_Sequence Diagram for you data flow diagram
Sequence Diagram
Sequence diagram

Similar to Sequence Diagram.ppt (20)

PPTX
Proyek TI - Chapter 12
PPT
Uml
PPT
Pertemuan 6-1-apbo-interaction-diagram
PPT
Sequence Diagram
PDF
Bab 8 interaction diagram 2010
PPT
12655598.ppt
DOCX
Uml(unified modelling language)
PDF
Pengenalan UML (Unified Modelling Language)
PDF
Terapan Terapi
PPT
MATERI UML(Unified Modelling Language)
PPT
bahanajaruml-150609085409-lva1-app6891.ppt
PDF
Tukang gypsum 081381278719
DOC
Lap.praktikum
PDF
[RPL2] Activity Diagram
PPTX
Materi tentang UML Diagram ya adik adik.pptx
PDF
Otomatisasi sistem perparkiran
PDF
Modul uml
PPTX
Diagram Class dan Diagram Object presentasi
PPTX
Tugas 03 0916-gunawan suyanto-1512510205
Proyek TI - Chapter 12
Uml
Pertemuan 6-1-apbo-interaction-diagram
Sequence Diagram
Bab 8 interaction diagram 2010
12655598.ppt
Uml(unified modelling language)
Pengenalan UML (Unified Modelling Language)
Terapan Terapi
MATERI UML(Unified Modelling Language)
bahanajaruml-150609085409-lva1-app6891.ppt
Tukang gypsum 081381278719
Lap.praktikum
[RPL2] Activity Diagram
Materi tentang UML Diagram ya adik adik.pptx
Otomatisasi sistem perparkiran
Modul uml
Diagram Class dan Diagram Object presentasi
Tugas 03 0916-gunawan suyanto-1512510205
Ad

Recently uploaded (20)

PDF
lembar kerja LMS tugas pembelajaran mendalam
DOCX
Modul Ajar Pembelajaran Mendalam Senbud Seni Rupa Kelas XII Terbaru 2025
PDF
Deck Rumah Pendidikan untuk Mendukung Program Prioritas Kemendikdasmen.pdf
PDF
Digital Statecraft Menuju Indonesia Emas 2045: Diplomasi Digital, Ketahanan N...
PPTX
Rancangan Kegiatan Kokurikuler SMP N 1 Karanggede
PDF
KASUS_INKUIRI_KOLABORATIF_KELAS_BAWAH-ISI-ARNI.pdf
DOCX
Modul Ajar Pembelajaran Mendalam Senbud Seni Tari Kelas XII Terbaru 2025
DOCX
Lembar Kerja Mahasiswa Information System
PPTX
Keterbatasan-Fasilitas-dalam-Mengajar-KKA.pptx
DOCX
Modul Ajar Deep Learning PKWU Rekayasa Kelas 12 SMA Terbaru 2025
PDF
PPT IPS Geografi SMA Kelas X_Bab 1 Pengantar Geografi_May.pdf
PPTX
Bahan Tayang OJT Pembelajaran Mendalam KS
DOCX
CONTOH RANCANGAN MODUL PROYEK KOKURIKULER SMA 1.docx
PPTX
Slide PPT Metode Ilmiah Kelas 7 SMP.pptx
DOCX
Modul Ajar Deep Learning PJOK Kelas 10 SMA Terbaru 2025
PPTX
PPT SURAT AL FIL LOMBA MAPSI SEKOLAH DASAR
DOCX
Modul Ajar Deep Learning PJOK Kelas 12 SMA Terbaru 2025
DOCX
Modul Ajar Deep Learning Biologi Kelas 10 SMA Terbaru 2025
PPTX
MATERI MPLS TENTANG KURIKULUM DAN KEGIATAN PEMBELAJARAN
DOCX
Modul Ajar Pembelajaran Mendalam Senbud Seni Teater Kelas XII Terbaru 2025
lembar kerja LMS tugas pembelajaran mendalam
Modul Ajar Pembelajaran Mendalam Senbud Seni Rupa Kelas XII Terbaru 2025
Deck Rumah Pendidikan untuk Mendukung Program Prioritas Kemendikdasmen.pdf
Digital Statecraft Menuju Indonesia Emas 2045: Diplomasi Digital, Ketahanan N...
Rancangan Kegiatan Kokurikuler SMP N 1 Karanggede
KASUS_INKUIRI_KOLABORATIF_KELAS_BAWAH-ISI-ARNI.pdf
Modul Ajar Pembelajaran Mendalam Senbud Seni Tari Kelas XII Terbaru 2025
Lembar Kerja Mahasiswa Information System
Keterbatasan-Fasilitas-dalam-Mengajar-KKA.pptx
Modul Ajar Deep Learning PKWU Rekayasa Kelas 12 SMA Terbaru 2025
PPT IPS Geografi SMA Kelas X_Bab 1 Pengantar Geografi_May.pdf
Bahan Tayang OJT Pembelajaran Mendalam KS
CONTOH RANCANGAN MODUL PROYEK KOKURIKULER SMA 1.docx
Slide PPT Metode Ilmiah Kelas 7 SMP.pptx
Modul Ajar Deep Learning PJOK Kelas 10 SMA Terbaru 2025
PPT SURAT AL FIL LOMBA MAPSI SEKOLAH DASAR
Modul Ajar Deep Learning PJOK Kelas 12 SMA Terbaru 2025
Modul Ajar Deep Learning Biologi Kelas 10 SMA Terbaru 2025
MATERI MPLS TENTANG KURIKULUM DAN KEGIATAN PEMBELAJARAN
Modul Ajar Pembelajaran Mendalam Senbud Seni Teater Kelas XII Terbaru 2025
Ad

Sequence Diagram.ppt

  • 2. Sequence Diagram  Menggambarkan interaksi antar objek di dalam dan di sekitar sistem (termasuk pengguna, display, dan sebagainya) berupa message yang digambarkan terhadap waktu  Biasa digunakan untuk menggambarkan skenario atau rangkaian langkah-langkah yang dilakukan sebagai respons dari sebuah event untuk menghasilkan output tertentu.  Diawali dari apa yang men-trigger aktivitas tersebut, proses dan perubahan apa saja yang terjadi secara internal dan output apa yang dihasilkan.
  • 3. Sequence Diagram  Sequence diagram terdiri atas:  Dimensi vertikal (waktu)  Dimensi horizontal (objek-objek yang terkait).  Masing-masing objek, termasuk aktor, memiliki lifeline vertikal.  Diagram ini secara khusus berasosiasi dengan use case diagram  Memperlihatkan tahap demi tahap apa yang seharusnya terjadi untuk menghasilkan sesuatu didalam use case
  • 6. Partisipant / Object Lifeline  Pada UML 1 disebut dengan nama Obyek  Diletakkan dari kiri ke kanan  Setiap Partisipant terhubung dengan lifeline  Standar penamaan  Instance Name : Class Name
  • 7. Time / Lifeline  Mewakili waktu pada arah vertikal, dimulai dari atas ke bawah  Garis putus-putus yang menempel di partisipant lifeline
  • 8. Action  Mewakili sebuah eksekusi operasi dari partisipant  Kotak kecil segiempat di lifeline  Panjang kotak berbanding lurus dengan durasi activation
  • 9. Message  Message berpindah dari 1 lifeline ke lifeline yang lain  Message yan pertama kali muncul di SSD terletak paling atas, kemudian message yang berikutnya berada di bawahnya  Terdapat 3 macam :  Synchronus  Asynchronus  Reply / Return
  • 10. Message…  Synchronous ● Pesan yang dikirim oleh 1 obyek ke obyek lain dan obyek pertama menunggu sampai hasil aksi selesai.  Asynchronous ● Pesan yang dikirim oleh 1 obyek ke obyek lain dan obyek pertama tidak menunggu sampai hasil aksi selesai.  Reply/Return ● Menunjukkan nilai kembali dari obyek ke obyek yang mengirim pesan
  • 11. Message …  the analyst object makes a call to the system object which is an instance of the ReportingSystem class.  The analyst object is calling the system object's getAvailableReports method.  The system object then calls the getSecurityClearance method with the argument of userId on the secSystem object, which is of the class type SecuritySystem  the secSystem object returns userClearance to the system object when the getSecurityClearance method is called.  The system object returns availableReports when the getAvailableReports method is called.
  • 12. 12 Sequence and Collaboration Diagrams 12 Fun Example Objects
  • 13. 13 Sequence and Collaboration Diagrams 13 Fun Example Sequence diagram
  • 14. 14 Sequence and Collaboration Diagrams 14 Fun Example Sequence diagram
  • 15. Recursive  Suatu Obyek yang memanggil dirinya sendiri  Digambarkan dengan menambah kotak kecil pada activation  Cotoh : system object memberi pesan ke dirinya sendiri : menentukan Laporan apa saja yang ada
  • 16. Hapus Partisipant  Partisipant bisa menghapus dirinya sendiri atau bisa juga dihapuskan oleh object lain
  • 17. Petunjuk membuat SD 1. Mengacu ke skenario Use Case / Stimulus- Response 2. Identifikasi participant objects 3. Gambar lifelines untuk tiap object 4. Gambar duration tiap object pada lifeline 5. Tambahkan object messages dari atas ke bawah pada diagram (time-based) 6. Check ulang diagram untuk kelengkapannya
  • 18. Guards  Kondisi : suatu syarat agar message dikirim  the guard is the text "[pastDueBalance = 0]." By having the guard on this message, the addStudent message will only be sent if the accounts receivable system returns a past due balance of zero
  • 19. Combined fragments   digunakan untuk mengelompokkan message, tergantung kondisi tertentu   disebut juga Interaction Fragment (Kerangka Interaksi)  UML 2 specification mengidentifikasi 11 operator untuk combined fragments.
  • 20. Format Combined op (operator): applied to the enclosed interaction(s) (some operators require arguments, such as diagrams names, parameters, constants and guards) [guard]: a boolean expression the interaction is executed according to the guard’s value diagram name: needed if we want to refer to a diagram defined elsewhere interaction: a (fragment of a) sequence diagram (it can contain other frames) if we need to enclose more interactions, we’ll separate them with an outlined line (see next slide) op [:arguments] diagram name | interaction [ [guard] ]
  • 21. Contoh  satu set interactions dipisahkan dengan garis putus-putus  interaction_i dijalankan jika guard_i bernilai benar op interaction_1 [guard_1] … interaction_n [guard_n]
  • 22. Operator Combined Fragment  Alternatives (alt)  choice of behaviors – at most one will execute  depends on the value of the guard (“else” guard supported)  Option (opt)  Special case of alternative  hanya berisi 2 pilihan  Break (break)  Represents an alternative that is executed instead of the remainder of the fragment (like a break in a loop)  Parallel (par)  Concurrent (interleaved) sub-scenarios, fragmen berjalan secara pararel  Negative (neg)  Identifies sequences that must not occur (interaksi yang salah)
  • 23. Operator…  Critical Region (region)  Fragmen tidak dapat disela dengan kejadian lain pada participating lifeline  Loop (loop)  Optional guard: [<min>, <max>, <Boolean- expression>]  Tanpa Guard berarti tidak ada batas
  • 25. Option if a student's past due balance equals zero, then the addStudent, getCostOfClass, and chargeForClass messages are sent. If the student's past due balance does not equal zero, then the sequence skips sending any of the messages in the option combination fragment.
  • 26. Loop
  • 27. Ref
  • 29. Break  almost identical in every way to the option combined fragment, with two exceptions.  a break's frame has a namebox with the text "break" instead of "option."  when a break combined fragment's message is to be executed, the enclosing interaction's remainder messages will not be executed because the sequence breaks out of the enclosing interaction  Breaks are most commonly used to model exception handling
  • 32. Contoh SD Pemesanan Buku Put in shopping cart Verify availability Return availability Buy shopping cart Verivy customer Send order Return Customer chek Customer Cart Catalog Authentication Order Proses pemesanan buku
  • 33. Contoh SD FB Otentifikasi
  • 34. Diambil dari : Hendra
  • 35. Diambil dari : Hendra
  • 36. Latihan 1. Amati Halaman Kuliah online dan content yang terdapat pada kuliah online beserta inputan, proses dan outputnya 2. Berdasarkan pengamatan anda buatlah diagram use case, scenario, activity dan sequence.