10. System Sequence Diagram -...

Post on 04-Apr-2019

216 views 0 download

Transcript of 10. System Sequence Diagram -...

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

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

Sekarang...

System Sequence Diagram

for achieving more formal and detailed use case descriptions

System Sequence Diagram

Mendeskripsikan skenario (dapat mengacu pada expanded use case yang telah

dibuat)

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

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

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

Notasi Objek Dengan Entity-Controller-Boundary

Pattern

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

Hubungan Dengan MVC

Entity-Control-Boundary Pattern merupakan salah satu varian

dari Model-View-Controller Pattern

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.

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.

System Event

System Return

System Command

System Query

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

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.

Contoh Stateless

Strategi Pembuatan System Sequence Diagram (2)

2. Stateful

Controller mengingat parameter dalam interaksi yang

terjadi, sehingga parameter hanya butuh disertakan satu

kali saja.

Alternate Flow

Bagaimana menampilkan alternate flow dalam sequence diagram?

Menggunakan fragment alt.

Contoh Alternate Flow Menggunakan Fragment Alt

Referensi

Raul Sidnei Wazlawick - Object-Oriented Analysis and Design

for Information Systems