Matakuliah : M0086/Analisis dan Perancangan Sistem Informasi Tahun : 2005 Versi : 5 Pertemuan 13 Behavior
Mahasiswa dapat Memberikan definisi perilaku sistem (C1) Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Mahasiswa dapat Memberikan definisi perilaku sistem (C1) Mahasiswa dapat Menghubungkan pola behaviour (C3) Mahasiswa dapat Membuat diagram / skema Statechart (C4)
Notasi yang digunakan untuk menggambarkan Behaviour Explore Pattern Outline Materi Event Trace Behaviour Pattern Notasi yang digunakan untuk menggambarkan Behaviour Explore Pattern
Problem Domain Analysis System Definition Behaviour Classes Structure Model
Describe behavioural patterns Event table and class diagram Explore patterns Describe behavioural patterns Consider structures and classes Describe attributes Behavioural patterns with attributes
Definisi Event Trace Behavioural Pattern Attribute Urutan dari event yang terjadi pada suatu object Behavioural Pattern Daftar kemungkinan event traces yang terjadi pada semua object didalam class Attribute Keterangan property dari class atau event
Menjelaskan Behaviour Perlu dibuat untuk setiap class Coba buat typical behaviour (event trace) terlebih dahulu, baru kemudian ditambahkan behaviour yang ada Hasilnya adalah behavioural pattern Kumpulan pola event dari kemungkinan urutan event untuk object didalam class Ditampilkan dengan menggunakan statechart Dapat ditampilkan dalam bentuk lain regular expression state table
Struktur kontrol didalam Statecharts Urutan Pilihan Iterasi a T T State a b z a T 1 b Event Perpindahan ke State berikutnya a T 2 z b z T T 1 2 a
Contoh Statechart dengan Pilihan End point Article author title status Decision announced (date of decision) Received States Article submitted (date) Event A choice of events Letter of intent submitted (date of submission, title) Deadline passed Attributes associated with event Waiting Start point
Statechart dengan Iterasi Account account opened (date) owner account # account closed (date) balance Open Closed account opened (date) A multi-state iteration Single-state iterations amount deposited (date, amount) amount withdrawn (date, amount)
Hierarchical States S terminate terminate a b z a b z S1 S2 Sn S1 S2
The Stepwise Relation Pattern Explore Patterns The Stepwise Relation Pattern Digunakan untuk associations dengan agregation multiple level The Stepwise Role Pattern Digunakan untuk lifecycle yang menambah peran baru The Composite Pattern Digunakan ketika part dapat ditambahkan secara rucursive
The Stepwise Relation Pattern Student pattern (partial) Semester 1 Stepwise relation pattern (example) 1 0..* 0..* assigned to semester 1 0..* Class Student assigned to group 1 0..* 0..* Group 1 Class pattern (partial) assigned to class Class Assigning student assigned to class
The Stepwise Role Pattern (example) Sale Sale pattern (partial) offer requested Negotiating offer accepted 1 0..1 1 0..1 1 0..1 Offer Order Delivery Arranging order received offer rejected Offer pattern (partial) Offer Awaiting delivery made offer requested offer accepted sale cancelled
Composite part pattern The Composite Pattern Part pattern Part Simple Composite 1..* assembly of part started part mounted in composite Ready part at hand Simple part pattern part mounted in composite 1 part at hand Ready Composite Pattern (all three parts needed) Composite part pattern this part mounted into another composite assembly of part started Assembly Assembly part mounted into this composite
To be Continue…..