CHAPTER IV THE RESULT AND THE EXPLANATION
4.1. Problem Domain Analysis
In Informatics Engineering field many kind of words or terminology which are news or strangest in people mind and to solve that problem is by
using dictionary. Miss typing becomes problem in searching the meaning of the words. One of solution to solve miss typing is by using regular
expression. Regular expression often called a pattern, is an expression that describes a set of strings. They are usually used to give a concise
description of a set, without having to list all elements. Program will give some suggestion that may help in process of writing to get the meaning.
Some application already used regular expression as a solution to solve miss typing and interactive function to give developer suggestions in
developing their application like Babylon or web based application like Google Translate and that’s all base on desktop or laptop which have
weakness. To handle that weakness mobile application is one of solution. Based on interviewed some Android developer at Brain Matic, writer
found about dictionary process happens from searching any word that input by user which have same word pattern. Writer found about to use
Android System first thing must writer do is to download and install eclipse, ADTAndroid Development Tools, Android SDKSoftware
Development Kit, and JavaSDKSoftware Development Kit. Writer
found about to update database in application have some ways that are checking one by one content of the database or delete and replace previous
database. Writer found about to read data from internet, writer need do parsing data first. Those are two common uses parsing method such as
XML Fetcher and JSON Array. Writer found about Android already provided library to implement regular expression. Writer found about
Android have three data storage method which already explained at Chapter 2. Writer found about to create SQLite database on Android writer
need to download application first like Navicat or add on SQLite from Mozilla Fire Fox.
Based on above problem domain description emphasize including and excluding certain elements of the form of classes, events, and structures
base on previous application.
4.1.1. Find Classes
Classes which are find explaint in list table below and for join developing database user need register first and input their
recomendation on suggestion.
Table 4.1
Class Candidates Setting
Edit Main
Splash Screen
Admin Update
Suggestion DatabaseHelper
DB Auto Link
Search Translate
About User
Setting: This class is used for setting the display total of words result, size of word and set autolink.
Update: This class is used to update dictionary database if developer done updating.
Search: This class use to strart searching user word request in database of application by using single match characters.
Edit: This class is used for user to participated in develope application with connect to developer web site.
Suggestion: This class is provided for user to give suggestion to developer in developing application.
Translate: This class used to start searching the meaning of word which is typed by user.
Main: This class used for start the main display to input query of word.
DatabaseHelper: This class used for transfering the database to external storage.
About: This class user for display about background of developer. SplashScreen: This class used for opening and starting install
database into external storage. DB: This class for declaring varible which is exist in database.
User: There are two users, admin and application user. It will recognize which user has been login to the system using login id.
Admin: Is user ID which is used by developer.
4.1.2. Find Events Table 4.2
Candidates for Event Log in
Setting Suggestion
update Register
Search Exit
Forget Username Forget Password
About Edit
Log in: This event can be done in the website developer, when user want to log in to get more privilages which are provided by
developer.
Register: This event can be done in the website developer, when user want to register the account.
Forget Password: This event occurs when user forget their account password.
Forget Username: This event can be done in the system, when user their user account.
About: This event occurs when user click menu button in application to know about developer and application.
Search: This event occurs when user put any character into input colom.
Setting: This event occurs when user click the button and set up application setting.
Edit: This even occurs when user click the button and it will access developer website.
Suggestion: This event occurs when user click menu seggestion on web site to submit suggestion.
Exit:
This event occurs
when user want to close the application. Update: This event occurs when user want to update the database.
4.1.3. Structure
The result of the structure activity is class diagram. The class diagram provides a coherent problem-domain overview by
describing all structural relations between the classes and objects.
Figure 4.1 State Chart Flow diagram
User has six object that are searching, translate, and result which are exist in application device with out internet connectivity,
and update, website. And database which are exist on website with internet connectivity.
4.1.4. Behaviour
1. Searching by Using Match Single Characters
Figure 4.2 Statechart diagram for class “Searching by
Using Match Single Characters Figure 4.2 defines such a behavioural pattern. It expresses
that object from the class “Searching” is occurs when the user start type any character. Application will search word from database and
give the result in list form.
2. Translate
Figure 4.3 Statechart diagram for a class “Translate
Figure 4.3 defines behavioural pattern for “Translate” object. It expresses that object from the class “Translate” is occurs
when user already click the word which already exist in list form.
3. Update
Figure 4.4 Statechart diagram for a class “Update
Figure 4.4 defines behavioural pattern for “Update” object. It expresses that object from the class “Update” is occur when the
user click update button. Application will start to update the database which is exist on the website.
4.2. Application Domain Analysis 4.2.1 Usage