Accident Information Management System (AIMS) Final Year Project (2014E.C)
Accident Information Management System (AIMS) Final Year Project (2014E.C)
Accident Information Management System (AIMS) Final Year Project (2014E.C)
C]
I
Accident Information Management System (AIMS) Final Year Project [2014E.C]
Approval
The Project is our own and has not been presented for a degree in any other university with this
functionalities and all the sources of material used for the project/thesis have been duly
acknowledged.
1 .Abey Bekele
2. Tesfaye Teka …………………………………………………
3. Kaleab Gashaw …………………………………………………
4. Betlhem Ermiyas ………………………………………………
5. Henok G/medhen ………………………………………………
1.Abey Bekele …………………………………………………………..
…………………………………………………..
This is to certify that I have read this project and that in my opinion it is fully adequate, in scope and
II
Accident Information Management System (AIMS) Final Year Project [2014E.C]
Acknowledgment
First of all, we would like to thank our almighty God, who gives us love, patience, healthy, wisdom
and ability to walk through all the problems and obstacles during the period of our study. Our
heartfelt appreciation for our adviser Instructor Mebrat Sahle for her indefatigable guidance, valuable
suggestion, moral support, and constant encouragement in the documentation part and also instructor
Sophia. A for constructive opinion and willingness to participate in each part of our documentation
and her effective direction. We also want to thank inspector Dagnachew Worku and inspector
Belayneh Damtew, who gave us information about nekemte police station that we are asking for our
project.
Finally but not the least, we would like express our love, thanks, appreciation, and respect for the
ongoing support of our parents and family members, for their continues encouragement and financial
support. And also we would like to thank the teaching staffs of computing who have contributed
wholly to the success of this documentation.
III
Accident Information Management System (AIMS) Final Year Project [2014E.C]
Abstract
The web based accident management system solves and minimizes so many problems on the
organization. The system is with the client/server architected configuration. This means that there is a
central application database to store data. This system uses SQL database engine to manage the data
and it has the front end with the web programming language PHP. This system help for the employee
of nekemte city police station to communicate and also access their data easily. In general the system
enables the transactions to be easier and faster.
The system activity flow seems the following. When an accident occurs in a society, the society
informs the occurrence and other reliable information about the accident for the field officer. Then,
the field officer informs the dispatcher by sending message on the form available on the website to
detect the accident. After the dispatcher retrieves the detail information from the message sent by the
field officer, he/she allocates resource.
IV
Accident Information Management System (AIMS) Final Year Project [2014E.C]
Table of Contents
Acknowledgment...................................................................................................................................III
Abstract.................................................................................................................................................IV
CHAPTER ONE......................................................................................................................................1
1.1 Introduction...................................................................................................................................1
1.2 Background....................................................................................................................................1
1.2.1.1 Vision...........................................................................................................................................2
1.2.1.2 Mission....................................................................................................................................2
1.6 Objective............................................................................................................................................4
1.10 Methodology....................................................................................................................................8
V
Accident Information Management System (AIMS) Final Year Project [2014E.C]
1.10.1 .1 Interview...............................................................................................................................8
Performance testing.......................................................................................................................10
1.16
1.16.1 Constraint...............................................................................................................................12
1.16.2 Assumptions............................................................................................................................12
1.14 Implementation..............................................................................................................................11
Software Requirement...................................................................................................................14
Chapter Two..........................................................................................................................................15
2.1 Introduction.................................................................................................................................15
VI
Accident Information Management System (AIMS) Final Year Project [2014E.C]
System Analysis....................................................................................................................................27
Participant Actors..............................................................................................................................27
System Design.......................................................................................................................................55
VII
Accident Information Management System (AIMS) Final Year Project [2014E.C]
1. System Start-up.......................................................................................................................61
Login page.....................................................................................................................................62
Click ‘Login’.............................................................................................................................62
3. Error handling.........................................................................................................................62
Chapter Five..........................................................................................................................................66
Object design.........................................................................................................................................66
5.1 Introduction...........................................................................................................................66
VIII
Accident Information Management System (AIMS) Final Year Project [2014E.C]
Packages....................................................................................................................................67
Classes.......................................................................................................................................68
Chapter six.............................................................................................................................................71
6.1 Introduction.....................................................................................................................................71
6.8 Coding.............................................................................................................................................81
Chapter 7...............................................................................................................................................94
7.1 CONCLUSIONS..............................................................................................................................94
7.2 Recommendation.........................................................................................................................94
Appendix...........................................................................................................................................96
Reference...........................................................................................................................................98
IX
Accident Information Management System (AIMS) Final Year Project [2014E.C]
List of table
Table 1 team organization....................................................................................................................4
Table 2 development tools.....................................................................................................................9
Table 3 Validation testing...................................................................................................................10
Table 4 require equipment with cost.................................................................................................13
Table 5 login use case..........................................................................................................................29
Table 6 adding user use case...............................................................................................................30
Table 7 updating user account use case.............................................................................................31
Table 8 delete user account use case..................................................................................................32
Table 9 updating record use case.......................................................................................................33
Table 10 deleting record use case.......................................................................................................34
Table 11 Emergency report use case.................................................................................................35
Table 12 open incident use case..........................................................................................................36
Table 13 accident detection use case...................................................................................................37
Table 14 USECASE: Accident Report..................................................................................................38
Table 15 unknown people die in accident use case...........................................................................40
Table 16 view posted information......................................................................................................41
Table 17 logout use case......................................................................................................................41
Table 18 access control and security..................................................................................................61
Table 19 unit testing............................................................................................................................71
Table 20 integrated testing.................................................................................................................72
Table 21 system testing.......................................................................................................................72
X
Accident Information Management System (AIMS) Final Year Project [2014E.C]
List of figure
Figure 1 USE CASE..............................................................................................................................28
Figure 2 login sequence diagram........................................................................................................43
Figure 3 Dispatcher Sequence Diagram............................................................................................44
Figure 4 Updating Database Sequence Diagram..............................................................................45
Figure 5 Deleting Record Sequence Diagram...................................................................................46
Figure 6 Generate Emergency Report Sequence Diagram..............................................................47
Figure 7 Accident Detection report Sequence Diagram..................................................................48
Figure 8 Login activity diagram.........................................................................................................49
Figure 9 Report generation activity diagram...................................................................................49
Figure 10 accident detection activity diagram..................................................................................50
Figure 11 state chart login diagra.....................................................................................................51
Figure 12 view report..........................................................................................................................51
Figure 13 post information.................................................................................................................52
Figure 14 User Interface and navigation for DBCAM....................................................................53
Figure 15 User Interface and navigation for DBCAMS.................................................................54
Figure 16 Software structure..............................................................................................................57
Figure 17 Subsystem decomposition..................................................................................................58
Figure 19 data base design..................................................................................................................60
Figure 20 component diagram...........................................................................................................64
Figure 21 deployment diagram..........................................................................................................65
Figure 22 Object design modeling......................................................................................................69
Figure 23 class data modelining.........................................................................................................69
Figure 24 user anual preparation......................................................................................................74
Figure 25 accident request page.........................................................................................................75
Figure 26 pictuer responding from system.......................................................................................75
Figure 27 login form............................................................................................................................76
Figure 28 the system responding........................................................................................................76
Figure 29 accident control team page....................................................................................................77
Figure 30 password change picture...................................................................................................77
Figure 31 incorrect alert dialog..........................................................................................................77
XI
Accident Information Management System (AIMS) Final Year Project [2014E.C]
XII
Accident Management System (AMS) Final Year Project [2014 E.C]
CHAPTER ONE
1.2 Background
1.2.1 Background about the organization
Nekemte city police station is one of the institutions of accident management
station on the given of this service. there are many problem on the accident
management that was established long years ago to give service to protect Nekemte
city from accident. The station has responsible for receiving the accident sound and
having quick response to the received accident sound and storing the nature of the
accident, the location details, the sequence of the accident, information on victims.
But this task is managed manually beginning from collecting and recording data
about the accident and the technique of response to the accident. The accidents that
can be reported can be either natural or human made. Some of these are traffic
accident, fire accident, killing or murder, flood, electric current accident, earth
quake, harassment, etc.But the organization more work with traffic police accident
management system.
1
Accident Management System (AMS) Final Year Project [2014 E.C]
1.2.1.1 Vision
To be one of the well organized and known service in Ethiopia and other
developed countries.
1.2.1.2 Mission
To transfer useful and modern technology for the society.
To give suitable and fast service based on society request.
To increase the acceptance of the police stations.
Finally they will consistently respond, fast and modern service, friendly
service and great value that make society confident that nekemt police station
is the best police station.
1.3 Objective
The general objective of this project is developing new web based accident management system
for Nekemte city police station.
Analyze the current system to design new data base system operated easily
using web based system.
2
Accident Management System (AMS) Final Year Project [2014 E.C]
Enabling the workers to communicate easily across the station and with their
external environment.
This project will be developing new web based system for nekemte city police
station accident management system. On completion of this project we expect
the system will have
With less effort and cost the system is able to maintain and store information.
The system does not concern about the crime file management system.
Facilitate timely management decision making and enable to have real time
response to the accident detect it.
Enabling the workers of the system to get reliable information where and when
occurred as well as the type and level of accident to give reliable to response on
detecting the accident.
3
Accident Management System (AMS) Final Year Project [2014 E.C]
4
Accident Management System (AMS) Final Year Project [2014 E.C]
5
Accident Management System (AMS) Final Year Project [2014 E.C]
6
Accident Management System (AMS) Final Year Project [2014 E.C]
7
Accident Management System (AMS) Final Year Project [2014 E.C]
Time Is the main factor of limitation our proposed systems that limit its
performance because while we are developing the system it takes more time and
we may not get enough time to automate the system.
Resource we have not laptop as an alternative when arbitrary failed the desktop
and also when the power is off for a long time.
The most important feature of the new system is that it is an accurate , easy
and efficient system to detect accident as well as record accidental
information such as date and time when the accident occur, location and
level of the accident.
Also cause and effect of the accident of the accident carefully recorded and
documented.
It is enable searching the required information by using keys and also the
main function of the system is sharing of information to the appropriate of
different station.
8
Accident Management System (AMS) Final Year Project [2014 E.C]
Generally, the purpose of this accident management system is to solve all the
problem of the organization and to satisfy the requirement of the people.
9
Accident Management System (AMS) Final Year Project [2014 E.C]
1.5 Methodology
1.10.1 Data gathering Methodology
The requirement of the system is gathered using primary data collecting techniques.
These are listed below.
1.10.1 .1 Interview
One of data gathering methodologies or mechanism we used to collect information by
making a formal meeting at which we are asked some questions to nekemte city police
station manager and other member police as well as some peoples who live in the city.
1.10.1.2 Observation
Object oriented analysis (OOA):- during this phase the team uses to models the
function of the system (use case modeling), finding and identify the business
objects, organize the objective and identify the relationship between them and
finally model the behavior of the objects in detail.
10
Accident Management System (AMS) Final Year Project [2014 E.C]
Object oriented design (OOD):-During this phase our team uses Microsoft software
to refine the use case model and rational rose for designing the sequence
collaboration, activity diagrams and to model object interaction and behavior that
support the use case scenario
1.7 Development tool
Activities Tools
Client side coding HTML
Editors Notepad++
Documentation MS Word
Design Edromax
Testing is a trial experience in which the deliverables of the project are checked
with acceptable Standards in the project. We used unit testing, system testing to test
the correctness of each Module and the compiled program.
11
Accident Management System (AMS) Final Year Project [2014 E.C]
Generate report.
Security testing
The system has a security protection by using authentication. User of the system
will be authorized by the system administrator and get their user name and password
to enter into the system. Unauthorized access will be detected when user wants to
access the system. This is done by authenticating user; user with user name and
password can only enter into the system. This security action is done in the login
form.
Another method used to secure the system is by grouping user by privileges. In the
system there are two types of categories; system administrator and other members
of the system. Every user of the system will enter to the system according to their
privileges and access different menus when they enter to the system. This security
method is tested and user cannot enter to other person privileges and access data. So
the system is secured.
1.13.3 Validation testing
When we say valid it is to mean that the software functions as it is intended. This is
tested by giving real data and get real information from the software.
12
Accident Management System (AMS) Final Year Project [2014 E.C]
1.9 Implementation
Implementation is a phase where all the work during analysis and design will be
turned to a functional system. Prototype is divided into three sub phase: interface
implementation, database implementation, and logical implementation. In interface
implementation, we have tried to implement user- interface. Logical implementation
implements the server-side functionality of the system. Generally we use partial
because we use direct may affect the system so better is partial.
Unfortunate failure of system: To handle this problem the teams have some
method to resist not completely but partially by using back up mechanisms using
flash disks, CD/DVD and by storing the data on our Email account.
Power problem: we tried to use laptops to cover the gap happened to our project
during power failure.
Virus attack: It is difficult to control data from virus but try to scan the data,
installing and updating antivirus software and we use CDRW instead of flash.
Time management problem: we solve this problem by working cooperatively,
divide our time by schedule for each phase of the project and we try to use this
schedule effectively.
13
Accident Management System (AMS) Final Year Project [2014 E.C]
1.16.2 Assumptions
This section must include any assumptions if not true, would require changes
to the requirements.
The system depends on the software components and operating system which
are needed for the system.
The hardware used to interact with the AMS(accident management system)
will be standard keyboard as required
The users know how to start the program from the GUI, and can interact with a
user interface using a standard keyboard, mouse, and monitor.
The dispatcher should get access of wireless internet connection as he is mobile.
14
Accident Management System (AMS) Final Year Project [2014 E.C]
Generally the system that we develop nekemt city police station accident
management brought number of tangible and intangible benefits.
Tangible benefits
Require equipment with Costs which includes hardware development cost and
other costs.
Software development cost.
The following table lists the different miscellanies costs that we spent in the process
of the development of the system.
Table 4 require equipment with cost
15
Accident Management System (AMS) Final Year Project [2014 E.C]
Field Officer wireless devices like CPU 32bit operating system, 2.2 GHz
PDA’s or Smart
Phones, laptops and RAM Minimum of 300 MB
Accident desktop computers
controlling team HARD DISK Minimum 22GB
Society
Software Requirement
The end user computers need to have an operating system like Windows 7 or later,
Ubuntu, Linux or any other OS which is user graphical.
16
Accident Management System (AMS) Final Year Project [2014 E.C]
Chapter Two
After studying the existing system, we also determined the requirement or the
feature that must be included in the proposed system. Furthermore by analyzing the
current system, we could also estimate how the propose system solve the setbacks
of the existing system.
17
Accident Management System (AMS) Final Year Project [2014 E.C]
Accident report the dispatcher send the accident report the go to place and
prepare the report.
Prepare the report.
Document and organize daily report come from Field officer and accident
controlling team with the final modification.
B Generate report:-the report prepared in day, three day weeks, month, three month,
six month, year report. This report is major report generate time. All report generate
is very tedious and complex because all thing is done in manually so difficult to
prepared report, specially the month, three month, six month, year report are more
difficult and additional task to police department to search the file.
18
Accident Management System (AMS) Final Year Project [2014 E.C]
CStore the accident file:the existing system store the accident information in
manually. This method is not secured, also have not backup. The accident file only
in one document if the paper damage also damage the accident file.
Br1: New accident reports (first information reports) have to received and organized
by accident control team.
Br4: The accident should be happened in nekemt city or around the city, in order to
start investigation process.
Br7: Dispatcher police officer should work for 24 hours to accept accident reports
19
Accident Management System (AMS) Final Year Project [2014 E.C]
Address:
Phone
Number(s):
Type of injury:
20
Accident Management System (AMS) Final Year Project [2014 E.C]
Details of incident:
Name of physician/hospital:
Address:
Date
21
Accident Management System (AMS) Final Year Project [2014 E.C]
Collecting information about any accident occur in and around the city based on the
received information about the accident it allocates resource and detect the accident , recording and
documenting all necessary information about the accident manually, generate report about accident
if required by any private and government institution according to their request that may want to
support societies that do not suffer from the accident and protect peaceful security and properties of
the society from danger.
They record their file of accident report, daily, weekly, monthly, 3 months, 6
months, yearly reports and other information related with accident on paper. If they
want to update files and records, the searching activity is very tedious and boring.
The format of file recording is not consistent and also the file handling is not
secured.
22
Accident Management System (AMS) Final Year Project [2014 E.C]
When one accident occurs in one kebele, the people inform that accident for the
police located around that kebele. Then these polices tell for the field officers. The
field officer reports that accident for the dispatcher in the main station. The
dispatcher then checks the availability of resources. If resources are available,
he/she allocate these resources and send the accident controlling team to the place of
the accident. Else if there is no available resource, they take any of individual or
private resources that are useful to manage the accident, from any place if they are
free to use. In DeberBerhan city police station, there is no organized accident
controlling team for each accident type. So, they request help from other
organizations which are responsible and which have ability to manage that accident.
If the resources available in the sub-station are not enough to manage that accident,
they transfer that report for the DeberBerhan city police station.
23
Accident Management System (AMS) Final Year Project [2014 E.C]
way the main station of the city prepare report based on the reports collected from
the sub-stations and presents it for the Zone station. Daily reports can be by paper, if
the substation is near to the main station or simply by using telephone if it is not
possible, but weekly and further longer time reports would be reported with paper
and all data would be given to the information desk controller.
Difficult of getting real information at real time when accident occurred that help
to have real time response to accident.
Difficult to manage the overall system.
Difficult of communication of field office, society and the station to give and get
real time response to the accident.
Difficult to generate report
The officer loss the paper that write the report is also loss the information about
the accident.
Someone come from other place suddenly die in accident the person have not id or
something about himself tell, Only thing is write report and stored it.
Difficult of getting available resource to control and detect the accident at real
time and to save human life and property since there is no organized detective in
the system to control the accident rather than the society and police are tries to
detect the accident as much as possible.
Difficult in conducting consistent reports because the record is documented
manually and require much time and human power to search and get wanted
information (file).
There is no fast and efficient way of sharing critical information across the station
as well as with the external environment.
System has work load for police department.
24
Accident Management System (AMS) Final Year Project [2014 E.C]
Report generation: we use in the proposed system report generation way. The report
prepared in day, three day, weeks, month, three month, six month, and year report.
This report is major report generate time. All report generate is very tedious and
complex because all thing is done in manually so difficult to prepared report,
specially the month, three month, six month, year report are more difficult and
additional task to police department to search the file.
Accident file stored: this very important to propose because it used as backup in
proposed system because maybe the system fail or damage the file also damage. For
this reason it important to store the accident file in backup
25
Accident Management System (AMS) Final Year Project [2014 E.C]
substations.
26
Accident Management System (AMS) Final Year Project [2014 E.C]
Then he check the availability of resources on the system and then he/she send the
accident controlling team to the place of accident to manage the accident in a short
time before the lose life and property occur on the society.
In general term the new system will eliminate/ reduce the problem on time accuracy,
security issue, and complexity and information distribution. The system will include
a centralized data base for accidental data records that facilitate fast information
retrieval, modifying, inserting and deleting and also improve the communication
among administrator, field officer, information desk and Accident controlling team.
It also includes an attractive user interface that facilitates accessing the database and
recording accidental data easily.
Greater efficiency for recording investigation file:Since the proposed system uses
database system, registering investigation files, and updating of progress files
from the database will be easy and also there will not be loose of data.
Security: since the proposed system requires verification of logon form, sensitive
information’s will not be accessed or modified by unauthorized users.
Better service: since the proposed system allows users to report online without a
need of going to police station, there will be fast response for accident. Users will
also view all posted information’s from anywhere.
Efficient retrieval of accident files: since the proposed system record each and
every accident file on the data base, retrieval of accident files from the database
at any time will be a very easy process.
Efficient accident management: in the proposed system polices can view and
easily control the system are work well and control all accident information.
Increase Operational Efficiency: The proposed system should help in reducing
the repetitive paperwork/records and making the back-office functions more
efficient.
27
Accident Management System (AMS) Final Year Project [2014 E.C]
The new system will be a networked application that will run on client -server and
to provide case to use user interfaces to the users and window server for the server
side application. The new system will also perform record management function
that the system should record all the modifications on the record management
system.
All in all the functionalities that will be provided by the system are the following.
check the that accident type and accident no the system processes it if it
valid display the information.
Posted people unknown people die in accident: this very important for new
system because someone come other place then sadly die in accident. The
person have no id or something about himself. So the system post this
person.
2.12.2 Non-Functional Requirements
Non-functional requirements describe user-visible aspects of the system that are not
directly related with the functional behavior of the system. These requirements do
not directly affect the performance of the system but are nonetheless important
.They are concerned with security, performance, internationalization, usability,
maintainability, reliability, modifiability, efficiency, portability across operating
systems, testability, understandability. Generally the non-functional requirements of
the system are presented below:
29
Accident Management System (AMS) Final Year Project [2014 E.C]
The user can use the system by reading help and support.
30
Accident Management System (AMS) Final Year Project [2014 E.C]
g) Performance: Our system speed operation is very high. That means the
accuracy and response time of
The system should be very fast.
31
Accident Management System (AMS) Final Year Project [2014 E.C]
Chapter Three
System
Analysis
Participant Actors
Dispatcher: has the following responsibilities
Allocating resource based on the emergency report come from field officer
32
Accident Management System (AMS) Final Year Project [2014 E.C]
33
Accident Management System (AMS) Final Year Project [2014 E.C]
34
Accident Management System (AMS) Final Year Project [2014 E.C]
UC_ID: UC_01
Description: This use case is used to ensure security for login into the system
Precondition: The user must have at least correct username and password.
Post condition The main page will be displayed then user gets access to its privilege
and after finishing his/her work he can logout
35
Accident Management System (AMS) Final Year Project [2014 E.C]
UC_ID: UC_02
Actor: Dispatcher
Description: It describes how to add a new user or account record in the system.
Step1: the dispatcher clicks on add step2:the system displays the form
user button
Step5: the system validates the new
Step3: the dispatcher enters the user detail.
new
user name, account type, Password Step6: the system save the user
and reenter password to the system detail to the database.
36
Accident Management System (AMS) Final Year Project [2014 E.C]
Post condition The new user information are added to the recorded
UC_ID: UC_02
Description:
It describes how the dispatcher(field officer or accident control team)
modify the user database .
Step1: the Administrator wants to Step4: the system checks the new
update an account and he/she login account information with the
to the system. existing account in the database.
Step2: the Administrator inserts Step5: the system save the new
account _type, username, account to the database.
password, and other user Step6: the updating process ends
information.
Step3: the administrator submits
the data.
Post condition The system modifies the records with the new entered data.
37
Accident Management System (AMS) Final Year Project [2014 E.C]
Alternate course action: 5.1: the system doesn’t save the new account to the system database
5.2: it displays a fill again message.
5.1: the system doesn’t save the new account to the system database
5.2: it displays a fill again message.
5.1: the system doesn’t save the new account to the system database
5.2: it displays a fill again message.
UC_ID: UC_02
Actor: Dispatcher
Description:
It describe how the dispatcher removes records of system user
database.
38
Accident Management System (AMS) Final Year Project [2014 E.C]
Post condition The system removes the user details from the record
UC_ID: UC_02
Actor: Dispatcher
Description: It describe how the dispatcher removes records of system user database.
Precondition: the user should have logged in as Dispatcher
Flow Event: Actor action System response
39
Accident Management System (AMS) Final Year Project [2014 E.C]
Post condition The system saves the modified record to the database.
11.1: if the investigative officer select the no option, the system displays
‘updating aborted’ message.
UC_ID: UC_02
40
Accident Management System (AMS) Final Year Project [2014 E.C]
Precondition:
the user should have logged in as Dispatcher
Post condition The system removes the user details from the record
UC_ID: UC_03
41
Accident Management System (AMS) Final Year Project [2014 E.C]
Post condition The system generated the report and displays successful message
Alternate course action 5.1: if not correct display try again message.
UC_ID: UC_04
Actor: Dispatcher
42
Accident Management System (AMS) Final Year Project [2014 E.C]
action
UC_ID: UC_06
43
Accident Management System (AMS) Final Year Project [2014 E.C]
Alternative action
Table 12.
Table 14 USECASE: Accident Report
UC_ID: UC_07
44
Accident Management System (AMS) Final Year Project [2014 E.C]
Description:
This is used to know daily, monthly, 3 months, half of year, and 1 year
information’s about the accident detections.
Step 1: the accident control team step2: The system display repo
officer clicks on generate report form that contain the following
button :-
Step3:the accident control team
Alternative course action: 5.1 : If the investigative officer enters invalid information then
the system will generate an error message in order to fill again
the information properly.
5.2 : use case ends
45
Accident Management System (AMS) Final Year Project [2014 E.C]
UC_ID: UC_08
Actor: Dispatcher
Precondition: The dispatcher should have to enter a valid user name and
password to upload information.
Flow Event: Actor action System response
Step 1: the dispatcher wants to Step2: the system die in
post unknown persons die in the unknown persoccident
accident. and clicks on post
Step4: The system
button
the filled form
Step3: the dispatcher fills the
needed information Step5: the system s
the
Step7: the report process
ends
Post condition If a Police officer entered valid user name and password
then he/she can post the information.
46
Accident Management System (AMS) Final Year Project [2014 E.C]
UC_ID: UC_09
Actor: Society/User
information’s
USECASE: Logout
Table 17 logout use case
47
Accident Management System (AMS) Final Year Project [2014 E.C]
UC_ID: UC_11
Actor: System administrator(dispatcher), field officer, and
accident controlling team
Precondition:
The System administrator, field officer, and accident
controlling team should have Internet connection.
Flow Event: Actor action System
response
Step 1:The user click logout button
Step2: The
system returns to
Step3: end use case login page
48
Accident Management System (AMS) Final Year Project [2014 E.C]
49
Accident Management System (AMS) Final Year Project [2014 E.C]
50
Accident Management System (AMS) Final Year Project [2014 E.C]
51
Accident Management System (AMS) Final Year Project [2014 E.C]
52
Accident Management System (AMS) Final Year Project [2014 E.C]
53
Accident Management System (AMS) Final Year Project [2014 E.C]
54
Accident Management System (AMS) Final Year Project [2014 E.C]
Open
Login
Homepage
Enter User
name and
password
Redirect to
the page
Report Generation
Successfully Generated
55
Accident Management System (AMS) Final Year Project [2014 E.C]
3 Accident Detection
56
Accident Management System (AMS) Final Year Project [2014 E.C]
1 Login
View Report
57
Accident Management System (AMS) Final Year Project [2014 E.C]
Post information
58
Accident Management System (AMS) Final Year Project [2014 E.C]
59
Accident Management System (AMS) Final Year Project [2014 E.C]
Manage Account
Manage privilege
60
Accident Management System (AMS) Final Year Project [2014 E.C]
Chapter Four
System Design
User Interface: The user interface of the system should be easy to use by
each user of the system with little training.
Documentation: System administrators and other users are provided with
61
Accident Management System (AMS) Final Year Project [2014 E.C]
In spite of its organized administrative structure, nekemt city police station use
accident management in manual system. In order to handle or process the data for
above mentioned categories of tasks there is the manual system. Some accident
happen then all information are recorded in manually. The deberbrhan city police
station does not use any softwar.In the existing system all thing done in manual,
from collecting the accident information up to documentation are done In manual.
62
Accident Management System (AMS) Final Year Project [2014 E.C]
internet
NCAMS
NCAMS
Database
63
Accident Management System (AMS) Final Year Project [2014 E.C]
User account
Society
Employ profile
64
Accident Management System (AMS) Final Year Project [2014 E.C]
Profile
-Id_no:integer(11)
-fname:varchar(20)
-mname:varchar(20)
-lname:varchar(20) useraccount
-bdate:integer(10)
-account no:int(8)
-sex:varchar(6)
-username:var(26)
-phone_no:int(10)
-Password:var(255)
-Kebele:varchar(25)
-Village:varchar(25) +create account
-status:varchar(25)
-role:varchar(25) Post
Employ 1e st
1 1
-id_no:integer(10) has
has Dispatcher
+add() -email:varchar:(10)
1
+update() is an
+Register -id_no:integer(11)
Name 1 n
t +Manage staff()
1 News
is an -id_no:integer(15)
is an -title:varchar(255)
1 -body:varchar(255)
1 -id_no:integer(11)
+add()
+update() +Report emrgency()
+view() +view request()
65
Accident Management System (AMS) Final Year Project [2014 E.C]
66
Accident Management System (AMS) Final Year Project [2014 E.C]
can access
67
Accident Management System (AMS) Final Year Project [2014 E.C]
Actors
Controlling Team
Delete () Search()
Insert()
ChangePassword
()
System login
Login()
1. System Start-up
Welcome/home page of Accident Management System
At the time the user starts to use this system first this home page will be displayed and after this
page the user can select one of the menus that he want to access.
68
Accident Management System (AMS) Final Year Project [2014 E.C]
Login page
The login page contains the user name and password and users should enter the correct username
password and their privilege correctly to get the page that he wants.
Click ‘Login’
Click ‘Back’ if he wants to exit
Check ‘Remember me on this computer’ allows the user when using that particular
computer again; he/she won't have to type in his/her login details to access the site.
After doing the tasks successfully the user gets the page he wants according to the
privilege they have.
Click ’Click here to reset it.’ It allows the user to change his/her password.
69
Accident Management System (AMS) Final Year Project [2014 E.C]
The File Controller subsystem: this subsystem includes two parts of services. These
are documenting handled incidents and archiving important documents. This is
implemented by the Dispatcher.
The Communication controller subsystem this subsystem allows communication
between the dispatcher with the Field Officers and Accident Controlling in the form
of chatting, or sending report. It also provides notification service.
The Login this includes admin, accident control team, information desk and field
officer login. There will be account type, user name and password to login into the
system to use all the facilities.
Manage staff this module helps the admin to add new user accounts, update and
inactive existed account.
By this Diagram, components of the system will be wired showing that there is relation
among components; management of the system, database and operations performed on
databases such security issue. This in some extent shows which component or objects will be
accessed by whom and what type of security infrastructures it is using Aniekwe Vivian
Nkiruka - August, 2012. The component diagram of nekemt police station accident
management system is displayed below.
70
Accident Management System (AMS) Final Year Project [2014 E.C]
71
Accident Management System (AMS) Final Year Project [2014 E.C]
72
Accident Management System (AMS) Final Year Project [2014 E.C]
Chapter Five
Object design
5.1 Introduction.
Web based accident management system consists of subsystems which work separately but
concurrently. Subsystems interact with each other and each subsystem works when it is called by
another subsystem.
During the object design, characteristic of each system must be considered its own and the whole
system must be considered. It describes object design trade-offs made by developers, guidelines they
followed for subsystem interfaces, the decomposition of subsystems into packages and classes, and
the class interfaces.
5 .2 Object Design trade-offs
The following are the trade-offs found in our online accident management system.
5.2.1 Buy Vs Build
Of course, the system that we have can be divided into modules. If we can find some module in the
market with most of the functionality that we need, included in it, then that system can be bought to
save time, money and human resources. When a solution module is bought, it provides ready
functionality but if the developer doesn't know how it works [because its source code will not be
available], then it is a waste. Sometimes, when this module is integrated with the rest of the system, it
might be very hard for it to adapt to the system and so the entire system might have to be changed
which would be costlier than expected. Therefore, based on these requirements, in the AMS, we can
buy modules like:
1. Finding the current location of a accident.
2. Reporting module
5.2.2 Guidelines and Convention:
Web based accident management system for nekemt police station is to change manually to
automated system. The field officer report the accident then the dispatcher check the resource. Then
if have resource sent respond and assign the accident control team to the place.
From the backup server so called XAMPP control panel or localhost/phpmyadmin the database can
be created and also inside the database there is some tables which includes some attributes have data
type and maximum length it contains and also primary keys and foreign keys. From the UI, any text
entry
73
Accident Management System (AMS) Final Year Project [2014 E.C]
From the UI, any text entry field should have a maximum length which indicates a boundary
Also from the UI, depending on the language we use, the numeric fields could also contain
alpha characters which could cause all kinds of internal issues.
Depending on the type of database we use, the fields might have a maximum width value. We
need to make sure there is enough space in each of the fields.
Naming conventions make programs more understandable by making them easier to read. They can
also give information about the function of the identifier-for example, whether it's a constant,
package, or class-which can be helpful in understanding the code.
This section will give an insight about the Naming Convention. They are described individually in
the list
Packages
74
Accident Management System (AMS) Final Year Project [2014 E.C]
The prefix of a unique package name is always written in capital and all lowercase ASCII letters except
abbreviations like UI is User Interface so as not to make lengthy package name.
Examples:-
package AccidentcontrolteamUI;
Package Dispatcher;
Classes
Class names should be nouns, in mixed case with the first letter of each internal word capitalized.
We kept our class names simple and descriptive. Nonetheless, we used whole words and avoided
acronyms and abbreviations as far as possible (unless the abbreviation is much more widely used
than the long form, such as DB for database and UI for User Interface). Some classes’ names also
have numeral as it makes us to feel the step of execution.
Examples
interface DataInterface;
Methods
Our Methods are verbs, in mixed case with the first letter lowercase, with the first letter of each
internal word capitalized.
Examples:-
insert();
createReport();
5.4 Design Pattern:
The object design pattern includes the inter dependence between classes to integrate between each
other’s class. One class integrates with other class with adaptors. These adaptors can be create
connection between the user interface and the user can be translated the user interface codes in to use
forms the user can fill this forms in correct ways and to insert in to the database. The object design
pattern can be creating objects from the class inherited or transform from super classes.
75
Accident Management System (AMS) Final Year Project [2014 E.C]
+ generate report()
+ control accedent() :
CLASS ACCEDENT
LIST Of ACCEDENT
FIRE ACCDENT
+ accedent type: char + accedent name: char
+ accedent level: char - accdent type: char
+ year: int + place: char
+ place: char + year: int
+ view() : void
CAR ACCDENT
NATURAL DISASTER
HARASHMENT
76
Accident Management System (AMS) Final Year Project [2014 E.C]
Other validation is when the user login into the system the user reset username and password or
forgot username or password or the system is deactivates the user account so the user cannot login
into system. And also the data type of the attributes can be take biggest advantage of data entry
because one attributes have data type is varchar so the user insert into this attribute numeric value the
system check the data entry of the user
77
Accident Management System (AMS) Final Year Project [2014 E.C]
Chapter six
Implementation and Testing
6.1 Introduction
Implementation refers to the Coding of the all documents gathered starting from requirement
analysis to Design phase. So now the team is in a position of converting all documents
gathered and designed into the code so that the system will be implemented for the user to be
used for the purpose it developed. To implement it the user must have use website which
have network.
The result of this phase consists of source code, together with documentation to make the
code more readable. This is what we call software implementation. The purpose of these
activities is to convert the final physical system specification into working model with
reliable software and hardware, document the work that has been done, and provide help for
current and future users and take care of the system.
Unit testing: - the team member tests every module by applying some selection
mechanism. Through this mechanism every modules gets tested. If an error occurs
correction will be taken without affecting another module.
Table 19 unit testing
Login Form validate user name and Display a message when user didn’t
password entry as an input fill user name or password and also
when there is user name or password
from each end users error
78
Accident Management System (AMS) Final Year Project [2014 E.C]
All other forms controlling the proper Display a message when user left
insertion of data some text fields, radio buttons,
combo boxes or date and time
unfilled and insert improper data in
to the form try to save.
Integrated testing: - all the modules will be combined together and tested it for its
fitness with each other and with the systems functionality. If error occurs in
combining them, the module with problem will be identified and recombined.
Administrator menu check proper display of selected Display the selected form from the
administrator form as menu
options to be accessed
Report from check whether the report will be The selected report will be
displayed
generated or not
All forms check the navigation functionality The form required Will be displayed
System testing: - the team member to performs over all functional testing by
checking whether it meets the required target or not. Here the system is partially
functional and reached its requirement.
79
Accident Management System (AMS) Final Year Project [2014 E.C]
Login form To validate the proper To authenticate user user will be authenticated and if
functionality of login by user is authorized enter to the system
inserting username and else confirm invalidity
password
Search from To validate the functionality Search result If the requested record exist display the
of search form result else if it doesn’t exist display the
message about the status
Report from To validate the functionality To generate report generate the requested report if the
of report form request is valid, if request is invalid
display message box that describes the
invalidity
All forms To validate the functionality To provide The form is presented and the required
of each form the function function can operated using the form
required by the form
Hardware software acquisitions determine the system resource requirements, its capability
with other systems and networks, its interface requirements to existing systems if any, its
security capability, deficiencies and vulnerability and to make sure there are not already
existing software/system that provide equivalent functionality. For the project
implementation the following Software and hardware are used.
Hardware
Computers
Software tools:
Browsers (Mozilla Firefox, Google chrome)
Notepad++
Sublime text
Xampp
Microsoft word
Notepad
Edraw Max
80
Accident Management System (AMS) Final Year Project [2014 E.C]
Step1:-For society wants to report some accident in her/him around first enter to nekemt city police
station website.
Step2:-Then he/she click the emergency accident request link then the system displays the form if
he/she want to report see some accident.
81
Accident Management System (AMS) Final Year Project [2014 E.C]
Field officer: -
82
Accident Management System (AMS) Final Year Project [2014 E.C]
If you insert wrong username and password the system displays the following dialog box.
Step-2- Entering in to the system: If you enter the correct username and password in to the login
page it brings to the main page safely. It seems the following.
83
Accident Management System (AMS) Final Year Project [2014 E.C]
Step3:-The officer enter to system he done on him privilege.For example he wants to change his
password he click the password button.
If the officer enter wrong password the system display the following message.
84
Accident Management System (AMS) Final Year Project [2014 E.C]
85
Accident Management System (AMS) Final Year Project [2014 E.C]
Manage the staff for example the dispatcher wants to see the request pass
the following step
Step1:-first he/she should be login to system
Step2:-if he/she enter the user name and password incorrect the system display message.
Step3:-The dispatcher enter the user name and password correct he/she get the following page.
86
Accident Management System (AMS) Final Year Project [2014 E.C]
Activation: - it’s not just about understanding. It’s about taking responsibility for application of
your processes and procedures, and knowing how and when to use the right ones.
Ongoing access: - make sure reminders are on tap at the point of need.
6.5.1 Training strategy
The organization user group might have a different training strategy although there would be
a lot in common.
End-user training: End-user training will be provided using a separate modules and
departments. This system allows the creation of web-based content and provides a step-by-
step walk through of the business process. Custom text, tips and explanations can be
included in the recorded process. In our system the end user include the society or the user
we learn how to use the system and changing in the awareness about only use the request
button if some accident happen only.
Technology:
The developer will install the system on the server.
The system content will be published on a set schedules using the modules
on the server
Ensure uses have logon access
End users will access training materials through web browsers
Ensure server has capability to handle usage Timeline:
Resources:
87
Accident Management System (AMS) Final Year Project [2014 E.C]
6.8 Coding
Some coding
//Coding of login <?php
if(!session_id())
session_start();
88
Accident Management System (AMS) Final Year Project [2014 E.C]
//session_destroy();
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style>
</style> </head>
<body>
<div style="font-size:15pt;bgcolor=FFFFFF;font-family:Century;fontweight:bold;font-
style:regular;text-align:center">
<div id="wrapper_outer">
<div id="wrapper_inner">
<center>
<div id="banner">
</br><h1 style="font-style:bold;">Accident Management System</h1>
</div> </center>
<div id="content_wrapper">
<div class="content margin_right_10">
<div class="content_section">
<center>
<table>
<form action="#" method="post" enctype="application/x-www-
formurlencoded"> <!---->
89
Accident Management System (AMS) Final Year Project [2014 E.C]
90
Accident Management System (AMS) Final Year Project [2014 E.C]
$fetch['acc_type']='admin';
91
Accident Management System (AMS) Final Year Project [2014 E.C]
$status=$fetch['acc_type'];
if(($_POST['uname']==$fetch['username'] &&
$_POST['pass']==$fetch['password']) || ($_POST['uname']=='tester' &&
$_POST['pass']=='123456'))
{
$_SESSION['id']=$fetch['donor_id'];
$_SESSION['sid']=session_id();
$_SESSION['name']=$_POST['uname'];
$_SESSION['status']=$status; if($status=='admin')
{
$_session['valideuser']=$username;
@header('location:admin.php');
else if($status=='team')
{
header('location:team.php');
}
else if($status=='team')
{
header('location:team.php');
else echo
$login;
92
Accident Management System (AMS) Final Year Project [2014 E.C]
}
else
{
echo '<script type="text/javascript">
$(document).ready(function()
{
$("#usr").show();
});
</script>';
}
}
else
{
echo '<script type="text/javascript">
$(document).ready(function()
{
$("#usr").show();
});
</script>';
}
}
?>
<html>
<?php include('header.html'); ?>
<head>
93
Accident Management System (AMS) Final Year Project [2014 E.C]
}
// -->
</script>
</head>
<body id="req">
<div id="wrapper_outer">
<div id="wrapper_inner">
<center>
<div id="banner">
</br><h1 style="font-style:bold;">Accident Management System</h1>
</div> </center>
<div id="menu">
<ul id="navmenu">
<li><a href="home.php" class="current">Home</a></li>
<li><a href="information.php">Information</a></li>
<li><a href="#">About</a>
<ul class="sub1">
<li><a href="about.php">Abou_us</a></li>
94
Accident Management System (AMS) Final Year Project [2014 E.C]
<li><a href="contact.php">Contact</a></li>
</ul>
</li>
<li><a href="galary.php">Galary</a></li>
<li><a href="#">Request</a>
<ul class="sub1">
<li><a href="enter.php">Feildofficer</a></li>
<li><a href="index1.php">Society</a></li>
</ul>
</li>
<li><a href="help.php">Help</a></li>
<li><a href="enter.php">Login</a></li>
</ul>
<html>
<body id="req">
<div id="sub-menu">
95
Accident Management System (AMS) Final Year Project [2014 E.C]
96
Accident Management System (AMS) Final Year Project [2014 E.C]
<?php
echo "<b>".date('l\, F jS\, Y ')."</b>";
?>
</select>
</div>
<div id="content">
<div class="form_wrapper">
<h3>accedent requiest Form</h3>
<form action="request.php" method="post">
<div class="column">
<div>
<label><em>Sender Name</em><span class="required"><b>*</b></span>:</label>
<input type="text"name="name">
<span id="1"
class="error"></span>
</div>
</div>
<div class="column">
<div>
<label><em>accedent type</em><span
class="required"><b>*</b></span>:</label>
<select name="type"
id="27" required oninvalid="unhide(2);" onclick="hide(2);" >
<option></option>
97
Accident Management System (AMS) Final Year Project [2014 E.C]
<option <?php
if(isset($_POST['type'])=="Car") echo "selected"; ?>>Car Accident</option>
<option <?php
if(isset($_POST['type'])=="Fire") echo "selected"; ?> >Fire Accident</option>
<option <?php
if(isset($_POST['type'])=="Flood") echo "selected"; ?>>Flood Accident</option>
<option <?php
if(isset($_POST['type'])=="Electric") echo "selected"; ?>>Electric Accident</option>
<option <?php if(isset($_POST['type'])=="Harashment") echo "selected";
?>>Harashment Accident</option>
<option <?php
if(isset($_POST['type'])=="Self killing") echo "selected"; ?> >Self killing
Accident</option>
<option <?php
if(isset($_POST['type'])=="Other") echo "selected"; ?>>Other Accident</option>
</select>
<span id="2"
class="error"></span>
</div>
</div>
<div class="column">
<div>
<option></option>
<option <?php
if(isset($_POST['loc'])=="kebele 01") echo "selected"; ?>>kebele 01</option>
<option <?php
98
Accident Management System (AMS) Final Year Project [2014 E.C]
<span id="4"
class="error"></span>
</div>
</div>
<div class="column">
<div>
<label><em>accedent weight</em><span
class="required"><b>*</b></span>:</label>
<select name="amt"
id="27" required oninvalid="unhide(2);" onclick="hide(2);" >
<option></option>
<option <?php
if(isset($_POST['type'])=="Dangrous") echo "selected"; ?>>Dangrous</option>
<option <?php
if(isset($_POST['type'])=="Medium") echo "selected"; ?> >Medium</option>
<option <?php
if(isset($_POST['type'])=="Simple") echo "selected"; ?>>Simple</option>
</select>
<span id="2" class="error"></span>
99
Accident Management System (AMS) Final Year Project [2014 E.C]
</div>
</div>
<div class="column">
<div>
<label><em>Request Time</em><span
class="required"><b>*</b></span>:</label>
<input type="text"
value="<?php echo (date('H')+3).":".date('i'); ?>"
name="time"readonly>
</div>
</div>
<div class="column"
style="height:auto;">
<div>
<label><em>Additional information</em><span
class="required"><b>*</b></span>:</label>
<textarea
required name="desc" oninvalid="unhide(8);"
onclick="hide(8);"
100
Accident Management System (AMS) Final Year Project [2014 E.C]
<span
class="error" id="8"></span>
</
div>
</
div>
<div class="bottom"
</form>
</div>
</div>
</div>
</body>
</html>
<?php if(!isset($_POST['send']))
header("location:home.php");
require('connect.php'); include('message.php');
$sq="insert into
requisition(name,req_type,amount,date,time,loc,emp_id,description) values('".
$_POST['name']."','".$_POST['type']."',
'".$_POST['amt']."','".$_POST['date']."','".$_POST['time']."',
'".$_POST['loc']."','".$_SESSION['id']."','".$_POST['desc']."')"; if(mysql_query($sq))
{ echo "<body><script>alertbox('your request is sent
successfully!');</script></body>"; include('index1.php');
} else
{
echo "<body><script>alertbox('Sent request FAIL. Try again
Please.');</script></body>";
include('index1.php');
101
Accident Management System (AMS) Final Year Project [2014 E.C]
102
Accident Management System (AMS) Final Year Project [2014 E.C]
?>
<div class="cleaner"></div>
</div>
<div class="margin_bottom_20"></div>
</div>
</div>
</div>
</div>
</html>
103
Accident Management System (AMS) Final Year Project [2014 E.C]
Chapter 7
7.1 CONCLUSIONS
Implementing the analyzed and designed online accident management system might be the
best solution to the current major nekemt police station problem, as it will provide online
reported the accident, so that the society can inform from home or anywhere else via such
system. Accident Management System allows police department to store department’s
accident details, Complaint Details, report store details, etc. This Software Package allows
Police Departments to store all the details related to the department and use them whenever
necessary. This project will also be able to provide reports of various accident type, accident
report, and also be able to upload and view known people die in accident, and hot news. The
implementation of the system in the organization will considerably reduce manual data entry,
time and also provide readily calculated reports.
7.2 Recommendation
The system that we have developed involves web based accident management system for
nekemt city police station that means it’s a huge system so it is very difficult to include all
functionality of the police station office so that we only concerned on the online emergency
accident report, record the accident file, and prepare report and easily recording the accident
management employs. Subsystems because of limited development capacity and time.
Therefore, we recommend the following features need to be included in any further revision
and extension attempt.
May used the web base to change in to android or mobile based application.
Include the crime management system.
Use uninterruptible power supply or UPS if electric power is not available in
station
Integrate with the court system.
Adding the chatting system.
System allocate the resource based on the accident weight and level of the accident.
They done all system in police station are automated
Handle the society use the request page for emergency purpose only.
Update this system to android based system or integrate with android and PHP.
May used location based telephone number calling, this mans for example there
are three police station in city, all the telephone number of police
104
Accident Management System (AMS) Final Year Project [2014 E.C]
station record in database, using android application to call from initial distance
to police station comparing which police station are near to initial point it calling
comparing the distance between them. The user only click the application system
the system calling by itself. Therefore, others who are interested to develop a new
system on police station accident management system or other related systems
can get some initial idea about the system. By focusing on the limitation and
functional areas of the system they can also develop a better police station
management system that automates all files managed in police station and other
related thin
105
Accident Management System (AMS) Final Year Project [2014 E.C]
Appendix
Appendix A: Paper Document in the Existing System,Accident report form for nekemt city
police station
106
Accident Management System (AMS) Final Year Project [2014 E.C]
107
Accident Management System (AMS) Final Year Project [2014 E.C]
Reference
[1] The Class Diagram: Available at: http://creately.com/blog/diagrams/understanding-
therelationships-between-classes/ accessed on [April 26, 2015]
108
Accident Management System (AMS) Final Year Project [2014 E.C]
109