DESIGN AND DEVELOPMENT OF JAVA MOBILE-BASED FOOD ORDERING APPLICATION FOR POLITEKNIK NEGERI MEDAN CANTEEN FINAL PROJECT REPORT Completed as a requirement for obtaining a degree of AHLI MADYA (AMD) Computer Engineering Developed By: HUDA MUHARRAM 1005112036 STUDY PROGRAM OF COMPUTER ENGINEERING DEPARTMENT OF ELECTRICAL ENGINEERING POLITEKNIK NEGERI MEDAN MEDAN 2013
ABSTRACT Design and Development of Java Mobile-Based Food Ordering Application For POLMED s Canteen. This application was developed aiming to facilitate students in ordering food at Politeknik Negeri Medan canteen. By running this application canteen customer, mostly student can maximize their time without having to come and queue up to order food considering the break time which is limited and canteen distance which may be an obstacle for some students who would like to order food at the Politeknik Negeri Medan canteen. This project is expected to provide benefits as a reference material and the introduction of mobile applications without server. Applications that are built based on Java 2 Micro Edition (J2ME) is processing the data integration with facility SMS (Short Messaging Service). Thus users can discuss anytime and anywhere without any server, and there will be no administrators that burdened the time to manage the application. It is expected that application can be the best solution. Keyword: canteen, SMS, J2ME. iii
ACKNOWLEDGEMENT The writer would like to acknowledge the countless thanks of the Most Gracious and the Most Merciful, ALLAH SWT who always gives all the best of this life and there is no doubt about it, therefore this final assignment can be completed. The final assignment is a mandatory course to fulfill student graduation at Diploma III Computer Engineering Electrical Department Politeknik Negeri Medan. The writer would like to take his opportunity to express his deep and sincere gratitude to the following : 1. Syahruddin, S.T., M.T. as a Directur of Politeknik Negeri Medan. 2. Dr. Benny B. Nst., Dipl. Ing, M. Eng. as the Head of Computer Engineering study program Electrical Department Politeknik Negeri Medan. 3. Muhammad Sadli, S.T., MBIT as my supervisor who has helped me in the completion of this final project report. 4. To My Parents H. Elmis, S.H. and Hj. Nurleli S.E. and also my beloved sister and brother Elleis Sukma Lina, Heri Priagusno, Ridha Afifa, Hadi Muharram, Ahmad Rusydi Siregar, and Ella Fardina Nst who always give their supports and motivated me to finish this final assignment. 5. All of my friends in CE 6B. 6. Appreciate to my little family at Dewan Perwakilan Mahasiswa 2012-2014 as specially for Yanuardi, Detta, Liza, Bunaiya, Fittri, Eva, Mega, vi
Satriady, Dara, Ade, Dimas and many more who cheers up during the messy situation and gave me unforgetable experiences. 7. Also my gratitude to Andri Situmorang who dedicated his time to fix the un-stable program. 8. Last but not least, to anyone that cannot be mentioned directly or indirectly who has helped the writer in completing this final assignment. The writer does appreciate any opinion, and suggestion for the improvement. Finally, the writer hopes that this final assignment will be advantaged for the improvement of information and communication in the future. Medan, 21 September 2013 Huda Muharram vii
TABLE OF CONTENTS LEMBAR PERSETUJUAN... I LEMBAR PENGESAHAN... II ABSTRACT... III STATEMENT OF AUTHORSHIP... IV DECLARATION... V ACKNOWLEDGEMENT... VI TABLE OF CONTENTS... VIII LIST OF FIGURES... XII LIST OF TABLES... XIV CHAPTER 1... 1 INTRODUCTION... 1 1.2. PROBLEM STATEMENT... 2 1.3. SCOPES OF PROBLEMS... 2 1.4. TARGET AND CONTRIBUTION... 2 1.4.1. Target... 2 1.4.2. Contribution... 3 1.5. THE BENEFITS... 3 1.6. RESEARCH METHODOLOGY... 3 1.7. WRITING SYSTEMATIC... 5 viii
CHAPTER 2... 7 LITERATURE REVIEW... 7 2.1. Canteen... 7 2.2. Platform JAVA... 8 2.3. Java 2 Micro Edition... 10 2.3.1 Konfigurasi J2ME... 10 2.3.2 Profil J2ME... 11 2.3.2.1 Mobile Information Device Profile (MIDP)... 13 2.3.2.2 MIDlet... 13 2.3.2.2.1. Life cycle of a MIDlet... 13 2.4. Wireless Messanging API... 15 2.4.1 Interface Message Connection... 15 2.4.2 Push Technology... 16 2.4.3 Over The Air (OTA)... 16 2.5. RECORD MANAGEMENT STORE... 16 2.5.1. PERSISTENCE STORAGE... 17 2.5.2. RECORD STORE... 17 2.6. Basic conception of UML... 18 CHAPTER 3... 26 PLANNING APPLICATIONS... 26 3.1. Running System... 26 3.2. Requirements Analysis... 26 ix
3.3. System Design... 26 3.3.1. Use Case Diagram... 30 3.3.2. Activity Diagram... 31 3.3.3. Class Diagram... 35 3.3.3.1. Class Diagramiagram Seller... 35 3.3.3.2. Class Diagram Customer... 36 3.3.3.3. Description class for customer :... 37 3.3.3.4. Description class for seller :... 41 3.4. Interface Design... 45 3.4.1. Interface Desugn for Customers... 45 3.4.2. Interface Design for Seller... 48 3.5. Functional planning... 50 3.5.1. Wireless Messaging API Function... 50 3.5.2. Function Record Store... 50 3.6. Preparation System... 50 3.6.1. Preparation... 51 3.6.2. Code Writing Program Application... 51 CHAPTER 4... 52 RESULTS AND DISCUSSION... 52 4.1. Implementation... 52 4.1.1. Interface Implementation... 52 4.1.2. Interface Implementation... 52 4.2. Testing... 56 x
4.2.1. Testing Environment... 56 4.2.1.1 Hardware... 57 4.2.1.2 SOFTWARE... 57 4.2.2 TESTING APPLICATION... 58 4.2.2.1. Testing the Application Customer... 58 4.2.2.2 Testing the Application Seller... 59 4.2.3 IMPLEMENTATION OF TESTING... 59 4.2.3.1. Implementation of Testing for Customer... 60 4.2.3.2 Implementation of Testing for Seller... 64 4.3.1. Limitations character length messages... 67 4.3.2. POTENTIAL DEVELOPMENT... 68 CHAPTER 5... 70 CONCLUSIONS AND FUTURE WORK... 70 5.1. CONCLUSIONS... 70 5.2. SUGGESTIONS... 71 REFERENCES... 72 APPENDIX 1... 73 APPENDIX 2... 74 xi
LIST OF FIGURES FIGURE 2.1. POLMED s Canteen. 8 FIGURE 2.2. PLATFORM JAVA.....9 FIGURE 2.3 Life cycle of a MIDlet.....14 FIGURE 3.1 Description of System Customer......27 FIGURE 3.2 Description System of Seller...28 FIGURE 3.3. Use Case Diagram..30 FIGURE 3.4. Activity Diagram for customer... 33 FIGURE 3.5 Activity Diagram for Seller.....34 FIGURE 3.6 Class Diagram for seller.35 FIGURE 3.7 Class Diagram for Customer..36 FIGURE 4.1 Splash Screen...52 FIGURE 4.2 Main Menu page......53 FIGURE 4.3 About Menu.... 53 FIGURE 4.4 Instruction menu.....54 FIGURE 4.5 Splash Screen..........54 FIGURE 4.6 Main Menu page.....55 FIGURE 4.7 About Menu. 55 xii
FIGURE 4.8 Instruction menu... 56 FIGURE 4.9 Splash Screen.....60 FIGURE 4.10 Main Menu page... 60 FIGURE 4.11 Select Stand Page....61 FIGURE 4.12 Select Stand Page....61 FIGURE 4.13 Order Confirmation Page... 62 FIGURE 4.14 The process of sending a message to the seller 62 FIGURE 4.15 Page Send Ordering...63 FIGURE 4.16 Seller Page Confirmations...63 FIGURE 4.17 Page Splash Screen.. 64 FIGURE 4.18 Main Menu home sellers... 64 FIGURE 4.19 Page waiting Order. 65 FIGURE 4.20 The process your order confirmation to customer 65 FIGURE 4.21 Customer List.66 xiii
LIST OF TABLES TABLE 2.1 UML.......... 18 TABLE 2.2 Use Case Diagram............20 TABLE 2.3 Class Diagram...............23 TABLE 2.4 Activity Diagram...........25 TABLE 3.1. Description Use Case Diagram........31 TABLE 3.2. Customer class.....37 TABE L 3.3. SplashCanvas class.. 40 TABLE 3.4. SplashScreen class....40 TABLE 3.5. Message class...41 TABLE 3.6. Seller class....41 TABLE 3.7 SplashCanvas class...43 TABLE 3.8. SplashThread class...43 TABLE 3.9. Database class......44 TABLE 3.10. Send Message class.... 44 TABLE 3.11. Interface Design for Customers.. 45 TABLE 3.12. Interface Design for Seller. 48 TABLE 4.1 Potential Development......68 xiv
TABLE 4.2 Test Results for Customer.......69 TABLE 4.3 Test Results for Seller......69 xv
CHAPTER 1 INTRODUCTION 1.1. BACKGROUND As a student at the Polytechnic of Medan (hereinafter abbreviated POLMED), writer can see how the conditions of ordering food systems in POLMED s canteen, where there are some weaknesses that can be described as follows. First the length of time the queue due to the many students who order food, while there is only several waiters. As a result, the break periods of the students which is limited, can not optimally be used by the students to consume the food. Unceritainty of the availability of the menu that students order so they are often disappointed because they only know that the menu they want to order is out of stock when they are already in canteen, where to go to the canteen, they spend most of their break time. One way that is done to help solve the problems above is through the use of mobile-based information technology, which today is almost everyone already prevalent use of mobile technologies such as mobile phones. By utilizing this technology, so students can easily know the availability of menus they want to order and order food remotely from the location he was, thus able to save time and avoid the queues at the reservation canteen. In addition to the seller, this application is expected to increase the interest of students to buy food in the canteen as reducing number of queues in the canteen. 1
Therefor the writer would like to conduct research on the design food ordering system using information technology java-based mobile, which can be run on mobile devices such as mobile phones. 1.2. PROBLEM STATEMENT Based on the background of the final project summary as follows: 1. How to design a mobile application server based communication without Java 2 Mobile Edition (J2ME). 2. How to create mobile applications without server based communication Java 2 Mobile Edition (J2ME). 1.3. SCOPES OF PROBLEMS Considering the limitations of the writer in the case if funds and time in this research, the writer made a demarcation problem that is as follows: The technology used is Java mobile Implementation of the system in this study only in the POLMED s canteen. The data storage media use is Record Management Store. Does the program use pulse to connect to one each other. 1.4. TARGET AND CONTRIBUTION The targets and contribution of the final project summary as follows: 1.4.1. Target The target Writer: 1. Improving the efficiency of feed load time. 2
2. Reduce the queues that occur at the time of ordering food. 1.4.2. Contribution Mobile applications these expected to be able to help students in order to do the booker POLMED food efficiently. In addition, this research is expected to provide the reader of understanding about the utilization of mobile technology in particular java based mobile. 1.5. THE BENEFITS The benefits that can be given to the academic world and knowledge, specifically for Politeknik Negeri Medan as follows: For additional references. Through this final project report, expected to be a reference in the case of solving problems similar cases or different The use of mobile applications without server technology. 1.6. RESEARCH METHODOLOGY Literature Study Literature studies is considered necessary, because research done requires some references from the article, literature journal or related to the analysis conducted. Observation Method Writer learn how to do observations of the problems experienced by the less effective his student from staff canteens, of up to spend time in ordering food. 3
System Design Based on observations, the next step is to do the planning system. The technology used is Java technology, because it has a lot of compatibility to mobile devices. In the design view of planning applications, writers combine the low level user interface and high level user interface, to be more interactive applications. Then do the planning UML for workflows and user interface applications, prior to the coding process. System Implementation Based on the results of plans, writer implements into a mobile Java application through the encoding process Trials and Evaluation Performed system testing and proving of the selected jobs, Testing was conducted to analyze the runtime and display of user interface as well as to check the applicability of any error in the application. When there are errors, it will do the debugging process. Testing and verification is intended to get the effective and efficient for the practical working system. Compilation of Final Task Report Includes the writing and compilation of reports from all theoretical basis and method used and the results obtained from the implementation of the final project study. 4
1.7. WRITING SYSTEMATIC Here is a systematic literature used in the feeding end of the job report: 1. CHAPTER 1 INTRODUCTION This chapter contains an explanation of the background of the title selection, limitations problem, motivation and purpose of the final task, target planning applications and end task execution method. 2. CHAPTER 2 BASIC THEORY This chapter contains the theoretical background to be the main reference in the final writing task. The Theory discussed in relation to the application to be made and used for the sake of analysis and planning applications. 3. CHAPTER 3 PLANNING APPLICATIONS This chapter discusses the analysis and planning system. And reduce the level of analysis describes the activities performed on the system that is running while the display of planning applications such as planning applications, programming algorithms and UML will be created as a new system. 4. CHAPTER 4 RESULTS AND DISCUSSION This chapter discusses the results and discussion of the application worked as a result of the application that is developed on view or print the application form from every stage of elaboration and discussion of each system purports to display applications, advantages and disadvantages of the planned application. 5
5. CHAPTER 5 CONCLUSION AND FUTURE WORK This chapter describes the end result of all that writing done conclusion that is filled with input and advice to expand and complement the already built applications ahead of time. 6