Professional Documents
Culture Documents
Ayate Revised Sds
Ayate Revised Sds
Ayate Revised Sds
Table of Contents
List of Tables ................................................................................................................................................. i
List of figures ................................................................................................................................................ ii
Definitions, Acronyms, Abbreviations ........................................................................................................ iii
1. Introduction ........................................................................................................................................... 1
1.1 Purpose................................................................................................................................................ 1
1.2 General Overview ......................................................................................................................... 1
1.3Development Methods & Contingencies ............................................................................................. 2
2. System Architecture .............................................................................................................................. 2
2.1 Subsystem decomposition ................................................................................................................... 2
2.2 Hardware/software mapping ......................................................................................................... 4
3. Object Model ............................................................................................................................................ 5
3.1 Class Diagram ..................................................................................................................................... 5
3.2 Sequence Diagram .............................................................................................................................. 6
3.3 State chart Diagram ............................................................................................................................ 9
4. Detailed Design ......................................................................................................................................... 9
Reference .................................................................................................................................................... 19
Bibliography ............................................................................................................................................ 19
Web Resource ......................................................................................................................................... 19
List of Tables
Table 1: Definitions, Acronyms and Abbreviations ...................................................................................... iii
Table 2: General description of Professional class ..................................................................................... 10
Table 3: Attributes description for Professional class ................................................................................ 10
Table 4: Operation description for Professional class ................................................................................ 11
Table 5: General Description for VerifiedRemedy Class ............................................................................. 11
Table 6: Attribute descriptions for VerifiedRemedy class .......................................................................... 12
Table 7: Operation descriptions for VerifiedRemedy class ......................................................................... 12
Table 8: General Description for Submission Class..................................................................................... 12
Table 9: Attribute descriptions for Submission class .................................................................................. 13
Table 10: Operation descriptions for Submission class .............................................................................. 14
Table 11: General description of Registration Class ................................................................................... 14
Table 12: Attribute descriptions for Registration class ............................................................................... 14
Table 13: Operation descriptions for Registeration class ........................................................................... 15
Table 14: General description of CommentedRemedy Class ..................................................................... 15
Table 15: Attribute descriptions for CommenteRemedy class ................................................................... 16
Table 16: Operation descriptions for CommentedRemedy class ............................................................... 16
Table 17 : General Description of Database_Enquiry Class ........................................................................ 16
Table 18: Attribute descriptions for Database_Enquiry class ..................................................................... 16
Table 19: Operation descriptions for Database_Enquiry class ................................................................... 17
Table 20: : General descriptions for UserController class .......................................................................... 17
Table 21: Operation description forr UserController Class ........................................................................ 17
Table 22: Attribute descriptions for LoginController class ......................................................................... 18
Table 23: Operation descriptions for LoginController class........................................................................ 18
List of figures
Professional Users users of the system who are certified herbalists and nutritionists
that will be provided with an account by the system
Remedy page the page that displays the list of already added remedies
Debunk/Verify page the page that lists out remedies that have been commented on by
the professional users
Profile page i.e. Professional‟s profile page - the page that holds personal
information provided by professionals
Professionals’ login page the page that allows the professional user to login into his/her
account.
Table 1: Definitions, Acronyms and Abbreviations
1. Introduction
1.1 Purpose
The purpose of System Design document is to translate the business requirements and business
processes into a technical design that will be used to develop the application.
Within these discrete tiers are separate, self-contained components that will have clear boundaries.
This clear segregation of the system into sub-layers will help guarantee the maintainability of the
system. By applying a3-tier architecture, the application is expected to allow a fairly good
performance in the aspect of manipulating and dynamically accessing the immense amount of
data without affecting representation layers thus enhancing the maintainability of Ayate.
The choice of the MVC architectural model was with the aim of fulfilling another key element of
the system‟s requirements, which is security, to a greater margin.MVC provides a good foundation
for implementing security components at the interfaces of each level. The context diagram of the
systems application with the specified model is as follows:
It will be written in HTML5 and PHP5.3. HTML5 – the latest version of HTML- allows
writing clear and descriptive codes. PHP is known for object oriented coding which
makes it preferable to use. It suites the Ayate system development because it allows to
create dynamic web pages easily and quickly. Additionally, the latest version of web
styling, CSS3, will be used for beautifying the website.
Since the system will be database driven, MySQL Community Server will be used as it is
intuitive and has decent documentation.
The tool that will be used is PHPStorm. This IDE provides a rich code editor for PHP and
HTML with syntax highlighting and code completion. It is preferable because it is very
fast considering its size, supports many frameworks, and allows comparing other codes
and compiling these different codes.
This system will be running on Apache Web server. Apache is closely available as it is
cheap
2. System Architecture
2.1 Subsystem decomposition
3. Object Model
3.1 Class Diagram
4. Detailed Design
This section shows the detailed implementation of the classes from the class diagram, sequence
diagram and state diagram.
Professional Class
Professional
-name: String
- phone: String
-work Address:String
- email:String
- experience: String
- occupation: String
- qualification: String
- gender: String
- userName: String
- Password: String
Username String Private userName <> NULL and shouldn‟t contain special characters
and integers.
Password String Private Password <>NULL, it must be greater than 4 digits and it
can contain special characters, integers and characters.
Table 3: Attributes description for Professional class
VerifiedRemedy Class
VerifiedRemedy
- submittedRemedy:String
- submittedDisease:String
-submission_id:Integer
- numberOfRate: Integer
- category: String
- description: String
- date: Date
+ verify(submission_id): Boolean
+ changeNumberOfRate(submission_id): Integer
Submission Class
Submission
-remedyName:String
-DiseaseName:String
- category: String
- description: String
-Submission_id: integer
- noOfVotes: Integer
- submissionDate: Date
- submitterEmail: String
+ addSubmitted(List<<submissionInfo>>): Boolean
+ getSubmisson(List<<submissionInfo>> ): String[][]
+getVoteNumber(submission_id): integer
+changeVoteNumber(submission_id): integer
Registration Class
Registration
- fName:String
- mName: String
- lName:String
- qualification: String
- occupation: String
- gender: String
- matchInformation(List<<information>>): Boolean
+ addProfessional(List<<information>>): String
Table 11: General description of Registration Class
CommentedRemedy Class
CommentedRemedy
-commentedDate: Date
- commentContent: String
- commentOnType: String
- remedyName: String
- diseaseName: String
+commentOn(List<<commentInfo>>): String
Table 14: General description of CommentedRemedy Class
Database_Enquiry Class
Database_Enquiry
+conn: database Connection
established
searchRemedy public String[][] - The remedy There should
should exist in be a search
the database result for
remedy
searchComment Public String[][] - The There should
comments be a search
should exist in result for
the database comment
searchSubmittedRemedy Public String[][] - Submitted There should
remedies be a search
should exist in result for
the database submitted
remedy
Table 19: Operation descriptions for Database_Enquiry class
UserController class
UserController
+isSignedIn(): Boolean
Table 20: : General descriptions for UserController class
LoginController class
LoginController
- userName: String
- password: String
Reference
Bibliography
Kidus Makonnen, Tibebe Solomon, Fraol Chala, Eyob Solomon, Dereje Mengistu
Web Resource
Tutorials Point