25
Desain slide ini dadaptasi dari University of San Fransisco 10. System Sequence Diagram SIF15001 Analisis dan Perancangan Sistem Informasi Agi Putra Kharisma, S.T., M.T. Genap 2014/2015

10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Embed Size (px)

Citation preview

Page 1: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Desain slide ini dadaptasi dari University of San Fransisco

10. System Sequence Diagram

SIF15001

Analisis dan Perancangan Sistem Informasi

Agi Putra Kharisma, S.T., M.T.

Genap 2014/2015

Page 2: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Yang Sudah Dibuat

1. General View

2. Business Use Case Diagram

3. Business Activity Diagram

4. State Machine Diagram

5. System Use Case Diagram

6. Preliminary Conceptual Model

7. Expanded Use Case

Page 3: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Sekarang...

System Sequence Diagram

for achieving more formal and detailed use case descriptions

Page 4: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

System Sequence Diagram

Mendeskripsikan skenario (dapat mengacu pada expanded use case yang telah

dibuat)

Page 5: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Notasi

• Object boxes • actors, subsystems, class instances

• Life lines • vertical line extending down from object

• Messages • horizontal arrows from one life line to another • one object sends a message to another message

Lecture 5a: Sequence Interaction Diagrams – W. Howden

Page 6: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Penting..

The activities related to use case analysis still do not deal with objects

that are internal to the system.

the system must be represented as a

single object: a black box

Page 7: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange
Page 8: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange
Page 9: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Entity-Control-Boundary Pattern

• Actors interact with boundary

objects.

• Boundary objects issue

commands to controller objects.

• Controller objects may send

queries back to the boundary

objects to get more information

from the actors.

• Controllers then update entities.

• Boundaries refresh themselves

as needed to reflect changes

among the entities.

http://www.cs.sjsu.edu/~pearce/modules/patterns/enterprise/ecb/ecb.htm

Page 10: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Notasi Objek Dengan Entity-Controller-Boundary

Pattern

http://www.tracemodeler.com/articles/a_quick_introduction_to_uml_sequence_diagrams/

Page 11: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Hubungan Dengan MVC

Entity-Control-Boundary Pattern merupakan salah satu varian

dari Model-View-Controller Pattern

Page 12: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Bagaimana cara membuat System Sequence

Diagram?

Ada 2 tahap, yaitu:

1. Representing the steps of the use case as information

exchange between actors and the system interface.

2. Representing system operations as methods calling

between the interface and the façade-controller, which

encapsulates the domain tier of the system.

Page 13: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Makna Anak Panah Pada Sequence Diagram

• System event

Action performed by an actor that sends some

information to the system.

• System return

Flow of information from the system to one actor.

• System command

Message that is sent from the interface to

the controller, usually in response to a system event.

• System query

Message that is sent from the interface to the controller in

order to obtain some information from the system.

Page 14: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

System Event

Page 15: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

System Return

Page 16: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

System Command

Page 17: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

System Query

Page 18: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Labelling Pattern

Untuk memudahkan penamaan informasi yang mengalir pada

sequence diagram.

Jenis informasi yang sering digunakan:

• Simple Information

Contoh: nama

• Complex Information

Contoh: <nama, alamat, ttl>

• Collection

Contoh: mahasiswa*

• ..dsb

Page 19: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Strategi Pembuatan System Sequence Diagram (1)

1. Stateless

Controller tidak mengingat parameter dalam interaksi yang

terjadi. Sehingga parameter yang dibutuhkan harus

disertakan pada setiap interaksi yang membutuhkannya.

Page 20: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Contoh Stateless

Page 21: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Strategi Pembuatan System Sequence Diagram (2)

2. Stateful

Controller mengingat parameter dalam interaksi yang

terjadi, sehingga parameter hanya butuh disertakan satu

kali saja.

Page 22: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange
Page 23: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Alternate Flow

Bagaimana menampilkan alternate flow dalam sequence diagram?

Menggunakan fragment alt.

Page 24: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Contoh Alternate Flow Menggunakan Fragment Alt

Page 25: 10. System Sequence Diagram - agipk.lecture.ub.ac.idagipk.lecture.ub.ac.id/files/2015/02/APSI-20142015-10.-System... · 1. Representing the steps of the use case as information exchange

Referensi

Raul Sidnei Wazlawick - Object-Oriented Analysis and Design

for Information Systems