Class Diagram Analisis Kebutuhan Fungsional di Platform Mobile
74
G am
bar 3. 15
C la
ss D
iagr am
P lat
for m
Mob il
e P
er a
ngk at
L un
ak G et
T ri
p
SQLiteHandler
-TAG: String -KEY_ID: String
-KEY_NAME: String -KEY_EMAIL: String
-KEY_UID: String -KEY_CREADTE_AT: String
+SQLiteHandler +onCreate
+onUpdate +addUser
+getUser +getRowCount
+deleteUser
SessionManager
-TAG: String -PREF_NAME: String
-PREF_IS_LOGGEDIN: String +SessionManager
+setLogin +isLoggedin
JSONParser
~is: InputStream ~jObj: JSONObject
~json: String +JSONParser
+getJSONFromUrl +makeHttpRequest
CreateAddPlan
~pDialog: ProgressDialog ~title: EditText
~biaya_perencanaan: EditText ~spkategori: Spinner
~textKategori: TextView +textId: TextView
~donebtn: Button +id_plan: String
~jsonParser: JSONParser onCreate
-addListenerOnSpinnerItemSelection +onOptionItemSelected
CreateMyPlan
~pDialog: ProgressDialog ~title: EditText
~destination: EditText ~origin: EditText
~budget: EditText ~donebtn: Button
~textJenis: TextView ~iduser: String
~jsonParser: JSONParser -db: SQLiteHandler
-session: SessionManager ~txtstart: EditText
~txtebd: EditText ~spjenis: Spinner
~textLama: TextView ~textStart: TextView
~amMonth: String ~mYear: int
~mMonth: int ~mDay: int
+nYear: int +nMonth: int
+nDay: int
onCreate +onOptionItemSelected
-logoutUser -LPad
-addListenerOnSpinnerItemSelection
ActivityHistory
~lv: ListView ~pDialog: ProgressDialog
~contacts: JSONArray ~textIdPlan: TextView
~btnaddPlan: Button ~id_plan: String
-db: SQLiteHandler -session: SessionManager
~contactList: ArrayList +onCreateOption
+onOptionSelected onCreate
onPreExecute doInBackground
onPostExecute -logoutUser
ActivityAddExpense
~lv: ListView ~pDialog: ProgressDialog
~contacts: JSONArray ~textIdPlan: TextView
~btnAddPlan: Button ~id_plan: String
~contact: ist:ArrayList -db: SQLiteHandler
-session: SessionManager +onCreateOptionMenu
+onOptionsItemSelected oncreate
onPreExecute doInBackground
onPostExecute -logoutUser
MainActivity
-mDrawerlayout: Drawerlayout -mDrawerList: ListView
-mDrawerToggle: ActionBarDrawerToggle -mDrawerTitle: CharSequence
-mTitle: CharSequence -navMenuTitle: String
-db: SQLiteHandler -session: SessionManager
onCreate +onCreateOptionsMenu
+onOptionItemSelected +onPrepareOptionMenu
-displayView +setTitle
onPostCreate +onConfigurationChanged
+onItemClick -logoutUser
HistoryFragment
~lv: ListView ~pDialog: ProgressDialog
~contacts: JSONArray ~iduser: String
~name: String ~idplan: String
~contactList: ArrayList -db: SQLiteHandler
-session: SessionManager +HistoryFragment
+onCreateView onPreExecute
doInBackground onPostExecute
-logoutUser
MyExpenseFragment
~lv: ListView ~pDialog: ProgressDialog
~contacts: JSONArray ~iduser: String
~name: String ~idplan: String
~contactList: ArrayList -db: SQLiteHandler
-session: SessionManager +MyExpenseFragment
+onCreateView onpreExecute
doInBackground onPostExecute
-logoutUser
MyPlanFragment
~lv: ListView ~pDialog: ProgressDialog
~contacts: JSONArray ~iduser: String
~name: String ~idplan: String
~contactList: ArrayList -db: SQLiteHandler
-session: SessionManager +MyPlanFragment
+onCreateOptionMenu +onOptionItemSelected
+onCreateView onPreExecute
doInBackground onPostExecute
-logoutUser
ActivityAddPlan
~lv: ListView ~pDialog: ProgressDialog
~contacts: JSONArray ~textIdPlan: TextView
~btnaddPlan: Button ~id_plan: String
~contactList: ArrayList -db: SQLitehandler
-session: SessionManager +onCreateOptionMenu
+onOptionItemSelected onCreate
onPreExecute doInBackground
onPostExecute -logoutUser
RegisterActivity
-btnRegister: Button -btnLinkToLogin: TextView
-inputFullName: EditText -inoutEmail: EditText
-inputPassword: EditText -pDialog: ProgressDialog
-session: SessionManager -db: SQLiteHandler
+onCreate -registerUser
-showDialog -hideDialog
ProfileFragment
~textName: TextView ~textId_user: TextView
~textEmail: TextView ~btnLogout: Button
-db: SQLitehandler -session: SessionManager
+ProfileFragment +onCreateView
~logoutUser
LoginActivity
-btnLogin: Button -btnLinkToRegister: TextView
-inputEmail: EditText -inputPassword: EditText
-pDialog: ProggresDialog -session: SessionManager
-db: SQLiteHandler +onCreate
-checkLogin -showDialog
-hideDialog
createPlan
~success: String onPreExecute
doInBackground onPostExecute
createaddPlan
~success: String onPreExecute
doInbackground onPostExecute
AddExpense
~id_plan: String ~id_detail: String
~stitle: String ~kategori: String
~budget: String ~textKategori: TextView
~textId: TextView ~title_edit: TextView
~biaya_perencanaan: TextView ~biaya_pengeluaran: EditText
~keterangan: EditText ~btndone: Button
~btntakefoto: Button ~btnaddlocation: Button
~pDialog: ProggressDialog ~jsonParser: JSONParser
onCreate +onOptionItemSelected
addExpense
~success: String onPreExecute
doInBackground onPostExecute
EditAddPlan
~pDialog: ProggressDialog ~jsonParser: JSONParser
~title: EditText ~biaya_perencanaan: EditText
~spkategori: Spinner ~textKategori: TextView
~textId: TextView ~title_edit: TextView
~editbtn: Button ~id_pan: String
~id_detail: String ~stitle: String
~kategori: String ~budget: string
onCreate -addListenerOnSpinnerItemSelection
+onOptionItemSelected
updateaddPlan
~success: String onPreExecute
doInBackground onPostExecute
deleteaddPlan
~success: String onPreExecute
doInBackground onPostExecute
DeleteDetailPlan
~dDialog: ProgressDialog ~jsonParser: JSONParser
~id_plan: String ~id_detail: String
onCreate
EditAddExpense
~pDialog: ProgressDialog ~jsonParser: JSONParser
~title: EditText ~biaya_Perencanaan: TextView
+biaya_pengeluaran: EditText ~id_plan: String
~id_detail: String ~stitle: String
~kategori: String ~budget: String
~textKategori ~textId: TextView
~title_Edit: TextView ~keterangan: EditText
~btndone: Button ~btneditfoto: Button
~btneditlocation: Button
onCreate +onOptionItemSelected
updateExpense
~success: String onPreExecute
doInBackground onPostExecute
deleteExpense
~success: String onPreExecute
doInBackground onPostExecute
DeleteAddExpense
~dDialog: ProgressDialog ~jsonParser: JSONParser
~id_plan: String ~id_detail: String
onCreate
HistoryFragment
~pDialog: ProgressDialog ~title: EditText
~contacts: JSONArray ~db: SQLiteHandler
~session: SessionManager ~lv: ListView
~contactList: ArrayList ~btnsearch: Button
~jsonParser: JSONParser +HistoryFragment
+onCreateOptionMenu +onOptionItemSelected
+onCreateView
searchHistory
~success: String onPreExecute
doInBackground onPostExecute
PlanRecommendation
~pDialog: ProgressDialog ~budget: EditText
~spjenis: Spinner ~textJenis: TextView
~lama: EditText ~jsonParser: JSONParser
~db: SQLiteHandler ~session: SessionManager
~btnsearch: Button ~lv: ListView
~contactList: ArrayList ~contacts: JSONArray
onCreate +onOptionSelected
-addListenerOnSpinnerItemSelection
planRecommendation
~success: String onPreExecute
doInBackground onPostExecute