Pages

Minggu, 20 Oktober 2013

CLASS DIAGRAM

(Henderi, 2008)
Class Diagram is a diagram that shows the existing classes of a system and is associated with logic. Class diagrams describe the static structure of a system. Because the class diagram is the basis of almost all the power of object-oriented method including UML. 

(Jeffrey L. Whitten et al 2004:432) 
Class diagram is a graphic picture of a static object structure of a system, showing object classes that make up a system and also the relationship between object classes.

Class diagram is used to show some class and package diagrams that exist in the system or software that we use. Class diagram gives us a picture (static diagram) of the system or software and the relationship that is in it.

Elements-elements relevant in modeling UML class diagram consists of :
  • Classes
  • Class structure
  • Class behavior
  • Association
  • Aggregation
  • Dependency
  • Derivatives relations
  • Diversity and navigation indicators
  • Role / Task name
Class diagram symbols :
  • Class
Class is a block - a block object. A class-oriented programming is described as a box that is divided into 3 sections. The upper part is a part of the class name. Defines the center of the property or attribute class. The final section defines the method of the class.

  • Association
An association relationship between two classes of the most common and is represented by a line connecting the two classes. This line can represent this kind of relationship and it can also display the number of dependency in a relationship. (Example: One-to-one, one-to-many, many-to-many).


In my post this time I will give you some ideas on how to use the class diagram in the depiction of the use of blogs. On previous occasions I have explained about the depiction usecase diagram with the theme of the blog system, here I developed this analogy by using a class diagram.

example :


In the class diagram is formed, there is a class 5 object. As for the class that is formed is manage profile, manage posts, manage comments, manage templates, and moneytize blog.
Each class has a method that can be used to communicate in the implementation phase. As for the methods that are owned respectively - each class as follows:
  • Manage Profile (add_profile, edit_profile)
id_profile, nama_profile, email, set_idprofile, set_namaadmin, get_namaadmin

  • Manage Post (add_post, edit_post, delete_post, view_post)
isi_post, tgl_post, panjang_isipost, set_isipost, get_isipost, set_tglpost, get_tglpost

  • Manage Template Blog (edit, cadangkan, pulihkan)
isi_html, set_isihtml, get_isihtml

  • Manage Comment (addcomment, viewcomment)
isi_comment, tgl_comment, panjang_isicomment, emal, set_isicomment, get_isicomment, set_tglcomment, get_tglcomment

  • Moneytize Blog (approveiklan)
id_iklan, email, isi_iklan, tgl_iklan, get_idiklan, set_isiiklan, get_isiiklan, set_tgliklan, get_tgliklan



0 komentar:

Posting Komentar

 

Blogger news

Blogroll

About