4.2.4 Class Diagram
Diagram Class merupakan kumpulan kelas-kelas objek dan inti dari proses pemodelan objek.
Gambar 4.15 Class Diagram Aplikasi Pengenalan Asia
ASEAN
-midlet: MIDlet -menu: MenuUtama
-SejarahAsean: Form -stringItem: StringItem
-imageItem: ImageItem -backCommand: Command
-imgASEAN: Image create+ASEANmidlet: MIDlet
-initialize +switchDisplayablealert: Alert, nextDisplayable: Displayable
+getSejarahAsean: Form +commandActioncommand: Command, displayable: Displayable
+getBackCommand: Command +getStringItem: StringItem
+getImageItem: ImageItem +getImgASEAN: Image
+getDisplay: Display +exitMIDlet
ASEANList
-midlet: MIDlet -menu: MenuUtama
-asteng: AsiaTenggara -AseanList: Form
-imageItem: ImageItem -imageItem1: ImageItem
-CGBrunei: ChoiceGroup -CGFilipina: ChoiceGroup
-imageItem2: ImageItem -CGIndonesia: ChoiceGroup
-imageItem3: ImageItem -imageItem4: ImageItem
-CGKamboja: ChoiceGroup -imageItem5: ImageItem
-CGLaos: ChoiceGroup -CGMyanmar: ChoiceGroup
-imageItem7: ImageItem -CGMalaysia: ChoiceGroup
-imageItem6: ImageItem -CGThailand: ChoiceGroup
-imageItem9: ImageItem -CGSingapura: ChoiceGroup
-imageItem8: ImageItem -CGVietnam: ChoiceGroup
-CGTimor: ChoiceGroup -imageItem10: ImageItem
-backCommand: Command -okCommand: Command
-okCommand1: Command -itemCommand: Command
-imgBrunei: Image -task: SimpleCancellableTask
-imgFilipina: Image -imgIndonesia: Image
-imgKamboja: Image -imgLaos: Image
-imgMalaysia: Image -imgSingapura: Image
-imgMyanmar: Image -imgTimor: Image
-imgThailand: Image -imgVietnam: Image
create+ASEANListmidlet: MIDlet -initialize
+switchDisplayablealert: Alert, nextDisplayable: Displayable +getAseanList: Form
+getImgBrunei: Image +commandActioncommand: Command, displayable: Displayable
+getBackCommand: Command +getImageItem: ImageItem
+getOkCommand: Command +getTask: SimpleCancellableTask
+getCGBrunei: ChoiceGroup +getImageItem1: ImageItem
+getCGFilipina: ChoiceGroup +getImgFilipina: Image
+getOkCommand1: Command +getImageItem2: ImageItem
+getCGIndonesia: ChoiceGroup +getImgIndonesia: Image
+getImageItem3: ImageItem +getItemCommand: Command
+getImgKamboja: Image +getCGKamboja: ChoiceGroup
+getImageItem4: ImageItem +getCGLaos: ChoiceGroup
+getImageItem5: ImageItem +getCGMalaysia: ChoiceGroup
+getImageItem6: ImageItem +getCGMyanmar: ChoiceGroup
+getImageItem7: ImageItem +getCGSingapura: ChoiceGroup
+getImageItem8: ImageItem +getCGThailand: ChoiceGroup
+getImageItem9: ImageItem +getCGTimor: ChoiceGroup
+getImageItem10: ImageItem +getCGVietnam: ChoiceGroup
+getImgLaos: Image +getImgMalaysia: Image
+getImgMyanmar: Image +getImgSingapura: Image
+getImgThailand: Image +getImgTimor: Image
+getImgVietnam: Image +getDisplay: Display
+exitMIDlet
AsiaList
-midlet: MIDlet -menu: MenuUtama
-asbar: AsiaBarat -asmur: AsiaTimur
-asteng: AsiaTengah -asgar: AsiaTenggara
-assel: AsiaSelatan -asut: AsiaUtara
-negaraAsia: List -backCommand: Command
-imgAsia: Image create+AsiaListmidlet: MIDlet
-initialize +switchDisplayablealert: Alert, nextDisplayable: Displayable
+commandActioncommand: Command, displayable: Displayable +getNegaraAsia: List
+negaraAsiaAction +getBackCommand: Command
+getImgAsia: Image +getDisplay: Display
+exitMIDlet
AsiaNations
~call: MenuUtama +startApp
+pauseApp +destroyAppunconditional: boolean
Latihan
-midlet: MIDlet -menu: MenuUtama
~score: int ~benar: int
~salah: int ~Benar: String
~Salah: String ~Score: String
-rs: RecordStore = null -re: RecordEnumeration = null
-display: Display -alert: Alert
-soalA: Form -SOAL_A: ChoiceGroup
-soalB: Form -SOAL_B: ChoiceGroup
-soalC: Form -SOAL_C: ChoiceGroup
-soalD: Form -SOAL_D: ChoiceGroup
-soalE: Form -SOAL_E: ChoiceGroup
-soalF: Form -SOAL_F: ChoiceGroup
-soalG: Form -SOAL_G: ChoiceGroup
-soalH: Form -SOAL_H: ChoiceGroup
-soalJ: Form -SOAL_J: ChoiceGroup
-soalI: Form -SOAL_I: ChoiceGroup
-hasil: Form -stringItem: StringItem
-txtNama: TextField -nilai: Form
-daftarScore: ChoiceGroup -backCommand: Command
-okCommand: Command -backCommand1: Command
-okCommand1: Command
create+Latihanmidlet: MIDlet +bukaDB
+tambahDatanama: String, nilai: String +tampilkanData
-initialize +switchDisplayablealert: Alert, nextDisplayable: Displayable
+commandActioncommand: Command, displayable: Displayable +getSoalA: Form
+getBackCommand: Command +getOkCommand: Command
+getSoalB: Form +getSoalC: Form
+getSoalD: Form +getSoalE: Form
+getSoalF: Form +getSoalG: Form
+getSoalH: Form +getSoalI: Form
+getSoalJ: Form +getHasil: Form
+getNilai: Form +getOkCommand1: Command
+getBackCommand1: Command +getSOAL_A: ChoiceGroup
+getSOAL_B: ChoiceGroup +getSOAL_C: ChoiceGroup
+getSOAL_D: ChoiceGroup +getSOAL_E: ChoiceGroup
+getSOAL_F: ChoiceGroup +getSOAL_G: ChoiceGroup
+getSOAL_H: ChoiceGroup +getSOAL_J: ChoiceGroup
+getSOAL_I: ChoiceGroup +getStringItem: StringItem
+getTxtNama: TextField +getDaftarScore: ChoiceGroup
+getDisplay: Display +exitMIDlet
MenuUtama
-midlet: MIDlet -asean: ASEAN
-aslis: ASEANList -latihan: Latihan
-tentang: Tentang -sejarah: SejarahAsia
-asia: AsiaList -splashScreen: SplashScreen
-menu: List -exitCommand: Command
-backCommand: Command -imgSplash: Image
-imgMap: Image -imgSejarah: Image
-imgScore: Image -imgAbout: Image
-imgAsia: Image -imgTentang: Image
-imgSoal: Image -imgASEAN: Image
create+MenuUtamamidlet: MIDlet -initialize
+switchDisplayablealert: Alert, nextDisplayable: Displayable +commandActioncommand: Command, displayable: Displayable
+getSplashScreen: SplashScreen +getImgSplash: Image
+getMenu: List +menuAction
+getExitCommand: Command +getBackCommand: Command
+getImgMap: Image +getImgSejarah: Image
+getImgAsia: Image +getImgAbout: Image
+getImgScore: Image +getImgSoal: Image
+getImgTentang: Image +getImgASEAN: Image
+getDisplay: Display +exitMIDlet
SejarahAsia
-midlet: MIDlet -menu: MenuUtama
-sejarahAsia: Form -imageItem: ImageItem
-stringItem: StringItem -backCommand: Command
-imgSejarah: Image create+SejarahAsiamidlet: MIDlet
-initialize +switchDisplayablealert: Alert, nextDisplayable: Displayable
+commandActioncommand: Command, displayable: Displayable +getSejarahAsia: Form
+getBackCommand: Command +getImageItem: ImageItem
+getStringItem: StringItem +getImgSejarah: Image
+getDisplay: Display +exitMIDlet
Tentang
-midlet: MIDlet -menu: MenuUtama
-tentang: Form -stringItem: StringItem
-imageItem: ImageItem -stringItem1: StringItem
-backCommand: Command -imgTentang: Image
create+Tentangmidlet: MIDlet -initialize
+switchDisplayablealert: Alert, nextDisplayable: Displayable +commandActioncommand: Command, displayable: Displayable
+getTentang: Form +getBackCommand: Command
+getStringItem: StringItem +getImageItem: ImageItem
+getStringItem1: StringItem +getImgTentang: Image
+getDisplay: Display +exitMIDlet
4.2.5 Diagram Component