teknik informatika – universitas trunojoyo http://yusufxyz ... · kumpulan dari use case dan...

18
Muhammad Yusuf Muhammad Yusuf Teknik Informatika – Universitas Trunojoyo Http://yusufxyz.wordpress.com Email : [email protected]

Upload: dotuyen

Post on 17-May-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Muhammad YusufMuhammad Yusuf

Teknik Informatika – Universitas Trunojoyo

Http://yusufxyz.wordpress.com

Email : [email protected]

Page 2: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Use Case Diagrams�UML use case diagrams menggambarkan interaksi

antar manusia atau peralatan eksternal dengan sistem sesuai desain.

�Ada 2 elemen dasar dalam UML use case �Ada 2 elemen dasar dalam UML use case diagrams: ellipse (atau bentuk oval) dan actor. ellipse berisi deskripsi dari interaksi actor yang spesifik yang bekerja dengan sistem sesuai desain. Terkadang ini digunakan untuk merepresentasikan hubungan antara sistem berikutnya. Actor menggambarkan karakteristik interaksi orang atau sesuatu.

Page 3: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Actors

� actor adalah siapa saja atau apa saja yang pasti berinteraksi dengan sistem.

� Actors bukan bagian dari sistem.� Actors bukan bagian dari sistem.

� Dalam UML, actor digambarkan dalam bentuk seperti dibawah ini

Page 4: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Use Cases� use case adalah deskripsi dari sekumpulan urutan aksi,

termasuk variannya.

� use case menggambarkan apa yang dilakukan sistem tetapi tidak secara spesifik bagaimana melakukannya.tetapi tidak secara spesifik bagaimana melakukannya.

� use case merepresentasikan bagian utama dari fungsionalitas yang lengkap dari awal sampai akhir.

Page 5: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Use Cases (Cont’d)� use case harus mengirimkan suatu nilai kepada actor.

� Dalam UML, use case digambarkan sebagai oval seperti gambar dibawah ini :

Page 6: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Use Case Diagrams� use case diagram adalah diagram yang menunjukkan

kumpulan dari use case dan actor serta relationshipnya.

� Actors dapat dihubungkan dengan use case hanya dengan association.

� association antara actor dan use case mengindikasikan bahwa actor dan use case berkomunikasi satu sama lain, seperti mengirim dan menerima pesan .

� Use case diagrams digunakan untuk :� Model context dari system.

� Model kebutuhan dari system

Page 7: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Notation

UseCaseUseCaseA A UseCaseUseCase is a kind of is a kind of behavioredbehavioredclassifier, which represents a declaration classifier, which represents a declaration of an offered behavior. It specifies some of an offered behavior. It specifies some behavior, possibly including variants such behavior, possibly including variants such as exceptional behavior and error as exceptional behavior and error handling, that the subject can perform by handling, that the subject can perform by

communicating with one or more actors.communicating with one or more actors.

Association Association Association represents the Association represents the collaboration between an collaboration between an

actor and a use case.actor and a use case.actor and a use case.actor and a use case.

Actor Actor Actor specifies a role Actor specifies a role played by human users, played by human users, external hardware, or external hardware, or other subjects that other subjects that

interacts with the subject.interacts with the subject.

Include Include Include is a directed relationship Include is a directed relationship between two use cases, which between two use cases, which implies that the behavior of the implies that the behavior of the included use case is inserted into included use case is inserted into the behavior of the including use the behavior of the including use

case.case.

Page 8: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Extend Extend Extend is a relationship Extend is a relationship between two use cases, between two use cases, which specifies how and which specifies how and when the extended use case when the extended use case insert the behavior defined in insert the behavior defined in

the extending use case.the extending use case.

Dependency Dependency A dependency is a relationship A dependency is a relationship implying that a use case requires implying that a use case requires other another use case for its other another use case for its

specification or implementation.specification or implementation.specification or implementation.specification or implementation.

Generalization Generalization A generalization A generalization relationship relates a relationship relates a more general use case more general use case and a more specific use and a more specific use

case.case. ..

Realization Realization A realization relationship A realization relationship link up the specification link up the specification and the implementation of and the implementation of

that specification.that specification.

Page 9: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Note Note A Note is a textual A Note is a textual explication that can be explication that can be attached to set of attached to set of

elements.elements.

Constraint Constraint A constraint specifies condition or A constraint specifies condition or restriction that expressed in restriction that expressed in natural language or machine natural language or machine natural language or machine natural language or machine readable language for declaring readable language for declaring some of the semantics of an some of the semantics of an

element.element.

Package Package A package groups A package groups elements and provide elements and provide them with them with

namespaces.namespaces.

Page 10: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Contoh : ATM (automated teller machines ): Validasi PIN

� Deskripsi1. Customer memasukkan kartu ATM ke dalam Card

Reader.2. Jika system menerima kartu, maka sistem akan membaca

nomor kartu.3. System menerima customer dari nomor PIN4. Customer memasukkan PIN5. System mengecek tanggal kadalwarsa dan apakah kartu

hilang atau dicuri.5. System mengecek tanggal kadalwarsa dan apakah kartu

hilang atau dicuri.6. Jika kartu valid, maka system akan mengecek PIN yang

dimasukkan oleh user apakah sesuai dengan PIN yang ada dalam sistem.

7. Jika nomor sesuai, system mengecek accounts yang sesuai dengan kartu ATM.

8. System men-display customer accounts dan meneriam customer untuk beberapa tipe transaksi : Withdrawal, Query, or Transfer.

Page 11: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

ATM (automated teller machines ): Use Case Model

Page 12: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

ACTIVITY DIAGRAM� Memodelkan alur kerja (workflow) sebuah proses bisnis dan urutan aktivitas

dlm suatu proses.

� Dengan diagram ini dapat memodelkan sebuah alur kerja dari satu aktivitas ke aktivitas lainnya atau dari satu aktivitas ke dalam keadaan sesaat (state).

� Activity Diagram sangat berguna ketika kita ingin menggambarkan perilaku paralel atau menjelaskan bagaimana perilaku dalam berbagai use case berinteraksi.

� Activity Diagrams memiliki elemen2 :

• Action States: sebuah keadaan awal (start state) dan keadaan akhir (end state)

• Activity states: Aktivitas yang menggambarkan satu tahapan dalam workflow tersebut

• Transitions: transisi yang menggambarkan keadaan apa yang mengikuti suatu keadaan lainnya.

• Decision (Keputusan) : elemen yang menyediakan pilihan alur dalam workflow

Page 13: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Symbols

� Starting point

- First activity of the flow

� Activity� Activity

� Decisions

Page 14: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Symbols� Signals (input and output)

Concurrent activity� Concurrent activity

� Final activity

Page 15: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Contoh Activity Diagram

Page 16: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

DATA MODELLING� Data dapat dimodelkan pada banyak level yaitu conceptual,

logical dan physical level. � Conceptual data modeling adalah represntasi dari

organisasi data dalam level yang tinggi. Bertujuan untuk menunjukkan blok bangunan dasar untuk organisasimenunjukkan blok bangunan dasar untuk organisasi

� Logical data modeling menambahkan lebih detail pada conceptual modeling, tetapi tetap but tertuju pada bagaimana organisasi menggunakan data.

� Physical data modeling menambahkan lebih detail, tetapi secara khusu tertuju pada implementasi fisik dari data.

Page 17: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Contoh CDM

Page 18: Teknik Informatika – Universitas Trunojoyo Http://yusufxyz ... · kumpulan dari use case dan actor serta relationshipnya. Actors dapat dihubungkan dengan use case hanya ... Contoh

Contoh PDM