Adam Hendra Brata Teknik Informatika FILKOM UB Semester Genap 2015/2016
APS TUJUAN PERKULIAHAN • Memahami pemodelan perancangan dengan pendekatan berorientasi objek
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS AGENDA PERKULIAHAN • Pemodelan perancangan berorientasi objek
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS METODE PEMODELAN PERANCANGAN TERSTRUKTUR • Object Oriented Design • Berorientasi pada objek / data • Booch (1994), Meyer (1988), Jacobson et all (1993), dll.
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS OOA, OOD, OOP • Object-oriented analysis, design and programming are related but distinct • OOA is concerned with developing an object model of the application domain • OOD is concerned with developing an object-oriented system model to implement requirements • OOP is concerned with realising an OOD using an OO programming language such as Java or C++
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS KONSEP • Metode untuk melakukan dekomposisi arsitektur sistem berdasarkan objek-objek yang dimanipulasi oleh sistem yang sedang dibangun • Identifikasi dan mendefinisikan klas-klas tambahan yg merefleksikan implementasi dari kebutuhan-kebutuhan hasil analisis • Notasi = OOA • Proses • Perancangan sistem : struktur klas, user interface, data management • Perancangan objek : atribut/struktur data, algoritma operasi
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS STRUKTUR KLAS • Gunakan klas-klas hasil analisis dan tambahkan sesuai dengan kebutuhan perancangan • Reuse jika memungkinkan
• packaging : pengelompokan klas-klas yg sesuai T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS PACKAGE DIAGRAM
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS MENEMUKAN KLAS • Identifying object classes is often a difficult part of object oriented design • There is no 'magic formula' for object identification. It relies on the skill, experience and domain knowledge of system designers. • Object identification is an iterative process. You are unlikely to get it right first time. • Use domain analysis as before • Use a grammatical approach based on a natural language description of the system • Base the identification on tangible things in the application domain T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS MENEMUKAN KLAS • Hint • Derive them from the use cases (descriptions/scenarios) • Look for data which must be stored or analysed • Are there external systems? • Are there any devices under the control of the system? • Are there any organisational parts?
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS PERANCANGAN OBJEK • Attributes • Describe the state and characteristics of the object • Must be typed : primitive or class • Only name and type are mandatory • Operations • Operations manipulate attributes and perform other tasks • Scope is the class • Operation signature is composed of name, parameters and return type
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS PERANCANGAN OBJEK • Sifat akses atribut dan operasi/service : • private (klas/objek ybs.) • protected (klas/objek ybs. dan turunannya) • public (semua klas/objek) • Algoritma operasi untuk implementasi spesifikasi dari setiap operasi • operasi manipulasi data (set, delete, get, dll.) • operasi komputasi • operasi pengontrolan
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS OPERASI - POLIMORFISME • Polymorphism means many (poly) shapes (morph) • private (klas/objek ybs.) • protected (klas/objek ybs. dan turunannya) • public (semua klas/objek) • There are two kinds of polymorphism • Polymorphism means many (poly) shapes (morph) • Overloading • Two or more methods with different signatures with the same name • They essentially do the same thing, e.g. class constructors • Overriding • Replacing an inherited method class with another having the same signature (no matter with different parameter’s name) • Do different thing using the same method’s signature T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS PENUTUP • Pemodelan perancangan dilakukan berdasarkan hasil pemodelan analisis kebutuhan (RE modeling) • Transform dan transaction mapping digunakan untuk membangun arsitektur PL berdasarkan DFD • OOD dilakukan berdasarkan hasil OOA dengan perluasan klas jika diperlukan untuk keperluan implementasi
T E K N I K I N F O R M AT I K A F I L K O M U B SEMESTER GENAP 2015/2016
APS
TERIMAKASIH V^^
To Infinity and Beyond !