70 4. Perancangan Class Diagram a.

Class Diagram Aplikasi SMSEncrypt
Adfgvxx -m orse: char[*] -key: String -grid: char[*] -col: Colum n[*] -colAlpha: Colum n[*] <<create>>+Adfgvxx(key: String) +setKey(key: String) +encode(clear: String): String +decode(coded: String): String -m sgToProcess(str: String, coding: boolean): char -prepareColum ns(len: int) -findPos(c: char): Point +dum pGrid() +getGrid(): char +getMorse(): char +m ain(args: String) +sort(e: Colum n)

Library +m enuUtam a: String[*] +m enuSm sBaru: String[*] +m enuSm sMasuk: String[*] +m enuSm skeluar: String[*] +m enuSm sDraf: String[*] +m enuPengaturan: String[*] +m enuPetunjuk: String[*] +m enuTentang: String[*] +m enuTicker: String[*] +sm sMasuk: String[*] +sm sMasuk1: String[*] +m nPengaturan1: String[*] +m nPengaturan2: String[*] +m nPengaturan3: String[*] +sendm enu: String[*] +sendm enu1: String[*] +sendm enu2: String[*] +m nAbout1: String[*] +m nAbout2: String[*] +m nPetunjuk1: String[*] +m nDeccryptI nbox: String[*] +m nPesan: String[*] +m nPesanKirim : String[*] +m nPesanAdfgvx: String[*] +m nPesanAdfgvx2: String[*] +m nPesanBatal: String[*] +m nPesanHapus: String[*] +m nPesanSim pan: String[*] +m nBaca: String[*] +NoTujuan: String[*] +NoTujuan1: String[*] +MnBatal: String[*] +MnKirim : String[*] +sm sOut1: String[*] +sm sout2: String[*] +item m enu: String[*] +item m enu1: String[*] +item m enu2: String[*] +item m enu3: String[*] +item m enuKirim 1: String[*] +MnKirim Balas: String[*] +MnHapusDelete: String[*] tentang +MnUbahEdit: String[*] +MnKem baliBack: String[*]

SMSDepan -wp: splash -display: Display -cp: cp -m enu: m enu -draf: Draf -tmr: Tim er -pesan: pesan -phone: phone -tentang: tentang -petunjuk: Petunjuk -atur: Pengaturan -lib: Library -sm sout: sm sout -adfgvx: Adfgvx -encription: Adfgvxx -outbox: Item Terkirim -inbox: smsin -tmrTask: TugasTimerKu -alert: Alert -newSms: Alert -threadSms: Thread -conn: MessageConnection -wpesan: String -senderAddress: String -str: String -noPengirim: String -isiPesan: String -id: String -portSms: String -waktupesan: Date -nilai: int -rmsId: int -m sg: Message -im age: Im age -bacaAlertCom mand: Comm and -keluarAlertCom m and: Com m and -recData: RecordStore -recStore: RecordStore -fr: Form -strPesan: StringItem -strSender: StringItem -strWaktu: StringItem -cm dHapus: Comm and -cm dBalas: Com mand -cm dClose: Com m and -cm d: Comm and -cm dDecrypt: Com mand -recList: List ~connections: String[*] -notj: String

cp -form : Form -si: StringItem -cm dOK: Com m and -cm dCancel: Com m and <<create>>+cp() +getConfirm ationPageForm (): Form +getCom m andCancel(): Com m and +getCom m andOK(): Com m and

Draf -recStored: RecordStore -recListd: List -recListd2: List -cm dCancel: Com m and -im age: Im age -im age1: Im age -aturan: Pengaturan -str: String -nilai: int -lib: Library -isiPesan2: String -m enubaca: List ~isiPesan: String ~noTelpon: String ~id: String -cm dBaca: Com m and -cm dHapus: Com m and <<create>>+Draf() +Tam pilDraf() +Hapus(strData: String) +getListDrafPageList(): List +getCom m andCancelD(): Com m and +getCom m andBacaD(): Com m and +getCom m andHapusD(): Com m and +getListDrafPageList2Selected(): String

I temTerkirim -recStore: RecordStore -recList: List -recList2: List -cm dCancel: Com m and -cm dBaca: Com m and -cm dHapus: Com m and -im age: Im age -im age1: Im age -aturan: Pengaturan -str: String -nilai: int -lib: Library -isiPesan2: String -m enubaca: List <<create>>+Item Terkirim () +Tam pil() +Hapus(strData: String) +getListOutboxPageList(): List +getCom m andCancel(): Com m and +getCom m andBaca(): Com m and +getCom m andHapus(): Com m and +getListAnggotaPageList2Selected(): String

menu -lst: List -im age: Im age -m enubaca: List -m enubacad: List -lib: Library -aturan: Pengaturan -str: String -nilai: int <<create>>+m enu() +m enuku() +getMenuPageList(): List +getSelectedMenu(): String

Pengaturan -f: Form -bahasa: int -cg: ChoiceGroup -cm dOK: Com m and -cm dCancel: Com m and -dodol: String[*] -bhs: String -recStore: RecordStore <<create>>+Pengaturan() +loadku() +updateBahasa() +dispList() +getStringChoice(): String +getIntegerChoice(): int +getCom m andCaancel(): Com m and +getCom m andOK(): Com m and +getpengaturanForm (): Form

Petunjuk phone -txtPhone: TextField -cm dCancel: Com m and -cm dPilihan: Com m and -cm dBatal: Com m and -cm dkirim : Com m and -im age: Im age -m enuPilTul: List -f: Form -aturan: Pengaturan -str: String -nilai: int -lib: Library -text: StringItem -cm dkeluar: Com m and -aturan: Pengaturan -str: String -nilai: int -lib: Library ~f: Form <<create>>+Petunjuk() smsout +getPetunjukText(): Form +getCom m andCancel(): Com m and RecordStore

pesan -txtPesan: TextBox -cm dCancel: Com m and -cm dKirim : Com m and smsin -cm dAdfgvx: Com m and -cm dAdfgvx2: Com m and -recStore: RecordStore -cm dSim pan: Com m and -recList: List -cm dHapus: Com m and -im age: Im age -recList2: List dCancel: Com m and -m enuPilTul: List -cm -aturan: Pengaturan -cm dBalas: Com m and -str: String -cm dHapus: Com m and -nilai: int -cm dSim pan: Com m and -lib: Library

-cm dBaca: Com m and

<<create>>+pesan() -cm dAdfgvx2: Com m and +getCom m andCancel(): Com m and -im age: Im age +getCom m andKirim (): Com m and -im age1: Im age +getCom m andAdfgvx(): Com m and -aturan: Pengaturan +getCom m andAdfgvx2(): Com m and -str: String +getCom m andSim pan(): Com m and -nilai:Com int m +getCom m andHapus(): and +getPesanForm (): TextBox -lib: Library

-isiPesan2: String -m enubaca: List ~isiPesan: String ~noTelpon: String ~id: String

-datasm s: ~noTujuan: String ~isiSm s: String -recData: RecordStore <<create>>+phone() -recData2: splash +getCom m andBatal(): Com m and RecordStore +getCom m andKirim (): Com m and phone -phone: +getNoTujuan(): TextField -im g: Im age -pesan: pesan +getPhoneForm (): Form dExit: Com m and -aturan: Pengaturan -cm -str: String <<create>>+splash() -nilai: int #paint(g: Graphics) ~thread: Thread +getCom m andExit(): Com m and -al: Alert -lib: Library <<create>>+sm sout() +smsout(noSender: String, isiSMsku: String) +Sim panSMS(noSender: String, isiSMs: String) +Sim pantoDraf(noSender: String, isiSMs: String) -addRecordElem ent(rs: RecordStore, valueRecord: String) +getAlertKirim(): Alert +run()

-text: StringItem -lib: Library -cm dkeluar: Com m and -aturan: Pengaturan -str: String -nilai: int ~f: Form

<<create>>+sm sin() +Tam pil() +Hapus(strData: String) +getCom m andCancel(): Com m and +getCom m andBalas(): Com m and +getCom m andHapus(): Com m and +getCom m andSim pan(): Com m and +getCom m andBaca(): Com m and +getListInboxPageList(): List +getListInboxPageList2Selected(): String

+startApp() +load() +pauseApp() +destroyApp(unconditional: boolean) #Quit() +pecahRecordInbox(strinbox: String) +pecahRecordOutBoxDraf(strout: String) -startRechiver() +notipyIncom ingMessage(messageConn: MessageConnection) <<create>>+tentang() +fixNom(nom: String): String +getAboutText(): Form +tutupKoneksi() +SimpanSMSin(noSender: String, isiSMs: String, waktu: Date) -addRecordElem +getCom m andCancel(): Com m and ent(rs: RecordStore, valueRecord: String) +updaterecordSmsout(rm s: String) +updaterecordSmsin() +bacaSMS() +decryptMethode(text: String) +run() +alertSmsIn() +notifyIncomingMessage(arg0: MessageConnection) +com mandAction(c: Com m and, d: Displayable)

value Re c ord: String) +ge tAle rtKirim(): Ale rt +run() -pe sa n -a tur -e nc ription Adfgvxx -morse : cha r[*] -key: String -grid: c ha r[*] -c ol: Column[* ] -c olAlpha : Column[*] -a turan -aturan-atura n Pengaturan b. isiSMs: String) -a ddRec ordEle me nt(rs: Rec ordStore . Relasi asosiasi dari masing-masing class <<c rea te>>+Adfgvxx(key: String) +se tKe y(ke y: String) +e nc ode (c lea r: String): String +dec ode (c ode d: String): String -msgToProce ss(s tr: String.71 SM SDepan cp -form: Form -s i: StringI te m -c mdOK: Comma nd -c mdCa nc el: Comma nd <<c rea te >> +c p() +ge tConfirma tionPageForm(): Form +ge tComma ndCa nc el(): Comma nd +ge tComma ndOK(): Comma nd -cp Library +me nuUta ma : String[* ] +me nuSmsBa ru: String[*] splash +me nuSmsMa suk: String[* ] -img: Image +me nuSmske luar: String[*] -c mdExit: Command +me nuSmsDra f: String[*] +me nuPe nga turan: String[* ] <<c re ate>>+splash() +me nuPe tunjuk: String[*] #pa int(g: Gra phic s) +me nuTe nta ng: String[*] +ge tCommandExit(): Comma nd -wp +me nuTic ke r: String[* ] +smsM asuk: String[* ] +smsM asuk1: String[*] +mnPe nga turan1: String[* ] +mnPe nga turan2: String[* ] +mnPe nga turan3: String[* ] +se ndme nu: String[* ] +se ndme nu1: String[* ] +se ndme nu2: String[* ] +mnAbout1: String[*] -lib +mnAbout2: String[*] +mnPe tunj uk1: String[*] -lib +mnDe c cryptI nbox: String[* ] -lib +mnPe sa n: String[*] +mnPe sa nKirim: String[* ] -lib +mnPe sa nAdfgvx: String[* ] -lib +mnPe sa nAdfgvx2: String[*] +mnPe sa nBa tal: String[*] -lib +mnPe sa nHa pus: String[* ] +mnPe sa nSimpa n: String[*] -lib +mnB a ca : String[* ] +NoTujua n: String[* ] +NoTujua n1: String[*] +MnBa ta l: String[* ] +MnKirim: String[*] -lib +smsOut1: String[* ] +smsout2: String[* ] +itemme nu: String[*] +itemme nu1: String[* ] +itemme nu2: String[* ] +itemme nu3: String[* ] +itemme nuKirim1: String[*] +MnKirimB ala s: String[*] -me nu +MnHa pusDe le te : String[* ] menu +MnUba hEdit: String[*] +MnKe mbaliB ac k: String[* ] -lst: List -image : I ma ge -me nuba c a: Lis t -lib -outbox -me nuba c ad: List ItemTerkirim -s tr: String -nila i: int -rec Store : Re c ordStore -rec List: List < <crea te >> +me nu() -rec List2: List + menuku() -c mdCa nc e l: Comma nd + ge tMe nuPa ge List(): List -c mdBa ca : Comma nd + ge tSele c te dMe nu(): String -c mdHapus: Comma nd -ima ge: I ma ge -ima ge1: I mage -str: String -nila i: int -isiPesa n2: String -me nuba c a : List <<c re a te >>+I tem Terkirim() +Ta mpil() +Ha pus(strDa ta : S tring) +ge tListOutboxPag eList(): List +ge tComma ndCanc e l(): Comma nd +ge tComma ndBa c a(): Comma nd +ge tComma ndHa pus(): Comma nd +ge tListAnggota Pa ge List2Se le c ted(): String -displa y: Displa y -tmr: Timer -a dfgvx: Adfgvx -a lert: Ale rt -ne wSms: Ale rt -thre adSms: Thre ad -conn: Me ssa geConne ction -wpe sa n: String -se nde rAddre ss: String -str: String -noPe ngirim: String -isiPesa n: String -id: String -portSms: String -waktupe sa n: Da te -nila i: int -rmsI d: int -msg: Messa ge -image: I ma ge -ba c aAlertCommand: Command -kelua rAlertComma nd: Command -re cDa ta : Re cordStore -re cStore : Re c ordStore -fr: Form -strPe san: StringItem -strSe nde r: StringI te m -strWa ktu: StringI tem -cmdHapus: Command -cmdB a la s: Comma nd -cmdClos e: Comma nd -cmd: Comma nd -cmdDec rypt: Command -re cList: List ~conne ctions: String[*] -notj: String Petunjuk -te xt: StringI tem -cmdke lua r: Comma nd -str: String -nila i: int ~f: Form smsin -re c Store : Re c ordStore -re c List: List -re c List2: List <<c rea te >>+Petunjuk() -c mdCa nc el: Comma nd +ge tPetunjukText(): Form -c mdBa las : Comma nd +ge tComma ndCa nc e l(): Comma nd -c mdHapus: Comma nd -petunjuk -c mdSimpan: Comma nd -c mdBa ca : Comma nd -c mdAdfgvx2: Comma nd -image : Image -image 1: I mage -s tr: String -nila i: int -isiPesa n2: String -me nuba c a: Lis t -inbox ~isiPesa n: String ~noTelpon: String ~id: String << cre a te >>+ smsin() +Ta mpil() +Ha pus(strDa ta : String) +getComma ndCa nc el(): Command +getComma ndB alas(): Command +getComma ndHapus(): Command +getComma ndSimpa n(): Command +getComma ndB ac a(): Comma nd +getListI nboxPageList(): List +getListI nboxPageList2Sele cted(): String -draf Draf -rec Stored: Rec ordStore -rec Listd: Lis t -rec Listd2: List -cmdCance l: Command -ima ge : I ma ge -ima ge 1: I ma ge -str: String -nilai: int -isiPe sa n2: String -me nuba ca : List ~isiPe sa n: String ~noTe lpon: String ~id: String -cmdB ac a : Comma nd -cmdHa pus: Command <<c re a te> >+Dra f() +TampilDra f() +Hapus(strDa ta : String) +ge tListDrafPa ge List(): List +ge tCommandCanc e lD(): Comma nd +ge tCommandBa ca D(): Comma nd +ge tCommandHapusD(): Comma nd +ge tListDrafPa ge List2Se lec ted(): String tentang -text: StringI te m -te nta ng -cmdke luar: Comma nd -str: String -nilai: int ~f: Form <<c re a te> >+tenta ng() +ge tAboutText(): Form +ge tCommandCanc e l(): Comma nd Gambar 36. wa ktu: Da te) -a ddRe c ordEle me nt(rs: Rec ordStore . value Re cord: String) +upda te rec ordSmsout(rms: String) +upda te rec ordSmsin() +ba ca SMS() +de cryptMe thode (te xt: String) +run() +a lertSmsI n() +notifyI nc omingMe ssa ge (arg0: M essa geConne c tion) +comma ndAc tion(c : Comma nd. isiSMsku: String) +Simpa nSMS(noSe nde r: String. isiSMs: String. isiSMs: String) +Simpa ntoDraf(noSende r: String. c oding: boole an): cha r -pre pa re Columns(le n: int) -findPos (c : c har): Point +dumpGrid() +getGrid(): c ha r +getM orse (): c har +main(a rgs: String) +sort(e : Column) -f: Form -bahas a: int -c g: Choic e Group -c mdOK: Comma nd -a tura n -c mdCa nc el: Command -dodol: String[*] -bhs: String -re cStore : Re cordStore << cre ate>>+Pe nga turan() +loa dku() -a turan +upda te Ba ha sa () +dispList() +ge tStringChoic e (): String +ge tI nte ge rChoice (): int +ge tCommandCaa nc e l(): Comma nd +ge tCommandOK(): Command +ge tpe nga turanForm(): Form . Class Diagram aplikasi SMSEncrypt +startApp() +loa d() +pa use App() +de stroyApp(unc onditiona l: boolea n) #Quit() +pe ca hRe cordI nbox(strinbox: String) +pe ca hRe cordOutBoxDraf(strout: String) -startRec hiver() +notipyI ncomingMessa ge (me ssage Conn: Me ssageConne c tion) +fixNom(nom: String): String +tutupKoneksi() +SimpanSMSin(noSe nder: String. d: Displaya ble) phone -txtPhone : TextField -c mdCanc el: Comma nd -phone -c mdPiliha n: Command -c mdBa tal: Command -c mdkirim: Comma nd -ima ge : I mage -me nuPilTul: List -f: Form -s tr: String -nilai: int << cre a te >>+ phone () +getComma ndB atal(): Comma nd +getComma ndKirim(): Comma nd +getNoTujua n(): Te xtField +getPhoneForm(): Form -sms out -phone sm sout -da ta sms: Re c ordStore ~noTujua n: String ~isiSms: String -re cDa ta : Re c ordStore -re cDa ta 2: Rec ordStore -str: String -nila i: int ~thre a d: Thre a d -a l: Ale rt -atura n -atura n -atura n -a tura n -pesa n pesan -txtPesa n: TextBox -c mdCa nc e l: Command -c mdKirim: Command -c mdAdfgvx: Command -c mdAdfgvx2: Comma nd -c mdSimpan: Comma nd -c mdHapus: Command -image : I ma ge -menuPilTul: List -str: String -nila i: int <<c re ate>>+pesa n() +ge tCommandCa nc e l(): Comma nd +ge tCommandKirim(): Comma nd +ge tCommandAdfgvx(): Command +ge tCommandAdfgvx2(): Comma nd +ge tCommandSimpa n(): Command +ge tCommandHa pus(): Comma nd +ge tPes anForm(): Te xtBox <<c rea te >>+smsout() +smsout(noSende r: String.

72 Gambar 37. Relasi dari masing-kelas dalam aplikasi SMSEncrypt .

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.