By: Team F09-B2
Since: Aug 2017
Licence: MIT
- 1. Quick Start
- 2. Features in v1.0
- 2.1. Viewing help :
help
orh
- 2.2. Adding a place:
add
ora
- 2.3. Listing all places :
list
orl
- 2.4. Editing a place :
edit
ored
- 2.5. Locating places by name or tag:
find
orfd
- 2.6. Deleting a place :
delete
ordel
- 2.7. Selecting a place :
select
ors
- 2.8. Listing entered commands :
history
orhy
- 2.9. Undoing previous command :
undo
orun
- 2.10. Redoing the previously undone command :
redo
orre
- 2.11. Clearing all entries :
confirm_clear
- 2.12. Exiting the program :
exit
orex
- 2.13. Saving the data
- 2.1. Viewing help :
- 3. Changes in v1.1
- 4. Changes from v1.2
- 5. Changes in v1.3
- 6. Changes in v1.4
- 7. Changes in v1.5rc
- 8. Coming in v2.0
- 9. FAQ
- 10. Command Summary
-
Ensure you have Java version
1.8.0_60
or 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
touristbook.jar
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 GUI should appear in a few seconds.
-
Type the command in the command box and press Enter to execute it.
e.g. typinghelp
and pressing Enter will open the help window. -
Some example commands you can try:
-
list
: lists all places -
add
n/Marina Bay Sands a/10 Bayfront Avenue, Singapore 018956
: adds a place namedMarina Bay Sands
to the Tourist Book. -
delete
3
: deletes the 3rd place shown in the current list -
exit
: exits the app
-
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/Marina Bay Sands
. -
Items in square brackets are optional e.g
n/NAME [t/TAG]
can be used asn/Marina Bay Sands t/attractions
or asn/Marina Bay Sands
. -
Items with
…
after them can be used multiple times including zero times e.g.[t/TAG]…
can be used ast/attractions
,t/onestar t/twostars
etc. -
Parameters can be in any order e.g. if the command specifies
n/NAME a/ADDRESS
,a/ADDRESS n/NAME
is also acceptable. -
All the commands are case-sensitive.
Format: help
or h
Warning
|
Please close the |
Adds a place to the Tourist Book
Format: add n/NAME [ph/PHONE] [w/WEBSITE] [a/ADDRESS] p/POSTALCODE [t/TAG]…
or
Format: a n/NAME p/POSTALCODE [t/TAG]…
💡
|
A place can have any number of tags (including 0) |
💡
|
A place can have null for Address, Website, Tag and Phone fields. |
💡
|
It is compulsory for a place to have Name and Postalcode. |
-
The command will reject if following requirement does not meet -
-
Phone numbers can only contain numbers, and should be at least
3
digits long -
Postal codes need to be exactly
6
digits. -
Websites need to include
http://www
orhttps://www
in front.
-
Examples:
-
add n/Marina Bay Sands a/10 Bayfront Avenue p/018956
-
a n/Marina Bay Sands a/10 Bayfront Avenue p/018956 t/attractions
Shows a list of all places in the Tourist Book.
Format: list
or l
Edits an existing place in the Tourist-Book
Format: edit INDEX [n/NAME] [a/ADDRESS] [p/POSTALCODE] [t/TAG]…
or
Format: ed INDEX [n/NAME] [a/ADDRESS] [p/POSTALCODE] [t/TAG]…
-
Edits the place at the specified
INDEX
. The index refers to the index number shown in the last place listing. The index must be a positive integer, e.g 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 place will be removed i.e adding of tags is not cumulative.
-
You can remove all the place’s tags by typing
t/
without specifying any tags after it.
Examples:
-
edit 1 a/20 Bayfront Avenue p/000001 t/bookmarks
Edits the address and tag of the 1st place to be20 Bayfront Avenue
andbookmarks
respectively. -
ed 2 n/Singapore Zoo t/
Edits the name of the 2nd place to beSingapore Zoo
and clears all existing tags.
Finds places whose names or tags contain any of the given keywords.
Format: find [PREFIX]KEYWORD [MORE_KEYWORDS]
or fd [PREFIX]KEYWORD [MORE_KEYWORDS]
-
The search is case insensitive. e.g
zoo
will matchZoo
-
The prefix will determine which field you are searching for.
n/
is the prefix for name, whilet/
is the prefix for tag. -
The order of the keywords does not matter. e.g.
Singapore Zoo
will matchZoo Singapore
-
Only the name or tag is searched.
-
Only one field can be searched at a time, i.e. you cannot search both tag and name at the same time.
-
Only full words will be matched e.g.
Singa
will not matchSingapore
-
Places matching at least one keyword will be returned (i.e.
OR
search). e.g.Singapore Gardens
will returnSingapore Zoo
,Singapore Botanical Gardens
Examples:
-
find n/Singapore
ReturnsSingapore Zoo
andSingapore Flyer
-
fd n/Singapore Sands Botanic
Returns any place having namesSingapore
,Sands
, orBotanic
-
find t/attractions
Returns a list of places tagged asattractions
-
fd t/onestar
Returns a list of places tagged asonestar
Deletes the specified place from the Tourist Book.
Format: delete INDEX
or del INDEX
-
Deletes the place at the specified
INDEX
. -
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer, e.g 1, 2, 3, …
Examples:
-
list
Show all locations available.delete 2
Deletes the 2nd place in the address book. -
find n/Bay
Show all locations whose names containing 'Bay'.del 1
Deletes the 1st place in the results of thefind
command.
Selects the place identified by the index number used in the last place listing.
Format: select INDEX
or s INDEX
-
Selects the place and loads the Google search page the place at the specified
INDEX
. -
The index refers to the index number shown in the most recent listing.
-
The index must be a positive integer, e.g 1, 2, 3, …
Examples:
-
list
Show all locations available.select 2
Selects the 2nd place in the address book. -
find n/Bay
Show all locations whose names containing 'Bay'.select 1
Selects the 1st place in the results of thefind
command.
Lists all the commands that you have entered in reverse chronological order.
Format: history
or hy
ℹ️
|
Pressing the ↑ and ↓ arrows will display the previous and next input respectively in the command box. |
Restores the Tourist Book to the state before the previous undoable command was executed.
Format: undo
or un
ℹ️
|
Undoable commands: those commands that modify the Tourist Book’s content ( |
Examples:
-
delete 1
list
undo
(reverses thedelete 1
command) -
select 1
list
undo
Theundo
command fails as there are no undoable commands executed previously. -
delete 1
clear
undo
(reverses theclear
command)
undo
(reverses thedelete 1
command)
Reverses the most recent undo
command.
Format: redo
or re
Examples:
-
delete 1
undo
(reverses thedelete 1
command)
redo
(reapplies thedelete 1
command) -
delete 1
redo
Theredo
command fails as there are noundo
commands executed previously. -
delete 1
clear
undo
(reverses theclear
command)
undo
(reverses thedelete 1
command)
redo
(reapplies thedelete 1
command)
redo
(reapplies theclear
command)
Clears all entries from the Tourist Book.
Format: confirm_clear
Display MRT map of Singapore by clicking on MRT Map
→ MRT Map
or
Display MRT map of Singapore by using the CLI.
Format: mrt
or
Using the shortcut key F3
ℹ️
|
|
Display a list of useful contact numbers by clicking on Help → Useful Contacts
or
Display a list of useful contact numbers by using the CLI.
Format: emergency
or sos
or
Using the shortcut key.
Format: F2
Adds a bookmark tag to the specified place from the address book.
Format: bookmark INDEX
-
Bookmarks the place 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
bookmark 1
Bookmarks the first place in the address book. -
find n/attractions
bookmark 3
Bookmarks the 3rd place in the results of thefind
command.
Clears all bookmarks from the address book.
Format: clear_bookmark
Tourist can opt to leave Address, Email and Phone field empty when adding in new attraction.
For Example:
* Instead of: add n/Marina Bay Sands ph/698837 /https://www.marinabay.com.sg a/10 Bayfront Avenue p/018956
* User to can key in: add n/Marina Bay Sands p/018956
If the user left as blank the default values are as follow:
- Phone: 000
- Address: -
- Website http://www.-.com
Displays the directions from location A to selected destination.
Format: dir [INDEX_FROM] [INDEX_TO]
-
Displays the location from
INDEX_FROM
toINDEX_TO
. The index refers to the index number shown in the last place listing. -
Both fields must be provided.
-
The index must be a positive integer >= 1 and within the range of the list shown
Examples:
-
dir 1 2
Returns the directions from the location at index 1 to index 2 of the places listing. -
dir 4 1
Returns the directions from the location at index 4 to index 1 of the places listing.
Displays the current PSI levels in Singapore.
Format: psi
ℹ️
|
|
Export your data to .csv file format for printing purposes. A data file TouristBookData.csv
will be created in the same folder as the touristbook.jar
.
Format: export
Backup a copy of your data, addressbook-backup.xml
, to the data
folder.
Format: backup
ℹ️
|
Running the command again if you already have a previous backup will overwrite the previous backup file! |
List all bookmarked places in Tourist Book
Format: show_bookmark
The previous versions had Email attached to place details, we changed it to Website to better align our product with the user needs.
Changes the color of a selected tag to a colour of choice.
Format: color /t TAG
or col t/TAG
Add and edit a rating to a place in the Tourist Book.
Format: rate [INDEX] [RATING]
Get the latest exchange rates of currencies in Singaore.
Format: [VALUE] [CURRENCY] to [DESIRED_CURRENCY]
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 Tourist Book folder.
-
Add
add n/NAME [a/ADDRESS] p/POSTALCODE [t/TAG]…
e.g.add n/Marina Bay Sands p/018956
ora n/Marina Bay Sands a/10 Bayfront Avenue p/018956 t/attractions
-
Bookmark :
bookmark INDEX
e.g.bookmark 2
-
Show Bookmarks :
show_bookmark
-
Clear Bookmarks:
clear_bookmark
-
Clear :
confirm_clear
-
Delete :
delete INDEX
ordel INDEX
e.g.delete 3
-
Direction :
dir
INDEX_FROM
INDEX_TO
e.gdir 1 3
-
Edit :
edit INDEX [n/NAME] [a/ADDRESS] [p/POSTALCODE] [t/TAG]…
e.g.edit 2 a/20 Bayfront Avenue t/bookmarks
or`ed 2 a/20 Bayfront Avenue
-
Find :
find [PREFIX]KEYWORD [MORE_KEYWORDS]
e.g.find n/Bay Park
orfind t/outdoors
-
Go to :
goto
e.g.goto 2
-
List :
list
orl
-
Help :
help
orh
-
Weather :
weather
-
Select :
select INDEX
ors
e.g.select 2
-
History :
history
orhy
-
Undo :
undo
orun
-
Redo :
redo
orre
-
MRT Map :
mrt
-
PSI Value :
psi
-
Export :
export
-
Backup :
backup
-
Sort :
sort
-
Useful Contacts :
emergency
orsos