Making a Class Diagram 06102014 Course Rekayasa Perangkat

  • Slides: 19
Download presentation
Making a Class Diagram 06/10/2014 Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http:

Making a Class Diagram 06/10/2014 Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 1

Introduction of Class Diagram (CD) � Visualisasi struktur kelas-kelas dari suatu sistem. � CD

Introduction of Class Diagram (CD) � Visualisasi struktur kelas-kelas dari suatu sistem. � CD adalah blueprints dari sebuah sistem atau sub sistem � CD memperlihatkan hubungan antarkelas dan penjelasan detail tiap-tiap kelas di dalam model desain dari suatu sistem. � Selama proses analisis, CD memperlihatkan aturan dan tanggung jawab entitas yang menentukan perilaku sistem. � Selama tahap desain, CD berperan menangkap struktur dari semua kelas yang membentuk arsitektur sistem yang dibuat � CD juga merupakan fondasi untuk component diagram dan deployment diagram. Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 2

Developing a Class � Finding Objects � Identifying Responsibilities � Specifying Static Behavior �

Developing a Class � Finding Objects � Identifying Responsibilities � Specifying Static Behavior � Specifying Dynamic Behavior � Identifying Relationships Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 3

What is a Class generally ? �A set, collection, group, or configuration contai ning

What is a Class generally ? �A set, collection, group, or configuration contai ning members regarded as having certain attrib utes or traits in common; a kind or category. [http: //www. thefreedictionary. com/class] � Biology A taxonomic category ranking below a phylum or division and above an order. See Table at taxonomy. Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 4

Class in UML �A class diagram is an illustration of the relationships and source

Class in UML �A class diagram is an illustration of the relationships and source code dependencies among classes in the Unified Modeling Language (UML). �In this context, a class defines the methods and variables in an object, which is a specific entity in a program or the unit of code representing that entity. � Class diagrams are useful in all forms of objectoriented programming (OOP). The concept is several years old but has been refined as OOP modeling paradigms have evolved. Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 5

Class in UML � Be depicted as a Rectangle � There are three parts

Class in UML � Be depicted as a Rectangle � There are three parts such as name of class (A), attributes of class (B), methods of class (C) A B C Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 6

Class in UML � Using A “noun” as a name of class A Course

Class in UML � Using A “noun” as a name of class A Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 7

Class in UML � Identify attributes : Look at all the adjectives and possesive

Class in UML � Identify attributes : Look at all the adjectives and possesive phrases in the requirements document B B Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 8

Class in UML � Identify services/methods: Look at all the verbs in the requirements

Class in UML � Identify services/methods: Look at all the verbs in the requirements document C C Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 9

Class in UML � It has some relationship among class such as inheritance (A),

Class in UML � It has some relationship among class such as inheritance (A), aggregation/composition (B), Association (C). B Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 10

Class in UML � It has some relationship among class such as inheritance (A),

Class in UML � It has some relationship among class such as inheritance (A), aggregation/composition (B), Association (C). A B Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 11

Creating a Class in Visual Paradigm � Drag and Drop a Rectangle Form Course

Creating a Class in Visual Paradigm � Drag and Drop a Rectangle Form Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 12

Creating a Class in Visual Paradigm � Reverse Code Course : Rekayasa Perangkat Lunak,

Creating a Class in Visual Paradigm � Reverse Code Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 13

EXAMPLES Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac.

EXAMPLES Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 14

Reverse Engineering (Project Kereta Api pada Praktikum V Algoritma dan Struktur Data) Course :

Reverse Engineering (Project Kereta Api pada Praktikum V Algoritma dan Struktur Data) Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 15

After Reverse Engineering The Codes in C++ Course : Rekayasa Perangkat Lunak, Aetthea, Elektro

After Reverse Engineering The Codes in C++ Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 16

Advanced Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac.

Advanced Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 17

Identifying a Class Is this a Class ? Course : Rekayasa Perangkat Lunak, Aetthea,

Identifying a Class Is this a Class ? Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 Is this a Class ? 18

THE END Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed.

THE END Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http: //aetthea. blog. unsoed. ac. id, 2014 19