By: Team SE-EDU Since: Jun 2016 Licence: MIT
- 1. Quick Start
- 2. Features
- 2.1. Viewing help :
help - 2.2. Autocomplete CLI (since v1.3)
- 2.3. Adding a event:
addevent - 2.4. Deleting a event:
deleteEvent - 2.5. Adding a person:
add - 2.6. Adding a temporary resident:
- 2.7. Adding a picture:
addImage - 2.8. Deleting a picture:
deleteImage - 2.9. Adding a picture:
GUI image(since v1.2) - 2.10. Deleting a picture:
GUI button(since v1.2) - 2.11. Highlighting by tag :
highlight(since v1.4) - 2.12. Swap Rooms:
swaproom - 2.13. Switch. Tab:
switch - 2.14. Listing all persons :
list - 2.15. Sorting the Resident Book:
sort - 2.16. Editing a person :
edit - 2.17. Locating persons by name:
find - 2.18. Deleting a person :
delete - 2.19. Deleting persons by tag:
deletebytag - 2.20. Selecting a person :
select - 2.21. Listing entered commands :
history - 2.22. Undoing previous command :
undo - 2.23. Redoing the previously undone command :
redo - 2.24. Clearing all entries :
clear - 2.25. Exiting the program :
exit - 2.26. Saving the data
- 2.27. Back up of data :
backup(since v1.3) - 2.28. Import data :
import(Since v1.4) - 2.29. Remove all Tags with specified name :
rm(Since v1.3) - 2.30. Person Panel (since v1.4)
- 2.31. Calendar Interface (Since v1.4)
- 2.32. View previous or next month on calendar:
prevornext - 2.33. Events (Since v1.4)
- 2.1. Viewing help :
- 3. FAQ
- 4. Command Summary
-
Ensure you have Java version
1.8.0_60or later installed in your Computer.ℹ️Having any Java 8 version is not enough.
This app will not work with earlier versions of Java 8. -
Download the latest
residentbook.jarhere. -
Copy the file to the folder you want to use as the home folder for your Resident Book.
-
Double-click the file to start the app. The GUI should appear in a few seconds.
-
Type the command in the command box and press Enter to execute it.
e.g. typinghelpand pressing Enter will open the help window. -
Some example commands you can try:
-
list: lists all contacts -
addn/John Doe p/98765432 e/johnd@example.com r/01-108: adds a contact namedJohn Doeto the Resident Book. -
delete3: deletes the 3rd contact shown in the current list -
exit: exits the app
-
-
The following is an example of a successful execution of commands.
-
The following is an example of a unsuccessful execution of commands.
-
Refer to the Features section below for details of each command.
Command Format
-
Words in
UPPER_CASEare the parameters to be supplied by the user e.g. inadd n/NAME,NAMEis a parameter which can be used asadd n/John Doe. -
Items in square brackets are optional e.g
n/NAME [t/TAG]can be used asn/John Doe t/friendor asn/John Doe. -
Items with
… after them can be used multiple times including zero times e.g.[t/TAG]…can be used as(i.e. 0 times),t/friend,t/friend t/familyetc. -
Parameters can be in any order e.g. if the command specifies
n/NAME p/PHONE_NUMBER,p/PHONE_NUMBER n/NAMEis also acceptable. -
Autocomplete options show up upon input
Command Line Interface autocomplete feature which auto-generates list of resident names on commands such as find.
Examples:
* typing a returns a list of commands starting with add.
* typing `find ` returns a list of resident names autocompleted.
* typing `edit ` returns a list of possible indexes
Adds a event to the event book
Format: addevent ti/TITLE des/DESCRIPTION loc/LOCATION time/DATETIME
|
💡
|
The event cannot be longer than one day |
Examples:
-
addevent ti/End of Sem Dinner des/Organised by USC loc/Cinnamon College time/25/11/2017 1630 2 -
addevent ti/USPolymath des/Intellectual Talks loc/Chatterbox time/27/09/2017 1830 to 2230 -
ae ti/Orientation Day 1 des/Games loc/MBS time/30/12/2017 0830 10
Deletes an event from the event book
Format: deleteEvent <index>
-
Deletes the event at the specified
INDEX. -
The index refers to the index number shown in the most recent event list.
-
The index must be a positive integer 1, 2, 3, …
Examples:
-
deleteEvent 5 -
de 10
Adds a person to the resident book
Format: add n/NAME p/PHONE_NUMBER e/EMAIL a/ROOM [t/TAG]…
|
💡
|
A person can have any number of tags (including 0) |
|
💡
|
Only the name field is mandatory |
Examples:
-
add n/John Doe p/98765432 e/johnd@example.com r/01-100 -
add n/Betsy Crowe t/friend e/betsycrowe@example.com r/02-109 p/1234567 t/guest
Adds a temporary resident to the resident book which will be deleted when the number of days specified has elapsed
Format: add n/NAME p/PHONE_NUMBER e/EMAIL r/ROOM [temp/NUMBER_OF_DAYS] [t/TAG]…
|
ℹ️
|
|
Example of temporary resident that stays for 1 days:
-
add n/James Bond e/Jamesbond@example.com r/09-100 p/98765432 temp/1 t/hero
Adds an image to a resident in the resident book as specified by the current index
Format: addImage INDEX url/IMAGE_URL
|
💡
|
This is NOT an undoable command |
|
ℹ️
|
|
Examples:
-
addImage 7 url//Users/username/Downloads/image.jpg
Deletes an image to a resident in the resident book as specified by the current index
Format: deleteImage INDEX
|
💡
|
This is NOT an undoable command |
Examples:
-
deleteImage 1
Adds a picture of a resident in the resident book
Format: click on the +image button after selecting a resident in the current list of displayed residents
|
💡
|
Similar to the CLI version of add image, this action is NOT undoable |
Deletes a person’s picture from the address book
Format: click on the -image button after selecting a resident in the displayed list
|
💡
|
Similar to the CLI version of add image, this action is NOT undoable |
Highlights all residents with specified tag / Removes highlighting when residents highlighted
Format: highlight TAG_NAME / `highlight '-'"
|
💡
|
Only highlight - will remove highlighting, highlighting invalid tags would only give anerror message in the message box |
Examples:
-
highlight owesmoney -
highlight -- Clears current highlighting
Swaps the rooms of two residents in the residentbook. The indexes are based on the last list displayed to the user.
Format: swaproom `index index`
|
💡
|
The command swaproom 1 2 and swaproom 2 1 are equivalent
|
Examples:
-
swaproom 1 2 -
swaproom 3 5
Switches between Residents List and Events List
Format: switch `tab-number`
-
Switches to the tab that
tab-numbercorresponds to. -
The
tab-number1 refers to Residents List and 2 refers to Events List -
The
tab-numbermust be a either 1 or 2
Examples:
-
switch 1 -
switch 2 -
sw 1
Sorts the resident book
Format: sort `sorting-criteria`
-
Sorts the residents list by the
sorting-criteria. -
The
sorting-criteriamust be one of the following:name,room,phoneandemail
Examples:
-
sort name -
sort room -
sort phone -
sort email
Edits an existing person in the resident book.
Format: edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [r/ROOM] [t/TAG]…
-
Edits the person at the specified
INDEX. The index refers to the index number shown in the last person listing. The index must be a positive integer 1, 2, 3, … -
At least one of the optional fields must be provided.
-
Existing values will be updated to the input values.
-
When editing tags, the existing tags of the person will be removed i.e adding of tags is not cumulative.
-
You can remove all the person’s tags by typing
t/without specifying any tags after it.
Examples:
-
edit 1 p/91234567 e/johndoe@example.com
Edits the phone number and email of the 1st person to be91234567andjohndoe@example.comrespectively. -
edit 2 n/Betsy Crower t/
Edits the name of the 2nd person to beBetsy Crowerand clears all existing tags.
Finds persons whose names contain any of the given keywords.
Format: find KEYWORD [MORE_KEYWORDS]
-
The search is case insensitive. e.g
hanswill matchHans -
The order of the keywords does not matter. e.g.
Hans Bowill matchBo Hans -
Only the name is searched.
-
Only full words will be matched e.g.
Hanwill not matchHans -
Persons matching at least one keyword will be returned (i.e.
ORsearch). e.g.Hans Bowill returnHans Gruber,Bo Yang
Examples:
-
find John
ReturnsjohnandJohn Doe -
find Betsy Tim John
Returns any person having namesBetsy,Tim, orJohn
Deletes the specified person from the resident book.
Format: delete INDEX
-
Deletes the person at the specified
INDEX. -
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer 1, 2, 3, …
Examples:
-
list
delete 2
Deletes the 2nd person in the resident book. -
find Betsy
delete 1
Deletes the 1st person in the results of thefindcommand.
Deletes all persons in the address book who has the supplied tag.
Format: deletebytag TAG
Command Alias: dbt
-
The addressbook automatically updates as the deletion happens.
-
TAGsupplied is case-sensitive i.e. friends is different from Friends. This is to allow more freedom for users in the creation of tags. Please take note of this when using this command. -
This command will delete all persons who have the supplied
TAG, even if they contain tags other than the tag supplied (Refer to example below).
Examples:
-
deletebytag friendwill delete all persons who have a tag offriend -
If Alice has tags "RA" and "CollegeMaster",
deletebytag RAwill erase Alice from the ResidentBook.
Selects the person identified by the index number used in the last person listing.
Format: select INDEX
-
Selects the person and loads the Google search page the person at the specified
INDEX. -
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer
1, 2, 3, …
Examples:
-
list
select 2
Selects the 2nd person in the resident book. -
find Betsy
select 1
Selects the 1st person in the results of thefindcommand.
Lists all the commands that you have entered in reverse chronological order.
Format: history
|
ℹ️
|
Pressing the ↑ and ↓ arrows will display the previous and next input respectively in the command box. |
Restores the resident book to the state before the previous undoable command was executed.
Format: undo
|
ℹ️
|
Undoable commands: those commands that modify the resident book’s content ( |
Examples:
-
delete 1
list
undo(reverses thedelete 1command) -
select 1
list
undo
Theundocommand fails as there are no undoable commands executed previously. -
delete 1
clear
undo(reverses theclearcommand)
undo(reverses thedelete 1command)
Reverses the most recent undo command.
Format: redo
Examples:
-
delete 1
undo(reverses thedelete 1command)
redo(reapplies thedelete 1command) -
delete 1
redo
Theredocommand fails as there are noundocommands executed previously. -
delete 1
clear
undo(reverses theclearcommand)
undo(reverses thedelete 1command)
redo(reapplies thedelete 1command)
redo(reapplies theclearcommand)
Resident book data are saved in the hard disk automatically after any command that changes the data.
There is no need to save manually.
Resident book data can be stored in a back up file when necessary. This function is not undoable. Please ensure that previous backups are truly deprecated.
This command is good in case any the existing resident book is corrupted, or when the semester is over.
Format: backup
The import command helps to integerate Resident details from an external XML file with the current ResidenkBook details. This function can be done through typing through CLI or selecting from the UI. It is an undoable function.
Format: import FILE_PATH
-
Adds all person that is not already in the resident book.
-
The FILE_PATH must contain a valid xml file.
Examples:
-
import C:\Desktop\exchangeStudents.xml
Imports exchangeStudents.xml into current resident book.
It can be done through the Ui as well.
This function is useful to remove all deprecated tags. For example, when all residents have moved in, all the tags can be removed as "Pending".
Format: removeTag TAG
Command Alias: rm
|
ℹ️
|
The TAG_NAME specified must exist in the current ResidentBook. If it does not exist, exception will be thrown and user will be notified that not such tag exist. The following shows an example when invalid tag is provided. |
Examples:
-
rm pending
Remove all "pending" tags from list of residents. -
If Amy has tags "RA" and "CollegeMaster",
removeTag RAwill remove tag from Amy, retaining her other details in the ResidentBook.
Person Panel has been introduced to allow additional information of residents to be displayed.
-
Panel includes GUI add and delete image buttons to update pictures of residents
Calendar has been introduced to allow the hostel administrator to view events happening in the hostel. Events can be seen on calendar interface since v1.5
|
ℹ️
|
To go to previous or next month, type
prev or next.Refer to the next section for details of each command. |
-
User can also click on the "PREV" or "NEXT" button to navigate to the previous or next month.
-
Event names are truncated on the calendar to allow uniform calendar grid size.
-
Calendar is dynamically updated when events are added or deleted.
-
Calendar will stay at the month you are at when events are added or deleted.
-
The current date will be appear in grey colour on the calendar(i.e. 12th Nov in the picture).
-
Users can also click on individual dates. Selected date will turn green(i.e. 29th Nov in the picture). In v2.0, users can click on any day on the calendar and a list of events on that day can be displayed in greater detail.
|
💡
|
When there are three of more events on the same day, calendar only shows two of those events and let you know that they are more events happening on the same day. |
Example:
Format: prev
Format: next
This command allows users to view events taking place in the previous month, or in the next month.
If the current month is November and a user types prev, calendar will show October’s events. Typing prev will bring
the user to September; otherwise if the user types next, calendar will show December’s events.
An example of navigating to the previous month (from November) is shown below.
Q: How do I transfer my data to another Computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous Resident Book folder.
-
Add
add n/NAME p/PHONE_NUMBER e/EMAIL r/ROOM [t/TAG]…
e.g.add n/James Ho p/22224444 e/jamesho@example.com r/12-100 t/friend t/colleague -
Add Event
addevent ti/TITLE des/DESCRIPTION loc/LOCATION time/STARTTIME TO ENDTIME
e.g.addevent ti/End of Sem Dinner des/Organised by USC loc/Cinnamon College time/25/11/2017 2030 to 2359 -
Add Image
-
Delete Image
-
Clear :
clear -
Delete :
delete INDEX
e.g.delete 3 -
Delete Event :
deleteEvent INDEX
e.g.deleteEvent 3 -
Edit :
edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [r/ROOM] [t/TAG]…
e.g.edit 2 n/James Lee e/jameslee@example.com -
Find :
find KEYWORD [MORE_KEYWORDS]
e.g.find James Jake -
List :
list -
Help :
help -
Highlight :
highlight -
Select :
select INDEX
e.g.select 2 -
History :
history -
Undo :
undo -
Redo :
redo -
Backup :
backup -
Import :
import FILE_PATH
e.g.import C:\Documents\exchangeStudent.xml -
*RemoveTag :
removeTag TAGorrm TAG
e.g.removeTag RA -
Delete by tag:
deletebytag TAG
e.g.deletebytag RA -
Switch Tab :
switch `tab-number`
e.g.switch 1 -
Swap Rooms :
swaproom INDEX INDEX
e.g.swaproom 3 2 -
Previous Month:
prev -
Next Month:
next














