You are on page 1of 30

Online Crime Reporting

Design Document

session: 2018-2022
Submitted By:

Rabia Zahid 2018-CS-620


Iqra Tabassum 2018-CS-622
Maida Maqbool 2018-CS-640
Sana Murtaza 2018-CS-665

Submitted to:
Respected Sir Usman Ahmed.

Department of Computer Science, New Campus


University of Engineering and Technology Lahore, Pakistan

1
Contents
List Of Figures................................................................................................................................................ 3
List Of Tables ................................................................................................................................................. 4
Table 1. 1 Sign Up 5............................................................................................................................ 4
Table 1. 2 Login 6 ............................................................................................................................... 4
Table 1. 3 Report (Missing People) 7 ................................................................................................. 4
Table 1. 4 View Missing People 8....................................................................................................... 4
Table 1. 5 User Feedback 9 ............................................................................................................... 4
Table 1. 6 To Contact Admin 10 ........................................................................................................ 4
Table 1. 7 Reporting Crime 11 ........................................................................................................... 4
Table 1. 8 Viewing (Criminal Report) 12 ............................................................................................ 4
Table 1. 9 Logout 13........................................................................................................................... 4
1. Use Case ................................................................................................................................................ 5
2. Activity Diagram .................................................................................................................................. 15
3. State Diagram..................................................................................................................................... 16
4. Sequence Diagram .............................................................................................................................. 17
5. ER Diagram .......................................................................................................................................... 22
6. Class Diagram ...................................................................................................................................... 23
8. Deployment Diagram .......................................................................................................................... 25
9. Collaboration Diagram ........................................................................................................................ 26

2
List Of Figures
Figure 1 (USE CASE DIAGRAM) 14

Figure 2 (Activity Diagram) 15

Figure 3(State Diagrams) 16

Figure 4 (Sequence Diagrams) 17

Figure 5 (ER Diagram) 22

Figure 6 Class Diagram 23

Figure 7 (Component Diagram) 24

Figure 8(Deployment Diagram) 25

Figure 9 (Collaborations Diagrams) 26

3
List Of Tables

Table 1. 1 Sign Up 5

Table 1. 2 Login 6

Table 1. 3 Report (Missing People) 7

Table 1. 4 View Missing People 8

Table 1. 5 User Feedback 9

Table 1. 6 To Contact Admin 10

Table 1. 7 Reporting Crime 11

Table 1. 8 Viewing (Criminal Report) 12

Table 1. 9 Logout 13

4
1. Use Case

Table 1. 1 Sign Up
a)

Name Sign up

Participating Actors Any person with age above 16


years.(User)

Goals To get the user successfully signed up.

Pre-Condition  internet must be available.


 User’s age must be above 16 years
Post-Condition  User has been successfully signed
up.
 A confirmation email will be sent.

b)

Main Scenario Serial No Steps

User 1 Enter Email Address

2 Enter Password

3 Click ‘Sign up’ Button

4 Confirmation email will be sent by admin

5 Make Profile by adding information

Extensions 1a Invalid Email

Error message appear

2a Password doesn’t match given requirement

Error message appear

4a Confirmation is failed

Try again message appear

5
Table 1. 2 Login

a)

Name Log in

Participating Actors Admin or User

Goals To get the user or Admin successfully


logged in.

Pre-Condition  internet must be available.


 User or Admin must have been
registered here.
Post-Condition User or Admin has been successfully
logged in.

b)

Main Scenario Serial No Steps

User 1 Enter Email Address

2 Enter Password

3 Click ‘Log in’ Button

Admin 4 Enter Email Address

5 Enter Password

6 Click ‘Log in’ Button

Extensions 1,4 Email not registered

Error message appear

2,5 Password doesn’t match

Error message appear

6
Table 1. 3 Report (Missing People)

a)

Name Report missing people

Participating Actors User

Goals Report missing people.

Pre-Condition  Internet must be available.


 Must be login successfully
Post-Condition Reported Missing people successfully

b)

Main Scenario Serial No Steps

User 1 Click report missing people

2 Enter missing person required detail

3 Click ‘Report Missed person’

Extensions 3a Display message ‘Fill all the fields’ (if user try
to submit complaint without providing all
details)

7
Table 1. 4 View Missing People

a)

Name View Missing People

Participating Actors Visitor

Goals View Missing People Report.

Pre-Condition internet must be available.

Post-Condition Display Missing people list of selected


city

b)

Main Scenario Serial No Steps

User 1 Click on view missing people

2 Select city

3 Click find button

4 Missing people report will display

Extensions 2a City is not in list/invalid city

Error message appear

3a appear message of ‘there is no complaint'

8
Table 1. 5 User Feedback

a)

Use Case Name User feedback


Use case Description User must give feedback so improve the services of system.
Actors Users
Pre-Condition User is logged in.
Post-Condition User must have given feedback to the system.

b)

Main Scenario Serial No. Steps


Participating Actors 1 Write feedback on the form.
Press submit button.
2 Submit the feedback on the
system.
Extensions 1a Empty feedback.
System shows an error
message
2a Internet problem.
System shows error message.

9
Table 1. 6 To Contact Admin

a)

Use Case Name To contact admin.


Use case Description Sending message to admin.
Actors Users
Pre-Condition User is logged in.
Post-Condition Message is sent to admin successfully.

b)

Main Scenario Serial No. Steps


Participating Actors 1 • Write a message to
the admin of the
system.
• Press send button.
2 Send the message to admin.
Extensions 1a Irrelevant message.
System shows an error
message
2a Internet problem.
System shows error message.

10
Table 1. 7 Reporting Crime

a)

Name Reporting Crime

Participating Actors Registered User

Goals Submit a report of criminal condemn


crime.

Pre-Condition 1: Internet must be available.


2: User must be registered.

Post-Condition Report submit successfully

b)

Main Scenario Serial No Steps

User 1 Click on create report button.

2 Select city

3 Fill the requirements for entry of criminal and


related crime in reports.

4 For new criminal add the report.


If criminal already exist just add the crime.

5 Click on submit report button.


Message appear report successfully submit.

Extensions 2a City is not in list/invalid city.

Error message appear.

3a Incomplete form.
Error message appear.

11
Table 1. 8 Viewing (Criminal Report)

a)

Name View criminal/crime Report

Participating Actors Visitor

Goals Viewing crime reports of criminals

Pre-Condition Internet must be available.

Post-Condition Successfully check desired crime reports.

b)

Main Scenario Serial No Steps

User 1 Click crime Reports.


See reports.

2 Search desired criminal/crime report.

Extensions 2a Search report not available.

Error message appear.

12
Table 1. 9 Logout

a)

Use Case Name Log out


Use case Description Log out from system.
Actors Users/Admin
Pre-Condition User has filed the report.
Post-Condition Logged out from the system successfully.

b)

Main Scenario Serial No. Steps


Participating Actors 1
Press log out button.

2 Log out from system.


Extensions 1a Internet problem while
logging out.
System shows error message.

13
Figure 1 (USE CASE DIAGRAM)

14
2. Activity Diagram

Figure 2 (Activity Diagram)

15
3. State Diagram
Figure 3(State Diagrams)
a) Admin

b) User

16
4. Sequence Diagram
Figure 4 (Sequence Diagrams)
a) Sign Up

b) Login

17
c) Report Missing People

d) View Missing People

18
e) feedback

f) Contact Admin

19
g) Report Crime

h) View Criminal Report

20
i) Log out

21
5. ER Diagram
Figure 5 (ER Diagram)

22
6. Class Diagram
Figure 6 Class Diagram

23
7. Component Diagram

Figure 7 (Component Diagram)

24
8. Deployment Diagram

Figure 8(Deployment Diagram)

25
9. Collaboration Diagram
Figure 9 (Collaborations Diagrams)

a) Sign Up

26
b) Login

c) Report Missing People

27
d) View Missing People

e) User Feedback

28
f) Contact Admin

g) Report Crime

29
h) View Reports

i) Logout

30

You might also like