From 070358b0fe30df01b468bab5f0f8c6e855779349 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 15:33:06 +0100 Subject: Update report --- report/progression.tex | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index cef3a50..c9ffe54 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -10,6 +10,11 @@ \subsection{printLocationInfo} +This code duplication has been previously avoided with the printRoomInfo() +method. +It has been renamed to printLocationInfo(), as part of the commit e52a34789, to +match the exercise. + \subsection{getExit} \subsection{getExitString} -- cgit v1.2.3 From efc8186380f8d7f49cf66747a8a7a7c51af69117 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 16:01:52 +0100 Subject: Update report --- report/progression.tex | 3 +++ 1 file changed, 3 insertions(+) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index c9ffe54..575740a 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -17,6 +17,9 @@ match the exercise. \subsection{getExit} +The exit attributes have been made private and a getter was added in commit +53c427ff3. A switch statement has been used instead of multiple if statements. + \subsection{getExitString} \subsection{HashMap, setExit} -- cgit v1.2.3 From bb77bde6de20ac750c064b0ad780d7dd4dda79c7 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 16:10:08 +0100 Subject: Update report --- report/progression.tex | 2 ++ 1 file changed, 2 insertions(+) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index 575740a..3f303cd 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -22,6 +22,8 @@ The exit attributes have been made private and a getter was added in commit \subsection{getExitString} +This method has been added as part of commit ca65af2e2. + \subsection{HashMap, setExit} \subsection{Vertical direction} -- cgit v1.2.3 From b59d06ffe40216a9e94c271ed2fb77f42bf8c0e6 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 16:47:48 +0100 Subject: Update report --- report/progression.tex | 3 +++ 1 file changed, 3 insertions(+) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index 3f303cd..b92acaf 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -26,6 +26,9 @@ This method has been added as part of commit ca65af2e2. \subsection{HashMap, setExit} +Room exits are now stored in an HashMap since commit c9d890b9b. The setExits() +method has been replaced by setExit() which takes advantages of the HashMap. + \subsection{Vertical direction} \subsection{keySet} -- cgit v1.2.3 From 89ec1fadfb3b845ee3775c3780c58edc92768a4d Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 17:16:43 +0100 Subject: Update report --- report/progression.tex | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index b92acaf..697ef16 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -31,6 +31,11 @@ method has been replaced by setExit() which takes advantages of the HashMap. \subsection{Vertical direction} +In commit 4145a5e8c, the getExitString() method has been modified to be able to +print the availability of the new exits, used in the stairwell at wing 3. Due +to the architecture of these rooms, the side exits that were previously settled +to link them have been kept. + \subsection{keySet} \subsection{getExitString ?} -- cgit v1.2.3 From 199eaba44955936ae6da8befb36c2366630f6318 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 17:36:36 +0100 Subject: Explain the keySet() method --- report/progression.tex | 3 +++ 1 file changed, 3 insertions(+) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index 697ef16..1f75fd3 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -38,6 +38,9 @@ to link them have been kept. \subsection{keySet} +The keySet() method of the class HashMap returns a Set of the keys contained in +the map. + \subsection{getExitString ?} \subsection{getLongDescription} -- cgit v1.2.3 From 9a4983c745c99f5e0e97f2056bc2332cb7e5d803 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 17:44:42 +0100 Subject: Explain getExitString() --- report/progression.tex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index 1f75fd3..74673f5 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -36,13 +36,17 @@ print the availability of the new exits, used in the stairwell at wing 3. Due to the architecture of these rooms, the side exits that were previously settled to link them have been kept. -\subsection{keySet} +\subsection{keySet ?} The keySet() method of the class HashMap returns a Set of the keys contained in the map. \subsection{getExitString ?} +The getExitString() method returns a String listing the room's exits. +To achieve that, it iterates through the exits Map's keys, that is a Set of +Strings, appending each one to the String that it returns. + \subsection{getLongDescription} \subsection{Object diagram} -- cgit v1.2.3 From 75c3326ceffa05c4db9e743013433c39811e5a98 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 17:55:35 +0100 Subject: Update report --- report/progression.tex | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'report') diff --git a/report/progression.tex b/report/progression.tex index 74673f5..15709c5 100644 --- a/report/progression.tex +++ b/report/progression.tex @@ -49,6 +49,10 @@ Strings, appending each one to the String that it returns. \subsection{getLongDescription} +The Room class now uses the previously explained getExitString() method and +includes the getLongDescription() method that returns the full description of +the room since commit e510b08d0. + \subsection{Object diagram} \subsubsection{Changes on execution} -- cgit v1.2.3