Making a Class Diagram
Introduction of Class Diagram
(CD)
Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http://aetthea.blog.unsoed.ac.id,
2014 2
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-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
Finding Objects
Identifying Responsibilities
Specifying Static Behavior
Specifying Dynamic Behavior
Identifying Relationships
A set, collection, group, or configuration cont
aining members regarded as having certain a
ttributes 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 attaxonomy.
Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http://aetthea.blog.unsoed.ac.id,
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
method
s and
variable
s 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
object-oriented programming (OOP). The concept is
several years old but has been refined as OOP
modeling paradigms have evolved.
Be depicted as a Rectangle
There are three parts such as name of class
(A), attributes of class (B), methods of class
(C)
Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http://aetthea.blog.unsoed.ac.id,
2014 6
Class in UML
A
B
Using “noun” as a name of class
Class in UML
A
Identify attributes : Look at all the
adjectives and possesive phrases in the
requirements document
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 document
Class in UML
C
It has some relationship among class such
as inheritance (A), aggregation/composition
(B), Association (C).
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), aggregation/composition
(B), Association (C).
Class in UML
B
Drag and Drop a Rectangle Form
Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http://aetthea.blog.unsoed.ac.id,
2014 12
Reverse Code
Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http://aetthea.blog.unsoed.ac.id,
Reverse Engineering
Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http://aetthea.blog.unsoed.ac.id,
2014 16
Course : Rekayasa Perangkat Lunak, Aetthea, Elektro Unsoed, http://aetthea.blog.unsoed.ac.id,
2014 18
Identifying a Class
Is this
a