By: Team F10-3
Since: `Aug 2018'
- 1. Introduction
- 2. Quick Start
- 3. Features
- 3.1. Viewing help :
help
- 3.2. Adding a person:
add
- 3.3. Editing a person :
edit
- 3.4. Display a list of all persons :
list
- 3.5. Find a person by NRIC :
find
- 3.6. Get screening history of a person:
check
- 3.7. Deleting a person :
delete
- 3.8. Clear records :
clear
- 3.9. Requesting for assistance :
request
- 3.10. Dispatch a PO :
dispatch
- 3.11. Lock System :
lock
- 3.12. Update Password :
update password
- 3.13. Check notifications:
inbox
- 3.14. Exit program :
shutdown
- 3.1. Viewing help :
- 4. Commands List
The police database is for police officers(PO) and headquarter personnel(HQP). Both groups will have varying access and authorization levels to this database. POs would be able to read from the database after screening someone while on patrol and choose his course of action base on the status/threat level of subject. HQP would have the added functions of adding and removing people from the database. Refer to quick start to get started
-
Ensure that you have Java Version 9 installed on your device.
-
Download the latest version of EX-SI-53 here.
-
Copy the file to the folder you want to use as the home folder for your Address Book.
-
Double-click the file to start the app. The user interface should appear in a few seconds.
-
Type the command in the command box and press Enter to execute it.
-
To display the full list of commands and a summary of their functions in the application, type ‘help’ and press “Enter”.
-
Refer to Section 3, “Features” for details of each command.
Command Format
-
Words in
UPPER_CASE
are the parameters to be supplied by the user e.g. inadd n/NAME
,NAME
is a parameter which can be used asadd n/John Doe
-
Items in the WANTEDFOR parameter must be given if STATUS is "wanted"
-
* Items in square brackets are optional e.g `n/NAME [p/POSTALCODE] [s/STATUS]' can be used as 'n/John Doe p/510246 s/xc' or 'n/John Doe s/xc'
-
Items with
…
after them can be used multiple times including zero times e.g.o/OFFENSE…
can be used aso/theft
,o/riot o/drugs
etc
Format: 'help'
-
Lists all the features in a user friendly format for users and how to use them
Adds a criminal to the database - only by HQP.
Format: 'add NAME n/NRIC d/DATEOFBIRTH p/POSTALCODE s/STATUS w/WANTEDFOR o/PASTOFFENSES'
Examples:
-
add John Doe n/f1234567p d/1996 p/510246 s/xc w/none o/theft o/drugs"
-
Displays a message stating the new person being added
ℹ️
|
|
💡
|
A person can have more than 0 past offenses |
Edit a specified parameter of an existing person in the address book - only by HQP
Format: 'edit NRIC n/[NAME] p/[POSTAL_CODE] s/[STATUS] w/WANTED_FOR o/PAST_OFFENCES'
-
Edits the person with the specified NRIC.
-
At least one of the optional fields must be provided.
-
Existing values will be updated to the input values.
Examples:
-
edit g1952866Q p/510246
-
Edits the postal code of the person with the specified NRIC to be 510246
Shows a list of every person in the records
Format: 'list'
Examples:
-
list
-
displays list of all persons
Finds a person in the records by the specified NRIC
Format: 'find NRIC'
Examples:
-
find s1234567a
-
Returns person with 's1234567a'
ℹ️
|
|
Displays all the times a person was screened in the form of timestamps (using 'find' command) - Only by HQP
Format: 'check s1234567a'
-
Returns an indexed list of timestamps for specified person, as well as corresponding PO ID nuber
Examples:
-
check s1234567a
-
Shows an indexed list of timestamps for when person with s1234567a was screened by any POs
Deletes the specified person from the database- only by HQP.
Format: 'delete NRIC'
-
Deletes the person with the specifies NRIC.
Examples:
-
delete G1952866Q
-
Deletes the person with the specified NRIC from the records.
Clears the records of persons- only by HQP
Format: 'clear'
Example:
-
clear
-
Records will now be empty
Generates GPS coordinates of current location and sends it to HQ. Depending on type of assistance requested, either an ambulance or another patrol resource will be dispatched to said location
Format: 'request'
Examples:
-
request
-
Returns a set of GPS coordinates to HQ
Dispatches a specified PO
Format: 'dispatch PO(ID)'
Examples:
-
dispatch PO2
-
PO2 will receive a dispatch message
Locks the system and unlocks with password input
Format: 'lock'
Examples:
-
lock
-
Any user must enter their respective password to unlock
Updates password of user - only HQP can change the user’s password
Format: 'update password'
Examples:
-
update password
-
Please select a password to change
-
User then has to enter old and new alphanumeric password
For HQPs: Check inbox to see a list of dispatch requests made by POs, and are sorted based on severity first, and then time stamp. For POs: Check inbox to see who is responding to request for backup/ambulance/fire truck or to see if have any dispatch orders
Format: 'inbox'
Examples (as a HQP):
-
'inbox'
-
Shows a list of dispatch requests (sorted by severity then timestamp) made by POs on the ground:
Examples (as a PO): * 'inbox' * Shows any dispatch messages by HQ or response for backup if any
-
Help : 'help'
-
Add : 'add n/NAME n/NRIC d/DATE_OF_BIRTH p/POSTAL_CODE s/STATUS w/WANTED_FOR o/PAST OFFENCES…'
E.g. add John Doe n/s1234567a d/1996 p/510246 s/xc w/none o/theft o/drugs E.g. add Bob n/g1234567a d/1996 p/111111 s/clear w/none
-
Edit : 'edit NRIC n/[NAME] p/[POSTAL_CODE] s/[STATUS] w/WANTED_FOR o/PAST_OFFENCES'
E.g. edit g1952866q p/510246
-
List : 'list'
-
Find : 'find NRIC'
E.g. find s1234567a
-
Check : 'check NRIC'
E.g. check s1234567a
-
Delete : 'delete NRIC'
E.g. delete g1952866q
-
Clear : 'clear'
-
Request for assistance : 'RA' (Ambulance) or 'RF' (Fire Brigade) or 'RB' (Backup)
-
Dispatch : 'dispatch PO(ID)'
E.g. dispatch PO2
-
Lock : 'lock'
-
Update Password : 'update password'
-
Check notifications : 'inbox'
-
Exit : 'shutdown'