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
1. Quick Start
-
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
-
2. Features in v1.0
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.
2.1. Viewing help : help
or h
Format: help
or h
*Note: The Help window should be closed before continuing to execute other commands.
2.2. Adding a place: add
or a
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. |
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
2.3. Listing all places : list
or l
Shows a list of all places in the Tourist Book.
Format: list
or l
2.4. Editing a place : edit
or ed
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]…
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.
2.5. Locating places by name or tag: find
or fd
Finds places whose names or tags contain any of the given keywords.
Format: find [PREFIX]KEYWORD [MORE_KEYWORDS]
or fd [PREFIX]KEYWORD [MORE_KEYWORDS]
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
2.6. Deleting a place : delete
or del
Deletes the specified place from the Tourist Book.
Format: delete INDEX
or del INDEX
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.
2.7. Selecting a place : select
or s
Selects the place identified by the index number used in the last place listing.
Format: select INDEX
or s INDEX
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.
2.8. Listing entered commands : history
or hy
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. |
2.9. Undoing previous command : undo
or un
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)
2.10. Redoing the previously undone command : redo
or re
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)
2.11. Clearing all entries : confirm_clear
Clears all entries from the Tourist Book.
Format: confirm_clear
2.12. Exiting the program : exit
or ex
Exits the program.
Format: exit
or ex
2.13. Saving the data
Tourist Book data are saved in the hard disk automatically after any command that changes the data.
There is no need to save manually.
3. Changes in v1.1
3.1. Logic
component
Added a shorthand equivalent alias for each of the individual commands. For example, besides typing add
, the user can also type a
to remove all places in the list.
3.2. Storage
component
Added a backup method in AddressBookStorage.
4. Changes from v1.2
4.1. Displaying MRT map of Singapore
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
4.2. Useful contact numbers in Singapore
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
4.3. Bookmark a place: bookmark
Adds a bookmark tag to the specified place from the address book.
Format: bookmark INDEX
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.
4.4. Clearing all bookmarks: clear_bookmark
Clears all bookmarks from the address book.
Format: clear_bookmark
4.5. Displaying Weather of Singapore
Display Weather of Singapore by typing in Command Line weather
Format: weather
5. Changes in v1.3
5.1. Display the location of the place
Display the location of the place in Google Map by typing in Command 'goto' followed by the INDEX of the place.
Format: goto
+ INDEX (must be positive)
Examples: goto 1
6. Changes in v1.4
6.1. Allowing the tourist to just input 2 compulsory fields
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
6.2. Get directions to selected destination
Displays the directions from location A to selected destination.
Format: dir [INDEX_FROM] [INDEX_TO]
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.
6.3. Default list of places
Populated a default list of places for the user with 38 places.
7. Changes in v1.5rc
7.1. View current PSI
Displays the current PSI levels in Singapore.
Format: psi
7.2. Tourist Book save files are now exportable to .csv format
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
7.3. Tourist book save files can now be backed-up
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! |
7.4. Display bookmarks: show_bookmark
List all bookmarked places in Tourist Book
Format: show_bookmark
7.5. Changed Email to Website
The previous versions had Email attached to place details, we changed it to Website to better align our product with the user needs.
7.6. Sort Command sort
Sort command allows you to sort the places in alphabetical order.
Format: sort
8. Coming in v2.0
8.1. Changing the display color of a tag
Changes the color of a selected tag to a colour of choice.
Format: color /t TAG
or col t/TAG
8.2. Common statutes/laws in Singapore
Display a list of common statutes/laws for quick reference.
8.3. Rating system
Add and edit a rating to a place in the Tourist Book.
Format: rate [INDEX] [RATING]
8.4. Exchange Rate
Get the latest exchange rates of currencies in Singaore.
Format: [VALUE] [CURRENCY] to [DESIRED_CURRENCY]
8.5. Description for places
Be able to view a short description of each place in the place list
9. FAQ
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.
10. Command Summary
-
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