From 556af3f47a96b32898ab4cdbd65b16486a4871e8 Mon Sep 17 00:00:00 2001 From: damithc Date: Mon, 25 May 2020 00:58:18 +0800 Subject: [PATCH 01/49] Add Gradle support --- build.gradle | 41 +++++ gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 58695 bytes gradle/wrapper/gradle-wrapper.properties | 5 + gradlew | 183 +++++++++++++++++++++++ gradlew.bat | 103 +++++++++++++ text-ui-test/runtest.sh | 0 6 files changed, 332 insertions(+) create mode 100644 build.gradle create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100755 gradlew create mode 100644 gradlew.bat mode change 100644 => 100755 text-ui-test/runtest.sh diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000000..885198fcfa --- /dev/null +++ b/build.gradle @@ -0,0 +1,41 @@ +plugins { + id 'java' + id 'application' + id 'com.github.johnrengelman.shadow' version '5.1.0' +} + +repositories { + mavenCentral() +} + +dependencies { + testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0' + testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0' +} + +test { + useJUnitPlatform() + + testLogging { + events "passed", "skipped", "failed" + + showExceptions true + exceptionFormat "full" + showCauses true + showStackTraces true + showStandardStreams = false + } +} + +application { + mainClassName = "seedu.duke.Duke" +} + +shadowJar { + archiveBaseName = "duke" + archiveClassifier = null +} + +run{ + standardInput = System.in +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..f3d88b1c2faf2fc91d853cd5d4242b5547257070 GIT binary patch literal 58695 zcma&OV~}Oh(k5J8>Mq;vvTfV8ZQE5{wr$(iDciPf+tV}m-if*I+;_h3N1nY;M6TF7 zBc7A_WUgl&IY|&uNFbnJzkq;%`2QLZ5b*!{1OkHidzBVe;-?mu5upVElKVGD>pC88 zzP}E3wRHBgaO?2nzdZ5pL;m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aLmL{QM};9dke>ujP^j@z-N;fNlKb|edn>)YaafDaJ>GWKP$ z5}l&#$QFhN!CMT;WH&z-5E)kvM|36lV!^#3z{@2FF>HsgUO4PMqO#U$X%+U>K!xJ@ zBFs|+woG_9HZQs_Tw*vnCPGhlXG@>y|6pJT$I67!aP&b0o$AF2JwFy9OoapQAk>k7 z**+$_5L;5fKof<;NBX%_;vP@eyD=Z0(QW)5AF7 zp|=tk3p?5)*e~Inuydz-U?%Kuj4%zToS5I|lolPT!B)ZuRVkVa>f*-2aPeV3R79xh zB)3A$>X~szg#}>uNkpLPG#3IKyeMHM*pUuV5=-Jji7S6PSQ9oCLo{oXxzOZfF$PP) zrYwlmSQ-~n94uO3CD{K0QTmj@g%Yzn7_xQ4fTduU0Yqvln`e_`CdXH5iQ5qRr1 zBC;}%YZ2!4I>*=sR)O~jBPx6sxmIEBnq)s-fHz_y0z8-gPl2Us4BiBXNR5CIF!YR@ zb9B305SilU*@4|+ x6JBtc8JSt5M0pkooaq!^FqtuD_KdXXTo>Mw54>`rP&>h&58!3a6l6r9{sG7g--!SK literal 0 HcmV?d00001 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..b7c8c5dbf5 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000000..2fe81a7d95 --- /dev/null +++ b/gradlew @@ -0,0 +1,183 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000000..62bd9b9cce --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,103 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/text-ui-test/runtest.sh b/text-ui-test/runtest.sh old mode 100644 new mode 100755 From 60f64cb17e2ba3da41d01fa67079f804c9183dc6 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 19 Jan 2023 22:26:53 +0800 Subject: [PATCH 02/49] updating Duke for level 1 --- src/main/java/Duke.java | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 5d313334cc..0a79297fa4 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,10 +1,36 @@ +import java.util.Scanner; + public class Duke { public static void main(String[] args) { - String logo = " ____ _ \n" + Scanner sc = new Scanner(System.in); + System.out.println(greet()); + while (sc.hasNext()) { + String cmd = sc.nextLine(); + if (cmd.equals("bye")) { + bye(); break; + } else { + print(cmd); + } + } + sc.close(); + } + public static void bye() { + print("Bye. Hope to see you again soon!"); + } + public static String ownName() { + String name = " ____ _ \n" + "| _ \\ _ _| | _____ \n" + "| | | | | | | |/ / _ \\\n" + "| |_| | |_| | < __/\n" + "|____/ \\__,_|_|\\_\\___|\n"; - System.out.println("Hello from\n" + logo); + return name; + } + public static String greet() { + return String.format("Hello I am: %sWhat can I do for you?", ownName()); + } + public static String echo(String command) { return command; } + public static void print(String reply) { + String topBottom = "~~~~~~~~~~~~~~~~~~~~\n"; + System.out.println(String.format("\t%s \t%s\n \t%s", topBottom, reply, topBottom)); } } From 4d92623f915fbdfb8fd9a48818abdb158adfac27 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 19 Jan 2023 22:35:41 +0800 Subject: [PATCH 03/49] Level-1: Greet, Echo, Exit --- src/main/java/Duke.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 0a79297fa4..40fd8386df 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -7,14 +7,16 @@ public static void main(String[] args) { while (sc.hasNext()) { String cmd = sc.nextLine(); if (cmd.equals("bye")) { - bye(); break; + exit(); break; + } else if (cmd.equals("list")) { + } else { - print(cmd); + print(echo(cmd)); } } sc.close(); } - public static void bye() { + public static void exit() { print("Bye. Hope to see you again soon!"); } public static String ownName() { From 6df7d67021cdb685e35298df0af5db0a96ecb1ca Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 19 Jan 2023 22:52:28 +0800 Subject: [PATCH 04/49] Level-2: Add, List --- src/main/java/Duke.java | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 40fd8386df..60d0216afa 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,17 +1,21 @@ +import java.lang.reflect.Array; +import java.util.ArrayList; import java.util.Scanner; public class Duke { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(greet()); + + ArrayList lst = new ArrayList<>(); while (sc.hasNext()) { String cmd = sc.nextLine(); if (cmd.equals("bye")) { exit(); break; } else if (cmd.equals("list")) { - + printList(lst); } else { - print(echo(cmd)); + print(add(cmd, lst)); } } sc.close(); @@ -28,9 +32,20 @@ public static String ownName() { return name; } public static String greet() { - return String.format("Hello I am: %sWhat can I do for you?", ownName()); + return String.format("Hello I am: \n%sWhat can I do for you?", ownName()); + } + public static String echo(String cmd) { return cmd; } + public static String add(String cmd, ArrayList lst) { + lst.add(cmd); return String.format("added: %s", cmd); + } + public static void printList(ArrayList arr) { + String str = ""; + for (int i = 0; i < arr.size(); i++) { + if (i != 0) { str += "\t"; } + str += String.format("%d. %s \n", i+1, arr.get(i)); + } + print(str); } - public static String echo(String command) { return command; } public static void print(String reply) { String topBottom = "~~~~~~~~~~~~~~~~~~~~\n"; System.out.println(String.format("\t%s \t%s\n \t%s", topBottom, reply, topBottom)); From 2f2b807d1cad33e93c598bc2fffc1da884b2b336 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sat, 4 Feb 2023 23:15:01 +0800 Subject: [PATCH 05/49] Removal of "public" on methods, addition of Task --- src/main/java/Duke.java | 35 +++++++++++++++++++++++------------ src/main/java/Task.java | 14 ++++++++++++++ 2 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 src/main/java/Task.java diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 60d0216afa..5f2884585d 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -7,7 +7,7 @@ public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(greet()); - ArrayList lst = new ArrayList<>(); + ArrayList lst = new ArrayList<>(); while (sc.hasNext()) { String cmd = sc.nextLine(); if (cmd.equals("bye")) { @@ -20,10 +20,7 @@ public static void main(String[] args) { } sc.close(); } - public static void exit() { - print("Bye. Hope to see you again soon!"); - } - public static String ownName() { + static String ownName() { String name = " ____ _ \n" + "| _ \\ _ _| | _____ \n" + "| | | | | | | |/ / _ \\\n" @@ -31,23 +28,37 @@ public static String ownName() { + "|____/ \\__,_|_|\\_\\___|\n"; return name; } - public static String greet() { + static String greet() { return String.format("Hello I am: \n%sWhat can I do for you?", ownName()); } - public static String echo(String cmd) { return cmd; } - public static String add(String cmd, ArrayList lst) { - lst.add(cmd); return String.format("added: %s", cmd); + static String add(String cmd, ArrayList lst) { + lst.add(new Task(cmd)); return String.format("added: %s", cmd); } - public static void printList(ArrayList arr) { + static void printList(ArrayList arr) { String str = ""; for (int i = 0; i < arr.size(); i++) { - if (i != 0) { str += "\t"; } + if (i != 0) { + str += "\t"; + } str += String.format("%d. %s \n", i+1, arr.get(i)); } print(str); } - public static void print(String reply) { + static void exit() { + print("Bye. Hope to see you again soon!"); + } + /** + * Used to print out any reply with the correct formatting + */ + static void print(String reply) { String topBottom = "~~~~~~~~~~~~~~~~~~~~\n"; System.out.println(String.format("\t%s \t%s\n \t%s", topBottom, reply, topBottom)); } + + /** + * Used in Level-1 to echo + */ + static String echo(String cmd) { + return cmd; + } } diff --git a/src/main/java/Task.java b/src/main/java/Task.java new file mode 100644 index 0000000000..1dba4ae494 --- /dev/null +++ b/src/main/java/Task.java @@ -0,0 +1,14 @@ +class Task { + private String task; + Task(String task) { + this.task = task; + } + + /** + * Returns the string of the task + */ + @Override + public String toString() { + return task; + } +} From 058be4aa5d735feeef8364068c781dbe61c60cc4 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sat, 4 Feb 2023 23:55:24 +0800 Subject: [PATCH 06/49] Level-3: Mark as Done --- src/main/java/Duke.java | 52 ++++++++++++++++++++++++++++++++++------- src/main/java/Task.java | 25 ++++++++++++++++++-- 2 files changed, 66 insertions(+), 11 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 5f2884585d..2f0d766018 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,25 +1,58 @@ -import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Scanner; public class Duke { + static final String BYE = "bye"; public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(greet()); - ArrayList lst = new ArrayList<>(); + ArrayList arr = new ArrayList<>(); while (sc.hasNext()) { String cmd = sc.nextLine(); - if (cmd.equals("bye")) { - exit(); break; - } else if (cmd.equals("list")) { - printList(lst); - } else { - print(add(cmd, lst)); + if (cmd.equals(BYE)) { + exit(); + break; } + execute(cmd, arr); } sc.close(); } + static void execute(String cmd, ArrayList arr) { + String[] words = cmd.split(" "); + switch (words[0]) { + case "list": + printList(arr); + break; + case "mark": + mark(words[1], arr); + break; + case "unmark": + unmark(words[1], arr); + break; + default: + print(add(cmd, arr)); + } + /* if (words[0].equals("list")) { + printList(arr); + } else if (words[0].equals("mark")) { //try catch if words have 2 elements + mark(words[1], arr); + } else if (words[0].equals("unmark")) { //try catch if words have 2 elements + unmark(words[1], arr); + } else { + print(add(cmd, arr)); + }*/ + } + static void mark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd + int index = Integer.parseInt(num); + arr.get(index - 1).markAsDone(); + print(String.format("Nice! I've marked this task as done: \n\t%s", arr.get(index - 1))); + } + static void unmark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd + int index = Integer.parseInt(num); + arr.get(index - 1).unmarkAsDone(); + print(String.format("Ok, I've marked this task as not done yet: \n\t%s", arr.get(index - 1))); + } static String ownName() { String name = " ____ _ \n" + "| _ \\ _ _| | _____ \n" @@ -32,7 +65,8 @@ static String greet() { return String.format("Hello I am: \n%sWhat can I do for you?", ownName()); } static String add(String cmd, ArrayList lst) { - lst.add(new Task(cmd)); return String.format("added: %s", cmd); + lst.add(new Task(cmd)); + return String.format("added: %s", cmd); } static void printList(ArrayList arr) { String str = ""; diff --git a/src/main/java/Task.java b/src/main/java/Task.java index 1dba4ae494..10b9c08ef6 100644 --- a/src/main/java/Task.java +++ b/src/main/java/Task.java @@ -1,7 +1,27 @@ -class Task { +/** + * Task used to hold the string representation of tasks to be done + */ +public class Task { private String task; + private boolean isDone; Task(String task) { + this(task, false); + } + Task(String task, boolean isDone) { this.task = task; + this.isDone = isDone; + } + /** + * Sets task as done + */ + public void markAsDone() { + this.isDone = true; + } + /** + * Sets task as not done + */ + public void unmarkAsDone() { + this.isDone = false; } /** @@ -9,6 +29,7 @@ class Task { */ @Override public String toString() { - return task; + String markedAsDone = isDone ? "X" : " "; + return String.format("[%s] %s", markedAsDone, task); } } From 0a216d0409cdca79137216ad4e4a8411e17cbee9 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 5 Feb 2023 03:01:53 +0800 Subject: [PATCH 07/49] Level-4: ToDo, Event, Deadline --- src/main/java/Deadline.java | 18 ++++++++++++++++++ src/main/java/Duke.java | 20 +++++++++++++++++--- src/main/java/Event.java | 21 +++++++++++++++++++++ src/main/java/ToDo.java | 12 ++++++++++++ 4 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 src/main/java/Deadline.java create mode 100644 src/main/java/Event.java create mode 100644 src/main/java/ToDo.java diff --git a/src/main/java/Deadline.java b/src/main/java/Deadline.java new file mode 100644 index 0000000000..f8327c8e97 --- /dev/null +++ b/src/main/java/Deadline.java @@ -0,0 +1,18 @@ +public class Deadline extends Task { + private String deadline; + public Deadline(String cmd) { + this(cmd.replace("deadline ", "").split(" /by")[0], + cmd.replace("deadline ", "").split(" /by")[1]); + } + Deadline(String task, String deadline) { + super(task); + this.deadline = deadline; + } + /** + * Return the String for Deadline + */ + @Override + public String toString() { + return String.format("[D]%s (by:%s)", super.toString(), deadline); + } +} diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 2f0d766018..9a00404c43 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -64,9 +64,23 @@ static String ownName() { static String greet() { return String.format("Hello I am: \n%sWhat can I do for you?", ownName()); } - static String add(String cmd, ArrayList lst) { - lst.add(new Task(cmd)); - return String.format("added: %s", cmd); + static String add(String cmd, ArrayList arr) { + String[] words = cmd.split(" "); + String typeOfTask = words[0]; + Task task = new Task(cmd); + switch(typeOfTask) { + case "todo": + task = new ToDo(cmd); + break; + case "deadline": + task = new Deadline(cmd); + break; + case "event": + task = new Event(cmd); + break; + } + arr.add(task); + return String.format("Got it. I've added this task: \n\t\t%s \n\tNow you have %d tasks in the list.", task, arr.size()); } static void printList(ArrayList arr) { String str = ""; diff --git a/src/main/java/Event.java b/src/main/java/Event.java new file mode 100644 index 0000000000..34ca87f3dd --- /dev/null +++ b/src/main/java/Event.java @@ -0,0 +1,21 @@ +public class Event extends Task { + private String from; + private String to; + public Event(String cmd) { + this(cmd.replace("event ", "").split(" /")[0], + cmd.replace("event ", "").split(" /")[1].replace("from ", ""), + cmd.replace("event ", "").split(" /")[2].replace("to ", "")); + } + Event(String task, String from, String to) { + super(task); + this.from = from; + this.to = to; + } + /** + * Return the String for Event + */ + @Override + public String toString() { + return String.format("[E]%s (from: %s to: %s)", super.toString(), from, to); + } +} diff --git a/src/main/java/ToDo.java b/src/main/java/ToDo.java new file mode 100644 index 0000000000..71d283d189 --- /dev/null +++ b/src/main/java/ToDo.java @@ -0,0 +1,12 @@ +public class ToDo extends Task { + public ToDo(String cmd) { + super(cmd); + } + /** + * Return the String for ToDo + */ + @Override + public String toString() { + return String.format("[T]%s", super.toString()); + } +} From 6fe77eefc4bb69f85e85d30e16322aed22ecec6e Mon Sep 17 00:00:00 2001 From: benedict733 Date: Mon, 6 Feb 2023 01:35:18 +0800 Subject: [PATCH 08/49] Included EXPECTED output with input.txt, updated Duke and Events --- .gitignore | 3 +++ src/main/java/Deadline.java | 4 ++-- src/main/java/Duke.java | 15 ++++++++------- src/main/java/Event.java | 6 +++--- text-ui-test/EXPECTED.TXT | 35 ++++++++++++++++++++++++++++++++++- text-ui-test/input.txt | 6 ++++++ 6 files changed, 56 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 2873e189e1..c333e79b65 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,6 @@ bin/ /text-ui-test/ACTUAL.TXT text-ui-test/EXPECTED-UNIX.TXT +text-ui-test/a.txt +text-ui-test/b.txt +src/main/java/input.txt diff --git a/src/main/java/Deadline.java b/src/main/java/Deadline.java index f8327c8e97..bd1531e8e4 100644 --- a/src/main/java/Deadline.java +++ b/src/main/java/Deadline.java @@ -1,8 +1,8 @@ public class Deadline extends Task { private String deadline; public Deadline(String cmd) { - this(cmd.replace("deadline ", "").split(" /by")[0], - cmd.replace("deadline ", "").split(" /by")[1]); + this(cmd.split(" /by")[0], + cmd.split(" /by")[1]); } Deadline(String task, String deadline) { super(task); diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 9a00404c43..6feae9c7e9 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -15,6 +15,7 @@ public static void main(String[] args) { break; } execute(cmd, arr); +// echo(sc.nextLine()); } sc.close(); } @@ -70,13 +71,13 @@ static String add(String cmd, ArrayList arr) { Task task = new Task(cmd); switch(typeOfTask) { case "todo": - task = new ToDo(cmd); + task = new ToDo(cmd.replace("todo ", "")); break; case "deadline": - task = new Deadline(cmd); + task = new Deadline(cmd.replace("deadline ", "")); break; case "event": - task = new Event(cmd); + task = new Event(cmd.replace("event ", "")); break; } arr.add(task); @@ -86,9 +87,9 @@ static void printList(ArrayList arr) { String str = ""; for (int i = 0; i < arr.size(); i++) { if (i != 0) { - str += "\t"; + str += "\n\t"; } - str += String.format("%d. %s \n", i+1, arr.get(i)); + str += String.format("%d. %s", i+1, arr.get(i)); } print(str); } @@ -106,7 +107,7 @@ static void print(String reply) { /** * Used in Level-1 to echo */ - static String echo(String cmd) { - return cmd; + static void echo(String cmd) { + System.out.println(cmd); } } diff --git a/src/main/java/Event.java b/src/main/java/Event.java index 34ca87f3dd..d1e8d30d10 100644 --- a/src/main/java/Event.java +++ b/src/main/java/Event.java @@ -2,9 +2,9 @@ public class Event extends Task { private String from; private String to; public Event(String cmd) { - this(cmd.replace("event ", "").split(" /")[0], - cmd.replace("event ", "").split(" /")[1].replace("from ", ""), - cmd.replace("event ", "").split(" /")[2].replace("to ", "")); + this(cmd.split(" /")[0], + cmd.split(" /")[1].replace("from ", ""), + cmd.split(" /")[2].replace("to ", "")); } Event(String task, String from, String to) { super(task); diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index 657e74f6e7..91ac13c81b 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -1,7 +1,40 @@ -Hello from +Hello I am: ____ _ | _ \ _ _| | _____ | | | | | | | |/ / _ \ | |_| | |_| | < __/ |____/ \__,_|_|\_\___| +What can I do for you? + ~~~~~~~~~~~~~~~~~~~~ + Got it. I've added this task: + [T][ ] borrow book + Now you have 1 tasks in the list. + ~~~~~~~~~~~~~~~~~~~~ + + ~~~~~~~~~~~~~~~~~~~~ + Got it. I've added this task: + [D][ ] return book (by: Sunday) + Now you have 2 tasks in the list. + ~~~~~~~~~~~~~~~~~~~~ + + ~~~~~~~~~~~~~~~~~~~~ + Got it. I've added this task: + [E][ ] project meeting (from: Mon 2pm to: 4pm) + Now you have 3 tasks in the list. + ~~~~~~~~~~~~~~~~~~~~ + + ~~~~~~~~~~~~~~~~~~~~ + Nice! I've marked this task as done: + [T][X] borrow book + ~~~~~~~~~~~~~~~~~~~~ + + ~~~~~~~~~~~~~~~~~~~~ + 1. [T][X] borrow book + 2. [D][ ] return book (by: Sunday) + 3. [E][ ] project meeting (from: Mon 2pm to: 4pm) + ~~~~~~~~~~~~~~~~~~~~ + + ~~~~~~~~~~~~~~~~~~~~ + Bye. Hope to see you again soon! + ~~~~~~~~~~~~~~~~~~~~ diff --git a/text-ui-test/input.txt b/text-ui-test/input.txt index e69de29bb2..1ba5db5033 100644 --- a/text-ui-test/input.txt +++ b/text-ui-test/input.txt @@ -0,0 +1,6 @@ +todo borrow book +deadline return book /by Sunday +event project meeting /from Mon 2pm /to 4pm +mark 1 +list +bye \ No newline at end of file From 3ae1dbca63b7b384b1277ca69891a1a1f041e05b Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sat, 11 Feb 2023 13:15:31 +0800 Subject: [PATCH 09/49] Level 5: Handle Errors --- src/main/java/Deadline.java | 4 +- src/main/java/Duke.java | 145 ++++++++++++++++++++++++------------ src/main/java/Event.java | 4 +- src/main/java/Task.java | 5 +- src/main/java/ToDo.java | 4 +- 5 files changed, 109 insertions(+), 53 deletions(-) diff --git a/src/main/java/Deadline.java b/src/main/java/Deadline.java index bd1531e8e4..bc05260a2c 100644 --- a/src/main/java/Deadline.java +++ b/src/main/java/Deadline.java @@ -1,6 +1,8 @@ +import java.util.regex.PatternSyntaxException; + public class Deadline extends Task { private String deadline; - public Deadline(String cmd) { + public Deadline(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd.split(" /by")[0], cmd.split(" /by")[1]); } diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 6feae9c7e9..38f428c9c6 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,8 +1,25 @@ import java.util.ArrayList; import java.util.Scanner; +import java.util.Map; +import java.util.HashMap; +import java.util.regex.PatternSyntaxException; public class Duke { - static final String BYE = "bye"; + /** + * Minimum length of a string command is given by + * The length of the command +2 (for whitespace and + * at least 1 letter for the command) + */ + static final HashMap MINVALIDLENGTH = new HashMap<>(Map.of( + "todo", 6, + "deadline", 10, + "event", 7 + )); + static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( + "todo", "todo THE TASK", + "deadline", "deadline THE TASK /by TIME", + "event", "event THE TASK /from TIME /to TIME" + )); public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(greet()); @@ -10,7 +27,7 @@ public static void main(String[] args) { ArrayList arr = new ArrayList<>(); while (sc.hasNext()) { String cmd = sc.nextLine(); - if (cmd.equals(BYE)) { + if (cmd.equals("bye")) { exit(); break; } @@ -26,70 +43,98 @@ static void execute(String cmd, ArrayList arr) { printList(arr); break; case "mark": - mark(words[1], arr); + print(mark(words[1], arr)); break; case "unmark": - unmark(words[1], arr); + print(unmark(words[1], arr)); break; - default: + default: // for tasks print(add(cmd, arr)); } - /* if (words[0].equals("list")) { - printList(arr); - } else if (words[0].equals("mark")) { //try catch if words have 2 elements - mark(words[1], arr); - } else if (words[0].equals("unmark")) { //try catch if words have 2 elements - unmark(words[1], arr); - } else { - print(add(cmd, arr)); - }*/ - } - static void mark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd - int index = Integer.parseInt(num); - arr.get(index - 1).markAsDone(); - print(String.format("Nice! I've marked this task as done: \n\t%s", arr.get(index - 1))); - } - static void unmark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd - int index = Integer.parseInt(num); - arr.get(index - 1).unmarkAsDone(); - print(String.format("Ok, I've marked this task as not done yet: \n\t%s", arr.get(index - 1))); - } - static String ownName() { - String name = " ____ _ \n" - + "| _ \\ _ _| | _____ \n" - + "| | | | | | | |/ / _ \\\n" - + "| |_| | |_| | < __/\n" - + "|____/ \\__,_|_|\\_\\___|\n"; - return name; - } - static String greet() { - return String.format("Hello I am: \n%sWhat can I do for you?", ownName()); } static String add(String cmd, ArrayList arr) { String[] words = cmd.split(" "); String typeOfTask = words[0]; + + if (!MINVALIDLENGTH.containsKey(typeOfTask)) { + return errorMsg("I'm sorry, but I don't know what that means"); + } else if (cmd.length() < MINVALIDLENGTH.get(typeOfTask)) { + return errorMsg(String.format( + "The description of a %s cannot be empty.", typeOfTask)); + } + + try { + Task task = makeTask(typeOfTask, cmd); + //.replace(typeOfTask + " ", "")); + arr.add(task); + return String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, arr.size()); + } catch (PatternSyntaxException | ArrayIndexOutOfBoundsException wrongFormat) { + return errorMsg("Please enter the command in the correct format.") + "\n" + CORRECTFORMAT.get(typeOfTask); + } + } + static Task makeTask(String name, String cmd) throws PatternSyntaxException { Task task = new Task(cmd); - switch(typeOfTask) { + cmd = cmd.replace(name + " ", ""); + switch (name) { case "todo": - task = new ToDo(cmd.replace("todo ", "")); + task = new ToDo(cmd); break; case "deadline": - task = new Deadline(cmd.replace("deadline ", "")); + task = new Deadline(cmd); break; case "event": - task = new Event(cmd.replace("event ", "")); + task = new Event(cmd); break; + }; + return task; + } + static String mark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd + if (arr.size() == 0) { + return errorMsg("You do not have any items in your list!"); + } + try { + int index = Integer.parseInt(num) - 1; + arr.get(index).markAsDone(); + return String.format("Nice! I've marked this task as done: \n\t%s", arr.get(index)); + } catch (NumberFormatException notANumber) { + return errorMsg("Please enter a valid number"); + } catch (IndexOutOfBoundsException badNumber) { + return errorMsg(String.format( + "Please enter a number from 1 to %d", + arr.size())); + } + } + static String unmark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd + if (arr.size() == 0) { + return errorMsg("You do not have any items in your list!"); + } + try { + int index = Integer.parseInt(num) - 1; + arr.get(index).unmarkAsDone(); + return String.format("Ok, I've marked this task as not done yet: \n\t%s", arr.get(index)); + } catch (NumberFormatException notANumber) { + return errorMsg("Please enter a valid number"); + } catch (IndexOutOfBoundsException badNumber) { + return errorMsg(String.format( + "Please enter a number from 1 to %d", + arr.size())); } - arr.add(task); - return String.format("Got it. I've added this task: \n\t\t%s \n\tNow you have %d tasks in the list.", task, arr.size()); + } + static String ownName() { + String name = " ____ _ \n" + + "| _ \\ _ _| | _____ \n" + + "| | | | | | | |/ / _ \\\n" + + "| |_| | |_| | < __/\n" + + "|____/ \\__,_|_|\\_\\___|\n"; + return name; + } + static String greet() { + return String.format("Hello I am:\n%sWhat can I do for you?", ownName()); } static void printList(ArrayList arr) { - String str = ""; + String str = "List:"; for (int i = 0; i < arr.size(); i++) { - if (i != 0) { - str += "\n\t"; - } - str += String.format("%d. %s", i+1, arr.get(i)); + str += String.format("\n\t%d. %s", i+1, arr.get(i)); } print(str); } @@ -100,10 +145,12 @@ static void exit() { * Used to print out any reply with the correct formatting */ static void print(String reply) { - String topBottom = "~~~~~~~~~~~~~~~~~~~~\n"; - System.out.println(String.format("\t%s \t%s\n \t%s", topBottom, reply, topBottom)); + String topBottom = "~~~~~~~~~~~~~~~~~~~~"; + System.out.println(String.format("%s\n%s\n%s", topBottom, reply, topBottom)); + } + static String errorMsg(String error) { + return String.format("☹ OOPS!!! %s :-(", error); } - /** * Used in Level-1 to echo */ diff --git a/src/main/java/Event.java b/src/main/java/Event.java index d1e8d30d10..7b90df932e 100644 --- a/src/main/java/Event.java +++ b/src/main/java/Event.java @@ -1,7 +1,9 @@ +import java.util.regex.PatternSyntaxException; + public class Event extends Task { private String from; private String to; - public Event(String cmd) { + public Event(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd.split(" /")[0], cmd.split(" /")[1].replace("from ", ""), cmd.split(" /")[2].replace("to ", "")); diff --git a/src/main/java/Task.java b/src/main/java/Task.java index 10b9c08ef6..59771393cc 100644 --- a/src/main/java/Task.java +++ b/src/main/java/Task.java @@ -1,10 +1,13 @@ +import java.util.regex.Pattern; +import java.util.regex.PatternSyntaxException; + /** * Task used to hold the string representation of tasks to be done */ public class Task { private String task; private boolean isDone; - Task(String task) { + Task(String task) throws PatternSyntaxException { this(task, false); } Task(String task, boolean isDone) { diff --git a/src/main/java/ToDo.java b/src/main/java/ToDo.java index 71d283d189..da0c44f410 100644 --- a/src/main/java/ToDo.java +++ b/src/main/java/ToDo.java @@ -1,5 +1,7 @@ +import java.util.regex.PatternSyntaxException; + public class ToDo extends Task { - public ToDo(String cmd) { + public ToDo(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { super(cmd); } /** From ead6c376993522000a3e806d788d1c2897506312 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sat, 11 Feb 2023 22:09:51 +0800 Subject: [PATCH 10/49] Level-6: Delete --- src/main/java/Duke.java | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 38f428c9c6..0667444a3c 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -13,12 +13,21 @@ public class Duke { static final HashMap MINVALIDLENGTH = new HashMap<>(Map.of( "todo", 6, "deadline", 10, - "event", 7 + "event", 7, + "mark", 6, + "unmark", 8, + "delete", 8 )); + /** + * Correct formatting of commands given that the name of the command is correct + */ static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( "todo", "todo THE TASK", "deadline", "deadline THE TASK /by TIME", - "event", "event THE TASK /from TIME /to TIME" + "event", "event THE TASK /from TIME /to TIME", + "mark", "mark NUMBER", + "unmark", "unmark NUMBER", + "delete", "delete NUMBER" )); public static void main(String[] args) { Scanner sc = new Scanner(System.in); @@ -48,6 +57,9 @@ static void execute(String cmd, ArrayList arr) { case "unmark": print(unmark(words[1], arr)); break; + case "delete": + print(delete(words[1], arr)); + break; default: // for tasks print(add(cmd, arr)); } @@ -120,6 +132,24 @@ static String unmark(String num, ArrayList arr) { //try catch, possibili arr.size())); } } + static String delete(String num, ArrayList arr) { + if (arr.size() == 0) { + return errorMsg("You do not have any items in your list!"); + } + try { + int index = Integer.parseInt(num) - 1; + String taskDescription = arr.get(index).toString(); + arr.remove(index); + return String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", + taskDescription, arr.size()); + } catch (NumberFormatException notANumber) { + return errorMsg("Please enter a valid number"); + } catch (IndexOutOfBoundsException badNumber) { + return errorMsg(String.format( + "Please enter a number from 1 to %d", + arr.size())); + } + } static String ownName() { String name = " ____ _ \n" + "| _ \\ _ _| | _____ \n" From 622183e55c04dfcb8707ba0ef353b9c90bb223ae Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 23 Feb 2023 18:04:42 +0800 Subject: [PATCH 11/49] Stage 7: Save --- src/main/java/Deadline.java | 19 +++-- src/main/java/Duke.java | 80 +++++++++++++++++++++ src/main/java/Event.java | 18 ++++- src/main/java/Task.java | 11 ++- src/main/java/ToDo.java | 8 +++ src/main/java/WrongTaskFormatException.java | 5 ++ 6 files changed, 133 insertions(+), 8 deletions(-) create mode 100644 src/main/java/WrongTaskFormatException.java diff --git a/src/main/java/Deadline.java b/src/main/java/Deadline.java index bc05260a2c..d3e6afdd10 100644 --- a/src/main/java/Deadline.java +++ b/src/main/java/Deadline.java @@ -4,10 +4,16 @@ public class Deadline extends Task { private String deadline; public Deadline(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd.split(" /by")[0], - cmd.split(" /by")[1]); + cmd.split(" /by")[1], + false); } - Deadline(String task, String deadline) { - super(task); + public Deadline(String cmd, boolean isDone) { + this(cmd.split(" /by")[0], + cmd.split(" /by")[1], + isDone); + } + public Deadline(String task, String deadline, boolean isDone) { + super(task, isDone); this.deadline = deadline; } /** @@ -17,4 +23,9 @@ public Deadline(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBounds public String toString() { return String.format("[D]%s (by:%s)", super.toString(), deadline); } -} + @Override + public String saveString() { + int done = isDone() ? 1 : 0; + return String.format("D | %d | %s | %s", done, getTask(), deadline); + } +} \ No newline at end of file diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 0667444a3c..16420325f0 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,8 +1,14 @@ +import java.io.BufferedWriter; +import java.io.IOException; +import java.nio.file.FileAlreadyExistsException; import java.util.ArrayList; import java.util.Scanner; import java.util.Map; import java.util.HashMap; import java.util.regex.PatternSyntaxException; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.nio.file.Files; public class Duke { /** @@ -10,6 +16,8 @@ public class Duke { * The length of the command +2 (for whitespace and * at least 1 letter for the command) */ + static final String HOMEDIRECTORY = System.getProperty("user.dir"); + static final Path DUKELISTDIRECTORY = Paths.get(HOMEDIRECTORY, "SavedList.txt"); static final HashMap MINVALIDLENGTH = new HashMap<>(Map.of( "todo", 6, "deadline", 10, @@ -33,7 +41,14 @@ public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(greet()); + // arr => needs to be updated w old list ArrayList arr = new ArrayList<>(); + try { + arr = readSavedFile(); + } catch (IOException unknown) { + print(unknown + "\nUnsure of error"); + } + while (sc.hasNext()) { String cmd = sc.nextLine(); if (cmd.equals("bye")) { @@ -45,6 +60,57 @@ public static void main(String[] args) { } sc.close(); } + public static ArrayList readSavedFile() throws IOException { + try { + Files.createFile(DUKELISTDIRECTORY); + return new ArrayList(); + } catch (FileAlreadyExistsException e) { + ArrayList arr = new ArrayList<>(); + List savedList = Files.readAllLines(DUKELISTDIRECTORY); + for (String task : savedList) { + try { + arr.add(readLineToTask(task)); + } catch (WrongTaskFormatException | ArrayIndexOutOfBoundsException wrongFormat) { + print("File format of tasks is wrong.\n" + + "List now contains information up to line before wrongly formatted line."); + printList(arr); + return arr; + } + } + return arr; + } + } + public static Task readLineToTask(String taskDescription) throws WrongTaskFormatException { + String[] items = taskDescription.split(" \\| "); + boolean isDone = getIsDone(items[1]); + Task task = new Task(taskDescription, isDone); + switch(items[0]) { + case "T": + task = new ToDo(items[2], isDone); +// return task; + break; + case "D": + task = new Deadline(items[2], items[3], isDone); +// return task; + break; + case "E": + String[] timeOfEvent = items[3].split("-"); + task = new Event(items[2], timeOfEvent[0], timeOfEvent[1], isDone); +// return task; + break; + default: + throw new WrongTaskFormatException("Invalid Task String Format"); + } + return task; + } + + /** + * @param doneString a simple string containing 0/1 + * @returns the int value + */ + public static boolean getIsDone(String doneString) { + return doneString.equals("1"); + } static void execute(String cmd, ArrayList arr) { String[] words = cmd.split(" "); switch (words[0]) { @@ -63,6 +129,20 @@ static void execute(String cmd, ArrayList arr) { default: // for tasks print(add(cmd, arr)); } + saveList(arr); + } + static void saveList(ArrayList arr) { + try { + // no need to deleteIfExists as BufferedWritter automatically clears all prev input + BufferedWriter fileWriter = Files.newBufferedWriter(DUKELISTDIRECTORY); + for (Task task : arr) { + fileWriter.write(task.saveString()); + fileWriter.newLine(); + } + fileWriter.close(); + } catch (IOException e) { + // unsure of what cases would throw IOException under deleteIfExists + } } static String add(String cmd, ArrayList arr) { String[] words = cmd.split(" "); diff --git a/src/main/java/Event.java b/src/main/java/Event.java index 7b90df932e..44495f1714 100644 --- a/src/main/java/Event.java +++ b/src/main/java/Event.java @@ -6,10 +6,17 @@ public class Event extends Task { public Event(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd.split(" /")[0], cmd.split(" /")[1].replace("from ", ""), - cmd.split(" /")[2].replace("to ", "")); + cmd.split(" /")[2].replace("to ", ""), + false); } - Event(String task, String from, String to) { - super(task); + public Event(String cmd, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { + this(cmd.split(" /")[0], + cmd.split(" /")[1].replace("from ", ""), + cmd.split(" /")[2].replace("to ", ""), + isDone); + } + public Event(String task, String from, String to, boolean isDone) { + super(task, isDone); this.from = from; this.to = to; } @@ -20,4 +27,9 @@ public Event(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsExc public String toString() { return String.format("[E]%s (from: %s to: %s)", super.toString(), from, to); } + @Override + public String saveString() { + int done = isDone() ? 1 : 0; + return String.format("E | %d | %s | %s-%s", done, getTask(), from, to); + } } diff --git a/src/main/java/Task.java b/src/main/java/Task.java index 59771393cc..ccea9585e4 100644 --- a/src/main/java/Task.java +++ b/src/main/java/Task.java @@ -14,6 +14,9 @@ public class Task { this.task = task; this.isDone = isDone; } + public boolean isDone() { + return this.isDone; + } /** * Sets task as done */ @@ -26,7 +29,9 @@ public void markAsDone() { public void unmarkAsDone() { this.isDone = false; } - + protected String getTask() { + return this.task; + } /** * Returns the string of the task */ @@ -35,4 +40,8 @@ public String toString() { String markedAsDone = isDone ? "X" : " "; return String.format("[%s] %s", markedAsDone, task); } + public String saveString() { + int done = isDone() ? 1 : 0; + return String.format("Task | %d | %s", done, task); + } } diff --git a/src/main/java/ToDo.java b/src/main/java/ToDo.java index da0c44f410..ecfad345fa 100644 --- a/src/main/java/ToDo.java +++ b/src/main/java/ToDo.java @@ -4,6 +4,9 @@ public class ToDo extends Task { public ToDo(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { super(cmd); } + public ToDo(String cmd, boolean isDone) { + super(cmd, isDone); + } /** * Return the String for ToDo */ @@ -11,4 +14,9 @@ public ToDo(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsExce public String toString() { return String.format("[T]%s", super.toString()); } + @Override + public String saveString() { + int done = isDone() ? 1 : 0; + return String.format("T | %d | %s", done, getTask()); + } } diff --git a/src/main/java/WrongTaskFormatException.java b/src/main/java/WrongTaskFormatException.java new file mode 100644 index 0000000000..14869269a8 --- /dev/null +++ b/src/main/java/WrongTaskFormatException.java @@ -0,0 +1,5 @@ +public class WrongTaskFormatException extends Exception { + public WrongTaskFormatException(String errorMessage) { + super(errorMessage); + } +} \ No newline at end of file From 2447cf89acf4de6276d3270a766af90eb8619666 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 23 Feb 2023 18:09:19 +0800 Subject: [PATCH 12/49] added SavedList to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index c333e79b65..b62c48a477 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ text-ui-test/EXPECTED-UNIX.TXT text-ui-test/a.txt text-ui-test/b.txt src/main/java/input.txt +SavedList.txt From f7ffb5045fa63f7d37c2b3c3015bef7a4482ceae Mon Sep 17 00:00:00 2001 From: benedict733 Date: Fri, 24 Feb 2023 21:41:38 +0800 Subject: [PATCH 13/49] Level 8: Dates and Times --- src/main/java/Deadline.java | 19 ++++++++++--------- src/main/java/Duke.java | 6 ++++-- src/main/java/Event.java | 5 +---- src/main/java/ToDo.java | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/java/Deadline.java b/src/main/java/Deadline.java index d3e6afdd10..eeb32c013c 100644 --- a/src/main/java/Deadline.java +++ b/src/main/java/Deadline.java @@ -1,20 +1,21 @@ +import java.time.LocalDateTime; +import java.time.format.DateTimeParseException; import java.util.regex.PatternSyntaxException; public class Deadline extends Task { - private String deadline; + private LocalDateTime deadline; public Deadline(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { - this(cmd.split(" /by")[0], - cmd.split(" /by")[1], - false); + this(cmd,false); } - public Deadline(String cmd, boolean isDone) { - this(cmd.split(" /by")[0], - cmd.split(" /by")[1], + public Deadline(String cmd, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { + this(cmd.split(" /by ")[0], + cmd.split(" /by ")[1], isDone); } - public Deadline(String task, String deadline, boolean isDone) { + public Deadline(String task, String deadlineString, boolean isDone) + throws PatternSyntaxException, ArrayIndexOutOfBoundsException, DateTimeParseException { super(task, isDone); - this.deadline = deadline; + this.deadline = LocalDateTime.parse(deadlineString); } /** * Return the String for Deadline diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 16420325f0..e501dd9431 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,6 +1,8 @@ import java.io.BufferedWriter; import java.io.IOException; import java.nio.file.FileAlreadyExistsException; +import java.time.format.DateTimeParseException; +import java.util.List; import java.util.ArrayList; import java.util.Scanner; import java.util.Map; @@ -31,7 +33,7 @@ public class Duke { */ static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( "todo", "todo THE TASK", - "deadline", "deadline THE TASK /by TIME", + "deadline", "deadline THE TASK /by yyyy-mm-ddThh:mm:ss", "event", "event THE TASK /from TIME /to TIME", "mark", "mark NUMBER", "unmark", "unmark NUMBER", @@ -160,7 +162,7 @@ static String add(String cmd, ArrayList arr) { //.replace(typeOfTask + " ", "")); arr.add(task); return String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, arr.size()); - } catch (PatternSyntaxException | ArrayIndexOutOfBoundsException wrongFormat) { + } catch (PatternSyntaxException | ArrayIndexOutOfBoundsException | DateTimeParseException wrongFormat) { return errorMsg("Please enter the command in the correct format.") + "\n" + CORRECTFORMAT.get(typeOfTask); } } diff --git a/src/main/java/Event.java b/src/main/java/Event.java index 44495f1714..21b17575a8 100644 --- a/src/main/java/Event.java +++ b/src/main/java/Event.java @@ -4,10 +4,7 @@ public class Event extends Task { private String from; private String to; public Event(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { - this(cmd.split(" /")[0], - cmd.split(" /")[1].replace("from ", ""), - cmd.split(" /")[2].replace("to ", ""), - false); + this(cmd, false); } public Event(String cmd, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd.split(" /")[0], diff --git a/src/main/java/ToDo.java b/src/main/java/ToDo.java index ecfad345fa..77905f9ef7 100644 --- a/src/main/java/ToDo.java +++ b/src/main/java/ToDo.java @@ -4,7 +4,7 @@ public class ToDo extends Task { public ToDo(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { super(cmd); } - public ToDo(String cmd, boolean isDone) { + public ToDo(String cmd, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { super(cmd, isDone); } /** From 6387ba411af1fc509395106c616ac9114cdde3b3 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 26 Feb 2023 02:23:30 +0800 Subject: [PATCH 14/49] Creation of new files for refactoring of code for OOP, mostly done with TaskList --- src/main/java/Command.java | 7 +++ src/main/java/DukeException.java | 9 ++++ src/main/java/Parser.java | 2 + src/main/java/Storage.java | 83 ++++++++++++++++++++++++++++ src/main/java/TaskList.java | 93 ++++++++++++++++++++++++++++++++ src/main/java/Ui.java | 55 +++++++++++++++++++ 6 files changed, 249 insertions(+) create mode 100644 src/main/java/Command.java create mode 100644 src/main/java/DukeException.java create mode 100644 src/main/java/Parser.java create mode 100644 src/main/java/Storage.java create mode 100644 src/main/java/TaskList.java create mode 100644 src/main/java/Ui.java diff --git a/src/main/java/Command.java b/src/main/java/Command.java new file mode 100644 index 0000000000..8260dc0019 --- /dev/null +++ b/src/main/java/Command.java @@ -0,0 +1,7 @@ +public class Command { + public void execute(TaskList tasks, Ui ui, Storage storage) { + // do the commands purpose + // ui.print() the correct output + // + } +} diff --git a/src/main/java/DukeException.java b/src/main/java/DukeException.java new file mode 100644 index 0000000000..b106257aec --- /dev/null +++ b/src/main/java/DukeException.java @@ -0,0 +1,9 @@ +/** + * Exception thrown from Duke's code. + */ + +public class DukeException extends Exception { + public DukeException(String errorMessage) { + super(errorMessage); + } +} \ No newline at end of file diff --git a/src/main/java/Parser.java b/src/main/java/Parser.java new file mode 100644 index 0000000000..4d27fe15e5 --- /dev/null +++ b/src/main/java/Parser.java @@ -0,0 +1,2 @@ +public class Parser { +} diff --git a/src/main/java/Storage.java b/src/main/java/Storage.java new file mode 100644 index 0000000000..238d3d8eab --- /dev/null +++ b/src/main/java/Storage.java @@ -0,0 +1,83 @@ +import java.io.BufferedWriter; +import java.nio.file.FileAlreadyExistsException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.List; +import java.io.IOException; + +public class Storage { + static final String HOMEDIRECTORY = System.getProperty("user.dir"); + static final Path DEFAULTDIRECTORY = Paths.get(HOMEDIRECTORY, "SavedList.txt"); + private final Path filePath; + public Storage(Path filePath) { + this.filePath = filePath; + } + public ArrayList load() throws IOException { + return this.readSavedFile(this.filePath); + } + public ArrayList readSavedFile(Path path) throws IOException { + try { + Files.createFile(path); + return new ArrayList(); + } catch (FileAlreadyExistsException e) { + ArrayList arr = new ArrayList<>(); + List savedList = Files.readAllLines(path); + for (String task : savedList) { + try { + arr.add(readLineToTask(task)); + } catch (WrongTaskFormatException | ArrayIndexOutOfBoundsException wrongFormat) { +// print("File format of tasks is wrong.\n" + +// "List now contains information up to line before wrongly formatted line."); +// printList(arr); + return arr; + } + } + return arr; + } + } + public Task readLineToTask(String taskDescription) throws WrongTaskFormatException { + String[] items = taskDescription.split(" \\| "); + boolean isDone = getIsDone(items[1]); + Task task = new Task(taskDescription, isDone); + switch(items[0]) { + case "T": + task = new ToDo(items[2], isDone); +// return task; + break; + case "D": + task = new Deadline(items[2], items[3], isDone); +// return task; + break; + case "E": + String[] timeOfEvent = items[3].split("-"); + task = new Event(items[2], timeOfEvent[0], timeOfEvent[1], isDone); +// return task; + break; + default: + throw new WrongTaskFormatException("Invalid Task String Format"); + } + return task; + } + /** + * @param doneString a simple string containing 0/1 + * @returns the int value + */ + public boolean getIsDone(String doneString) { + return doneString.equals("1"); + } + void saveList(ArrayList arr) { + try { + // no need to deleteIfExists as BufferedWritter automatically clears all prev input + BufferedWriter fileWriter = Files.newBufferedWriter(this.filePath); + for (Task task : arr) { + fileWriter.write(task.saveString()); + fileWriter.newLine(); + } + fileWriter.close(); + } catch (IOException e) { + // unsure of what cases would throw IOException under deleteIfExists + } + } +} diff --git a/src/main/java/TaskList.java b/src/main/java/TaskList.java new file mode 100644 index 0000000000..87fe645e7a --- /dev/null +++ b/src/main/java/TaskList.java @@ -0,0 +1,93 @@ +import java.time.format.DateTimeParseException; +import java.util.ArrayList; +import java.util.regex.PatternSyntaxException; + +public class TaskList { + private ArrayList tasks; + public TaskList() { + this(new ArrayList()); + } + public TaskList(ArrayList tasks) { + this.tasks = tasks; + } + public Task get(int index) throws IndexOutOfBoundsException { + return tasks.get(index - 1); + } + public Task remove(int index) throws IndexOutOfBoundsException { + return tasks.remove(index - 1); + } + public int size() { + return tasks.size(); + } + // below is unfactored properly yet + static String add(String cmd, ArrayList arr) { + String[] words = cmd.split(" "); + String typeOfTask = words[0]; + + if (!MINVALIDLENGTH.containsKey(typeOfTask)) { + return errorMsg("I'm sorry, but I don't know what that means"); + } else if (cmd.length() < MINVALIDLENGTH.get(typeOfTask)) { + return errorMsg(String.format( + "The description of a %s cannot be empty.", typeOfTask)); + } + + try { + Task task = makeTask(typeOfTask, cmd); + //.replace(typeOfTask + " ", "")); + arr.add(task); + return String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, arr.size()); + } catch (PatternSyntaxException | ArrayIndexOutOfBoundsException | DateTimeParseException wrongFormat) { + return errorMsg("Please enter the command in the correct format.") + "\n" + CORRECTFORMAT.get(typeOfTask); + } + } + static String mark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd + if (arr.size() == 0) { + return errorMsg("You do not have any items in your list!"); + } + try { + int index = Integer.parseInt(num) - 1; + arr.get(index).markAsDone(); + return String.format("Nice! I've marked this task as done: \n\t%s", arr.get(index)); + } catch (NumberFormatException notANumber) { + return errorMsg("Please enter a valid number"); + } catch (IndexOutOfBoundsException badNumber) { + return errorMsg(String.format( + "Please enter a number from 1 to %d", + arr.size())); + } + } + static String unmark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd + if (arr.size() == 0) { + return errorMsg("You do not have any items in your list!"); + } + try { + int index = Integer.parseInt(num) - 1; + arr.get(index).unmarkAsDone(); + return String.format("Ok, I've marked this task as not done yet: \n\t%s", arr.get(index)); + } catch (NumberFormatException notANumber) { + return errorMsg("Please enter a valid number"); + } catch (IndexOutOfBoundsException badNumber) { + return errorMsg(String.format( + "Please enter a number from 1 to %d", + arr.size())); + } + } + static String delete(String num, ArrayList arr) { + if (arr.size() == 0) { + return errorMsg("You do not have any items in your list!"); + } + try { + int index = Integer.parseInt(num) - 1; + String taskDescription = arr.get(index).toString(); + arr.remove(index); + return String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", + taskDescription, arr.size()); + } catch (NumberFormatException notANumber) { + return errorMsg("Please enter a valid number"); + } catch (IndexOutOfBoundsException badNumber) { + return errorMsg(String.format( + "Please enter a number from 1 to %d", + arr.size())); + } + } +} diff --git a/src/main/java/Ui.java b/src/main/java/Ui.java new file mode 100644 index 0000000000..9f00da7354 --- /dev/null +++ b/src/main/java/Ui.java @@ -0,0 +1,55 @@ +import java.util.ArrayList; +import java.util.Scanner; + +public class Ui { + private static final String LINE = "~~~~~~~~~~~~~~~~~~~~"; + private Scanner sc; + public Ui() { + this.sc = new Scanner(System.in); + } + public void showLoadingError(String exceptionMessage) { + print("error"); + }; + public static void printList(ArrayList arr) { + String str = "List:"; + for (int i = 0; i < arr.size(); i++) { + str += String.format("\n\t%d. %s", i+1, arr.get(i)); + } + print(str); + } + public static void print(String reply) { + System.out.println(String.format("%s\n%s\n%s", LINE, reply, LINE)); + } + public static String errorMsg(String error) { + return String.format("☹ OOPS!!! %s :-(", error); + } + /** + * Used in Level-1 to echo + */ + public static void echo(String cmd) { + System.out.println(cmd); + } + public static String ownName() { + String name = " ____ _ \n" + + "| _ \\ _ _| | _____ \n" + + "| | | | | | | |/ / _ \\\n" + + "| |_| | |_| | < __/\n" + + "|____/ \\__,_|_|\\_\\___|\n"; + return name; + } + public static String greet() { + return String.format("Hello I am:\n%sWhat can I do for you?", ownName()); + } + public static void showLine() { + System.out.println(LINE); + } + public static String readCommand() { +// Scanner sc = new Scanner(System.in); + String command = this.sc.nextLine(); +// sc.close(); + return command; + } + public static void closeUi() { + this.sc.close(); + } +} From cee306f800ab62b65d9662db81746590dbdb329c Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 26 Feb 2023 17:46:56 +0800 Subject: [PATCH 15/49] Creation of new Commands --- src/main/java/AddTaskCommand.java | 57 +++++++++++++++++++++++++++++++ src/main/java/DeleteCommand.java | 2 ++ src/main/java/EchoCommand.java | 2 ++ src/main/java/ExitCommand.java | 2 ++ src/main/java/ListCommand.java | 2 ++ src/main/java/MarkCommand.java | 2 ++ src/main/java/UnmarkCommand.java | 2 ++ 7 files changed, 69 insertions(+) create mode 100644 src/main/java/AddTaskCommand.java create mode 100644 src/main/java/DeleteCommand.java create mode 100644 src/main/java/EchoCommand.java create mode 100644 src/main/java/ExitCommand.java create mode 100644 src/main/java/ListCommand.java create mode 100644 src/main/java/MarkCommand.java create mode 100644 src/main/java/UnmarkCommand.java diff --git a/src/main/java/AddTaskCommand.java b/src/main/java/AddTaskCommand.java new file mode 100644 index 0000000000..86955f5ea0 --- /dev/null +++ b/src/main/java/AddTaskCommand.java @@ -0,0 +1,57 @@ +import java.util.regex.PatternSyntaxException; + +public class AddTaskCommand extends Command { + private final String typeOfTask; + public AddTaskCommand(String command) { + super(command); + this.typeOfTask = command.split(" ")[0]; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + // do the commands purpose + // ui.print() the correct output + try{ + Task task = makeTask(); + tasks.add(task); + ui.print(String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, tasks.size())); + storage.saveList(tasks); + } catch (RuntimeException wrongFormat) { + throw new DukeException("Please enter the command in the correct format:\n" + correctFormat()); + } + } + private Task makeTask() throws PatternSyntaxException, ArrayIndexOutOfBoundsException { + Task task = new Task(this.command); + String cmd = this.command.replace(typeOfTask + " ", ""); + switch (typeOfTask) { + case "todo": + task = new ToDo(cmd); + break; + case "deadline": + task = new Deadline(cmd); + break; + case "event": + task = new Event(cmd); + break; + } + return task; + } + public String correctFormat() { + String format = "THE TASK"; + switch(this.typeOfTask) { + case "todo": + format = "todo [TASK]"; + break; + case "deadline": + format = "deadline [TASK] /by yyyy-mm-ddThh:mm:ss"; + break; + case "event": + format = "event [TASK] /from TIME /to TIME"; + } + return format; + } + + @Override + public boolean isExit() { + return false; + } +} diff --git a/src/main/java/DeleteCommand.java b/src/main/java/DeleteCommand.java new file mode 100644 index 0000000000..7bc8ec74ef --- /dev/null +++ b/src/main/java/DeleteCommand.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class DeleteCommand { +} diff --git a/src/main/java/EchoCommand.java b/src/main/java/EchoCommand.java new file mode 100644 index 0000000000..4e064d0f35 --- /dev/null +++ b/src/main/java/EchoCommand.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class EchoCommand { +} diff --git a/src/main/java/ExitCommand.java b/src/main/java/ExitCommand.java new file mode 100644 index 0000000000..5831e55aeb --- /dev/null +++ b/src/main/java/ExitCommand.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class ExitCommand { +} diff --git a/src/main/java/ListCommand.java b/src/main/java/ListCommand.java new file mode 100644 index 0000000000..e59b2a00c4 --- /dev/null +++ b/src/main/java/ListCommand.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class ListCommand { +} diff --git a/src/main/java/MarkCommand.java b/src/main/java/MarkCommand.java new file mode 100644 index 0000000000..8807640582 --- /dev/null +++ b/src/main/java/MarkCommand.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class MarkCommand { +} diff --git a/src/main/java/UnmarkCommand.java b/src/main/java/UnmarkCommand.java new file mode 100644 index 0000000000..b3b1dacff9 --- /dev/null +++ b/src/main/java/UnmarkCommand.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class UnmarkCommand { +} From 798615ee22b5f1ea28ca6d4bab999338b5e9bdbb Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 26 Feb 2023 17:47:37 +0800 Subject: [PATCH 16/49] Completed A-MoreOOP --- src/main/java/Command.java | 16 +- src/main/java/DeleteCommand.java | 23 ++- src/main/java/Duke.java | 244 +++++-------------------------- src/main/java/DukeException.java | 1 - src/main/java/EchoCommand.java | 16 +- src/main/java/ExitCommand.java | 15 +- src/main/java/ListCommand.java | 16 +- src/main/java/MarkCommand.java | 26 +++- src/main/java/Parser.java | 49 +++++++ src/main/java/Storage.java | 19 +-- src/main/java/TaskList.java | 87 +++-------- src/main/java/Ui.java | 38 +++-- src/main/java/UnmarkCommand.java | 26 +++- 13 files changed, 264 insertions(+), 312 deletions(-) diff --git a/src/main/java/Command.java b/src/main/java/Command.java index 8260dc0019..fdac31c135 100644 --- a/src/main/java/Command.java +++ b/src/main/java/Command.java @@ -1,7 +1,21 @@ public class Command { - public void execute(TaskList tasks, Ui ui, Storage storage) { + protected final String command; + public Command() { + this(""); + } + public Command(String command) { + this.command = command; + } + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { // do the commands purpose // ui.print() the correct output // } + // -1 is the standard if the command does not have min length +// public static String correctFormat() { +// return "this is the correct format of a command"; +// } + public boolean isExit() { + return false; + } } diff --git a/src/main/java/DeleteCommand.java b/src/main/java/DeleteCommand.java index 7bc8ec74ef..a865c6901a 100644 --- a/src/main/java/DeleteCommand.java +++ b/src/main/java/DeleteCommand.java @@ -1,2 +1,23 @@ -package PACKAGE_NAME;public class DeleteCommand { +public class DeleteCommand extends Command { + private final String index; + public DeleteCommand(String index) { + super("delete"); + this.index = index; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + try { + int idx = Integer.parseInt(this.index); + String taskDescription = tasks.delete(idx); + ui.print(String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", + taskDescription, tasks.size())); + storage.saveList(tasks); + } catch (NumberFormatException notANumber) { + throw new DukeException("Please enter a valid number"); + } + } + @Override + public boolean isExit() { + return false; + } } diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index e501dd9431..aa5c7e7def 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -39,7 +39,42 @@ public class Duke { "unmark", "unmark NUMBER", "delete", "delete NUMBER" )); + + private Storage storage; + private TaskList tasks; + private Ui ui; + public Duke(Path filePath) { + ui = new Ui(); + storage = new Storage(filePath); + try { + tasks = new TaskList(storage.load()); + } catch (DukeException e) { + ui.showLoadingError(); + tasks = new TaskList(); + } + } + public void run() { + ui.greet(); + boolean isExit = false; + while (!isExit) { + try { + String fullCommand = ui.readCommand(); + ui.showLine(); // show the divider line ("_______") + Command c = Parser.parse(fullCommand); + c.execute(tasks, ui, storage); + isExit = c.isExit(); + } catch (DukeException e) { + ui.showError(e.getMessage()); + } finally { + ui.showLine(); + } + } + } + public static void main(String[] args) { + new Duke(DUKELISTDIRECTORY).run(); + } + /*private static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(greet()); @@ -61,212 +96,5 @@ public static void main(String[] args) { // echo(sc.nextLine()); } sc.close(); - } - public static ArrayList readSavedFile() throws IOException { - try { - Files.createFile(DUKELISTDIRECTORY); - return new ArrayList(); - } catch (FileAlreadyExistsException e) { - ArrayList arr = new ArrayList<>(); - List savedList = Files.readAllLines(DUKELISTDIRECTORY); - for (String task : savedList) { - try { - arr.add(readLineToTask(task)); - } catch (WrongTaskFormatException | ArrayIndexOutOfBoundsException wrongFormat) { - print("File format of tasks is wrong.\n" + - "List now contains information up to line before wrongly formatted line."); - printList(arr); - return arr; - } - } - return arr; - } - } - public static Task readLineToTask(String taskDescription) throws WrongTaskFormatException { - String[] items = taskDescription.split(" \\| "); - boolean isDone = getIsDone(items[1]); - Task task = new Task(taskDescription, isDone); - switch(items[0]) { - case "T": - task = new ToDo(items[2], isDone); -// return task; - break; - case "D": - task = new Deadline(items[2], items[3], isDone); -// return task; - break; - case "E": - String[] timeOfEvent = items[3].split("-"); - task = new Event(items[2], timeOfEvent[0], timeOfEvent[1], isDone); -// return task; - break; - default: - throw new WrongTaskFormatException("Invalid Task String Format"); - } - return task; - } - - /** - * @param doneString a simple string containing 0/1 - * @returns the int value - */ - public static boolean getIsDone(String doneString) { - return doneString.equals("1"); - } - static void execute(String cmd, ArrayList arr) { - String[] words = cmd.split(" "); - switch (words[0]) { - case "list": - printList(arr); - break; - case "mark": - print(mark(words[1], arr)); - break; - case "unmark": - print(unmark(words[1], arr)); - break; - case "delete": - print(delete(words[1], arr)); - break; - default: // for tasks - print(add(cmd, arr)); - } - saveList(arr); - } - static void saveList(ArrayList arr) { - try { - // no need to deleteIfExists as BufferedWritter automatically clears all prev input - BufferedWriter fileWriter = Files.newBufferedWriter(DUKELISTDIRECTORY); - for (Task task : arr) { - fileWriter.write(task.saveString()); - fileWriter.newLine(); - } - fileWriter.close(); - } catch (IOException e) { - // unsure of what cases would throw IOException under deleteIfExists - } - } - static String add(String cmd, ArrayList arr) { - String[] words = cmd.split(" "); - String typeOfTask = words[0]; - - if (!MINVALIDLENGTH.containsKey(typeOfTask)) { - return errorMsg("I'm sorry, but I don't know what that means"); - } else if (cmd.length() < MINVALIDLENGTH.get(typeOfTask)) { - return errorMsg(String.format( - "The description of a %s cannot be empty.", typeOfTask)); - } - - try { - Task task = makeTask(typeOfTask, cmd); - //.replace(typeOfTask + " ", "")); - arr.add(task); - return String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, arr.size()); - } catch (PatternSyntaxException | ArrayIndexOutOfBoundsException | DateTimeParseException wrongFormat) { - return errorMsg("Please enter the command in the correct format.") + "\n" + CORRECTFORMAT.get(typeOfTask); - } - } - static Task makeTask(String name, String cmd) throws PatternSyntaxException { - Task task = new Task(cmd); - cmd = cmd.replace(name + " ", ""); - switch (name) { - case "todo": - task = new ToDo(cmd); - break; - case "deadline": - task = new Deadline(cmd); - break; - case "event": - task = new Event(cmd); - break; - }; - return task; - } - static String mark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd - if (arr.size() == 0) { - return errorMsg("You do not have any items in your list!"); - } - try { - int index = Integer.parseInt(num) - 1; - arr.get(index).markAsDone(); - return String.format("Nice! I've marked this task as done: \n\t%s", arr.get(index)); - } catch (NumberFormatException notANumber) { - return errorMsg("Please enter a valid number"); - } catch (IndexOutOfBoundsException badNumber) { - return errorMsg(String.format( - "Please enter a number from 1 to %d", - arr.size())); - } - } - static String unmark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd - if (arr.size() == 0) { - return errorMsg("You do not have any items in your list!"); - } - try { - int index = Integer.parseInt(num) - 1; - arr.get(index).unmarkAsDone(); - return String.format("Ok, I've marked this task as not done yet: \n\t%s", arr.get(index)); - } catch (NumberFormatException notANumber) { - return errorMsg("Please enter a valid number"); - } catch (IndexOutOfBoundsException badNumber) { - return errorMsg(String.format( - "Please enter a number from 1 to %d", - arr.size())); - } - } - static String delete(String num, ArrayList arr) { - if (arr.size() == 0) { - return errorMsg("You do not have any items in your list!"); - } - try { - int index = Integer.parseInt(num) - 1; - String taskDescription = arr.get(index).toString(); - arr.remove(index); - return String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", - taskDescription, arr.size()); - } catch (NumberFormatException notANumber) { - return errorMsg("Please enter a valid number"); - } catch (IndexOutOfBoundsException badNumber) { - return errorMsg(String.format( - "Please enter a number from 1 to %d", - arr.size())); - } - } - static String ownName() { - String name = " ____ _ \n" - + "| _ \\ _ _| | _____ \n" - + "| | | | | | | |/ / _ \\\n" - + "| |_| | |_| | < __/\n" - + "|____/ \\__,_|_|\\_\\___|\n"; - return name; - } - static String greet() { - return String.format("Hello I am:\n%sWhat can I do for you?", ownName()); - } - static void printList(ArrayList arr) { - String str = "List:"; - for (int i = 0; i < arr.size(); i++) { - str += String.format("\n\t%d. %s", i+1, arr.get(i)); - } - print(str); - } - static void exit() { - print("Bye. Hope to see you again soon!"); - } - /** - * Used to print out any reply with the correct formatting - */ - static void print(String reply) { - String topBottom = "~~~~~~~~~~~~~~~~~~~~"; - System.out.println(String.format("%s\n%s\n%s", topBottom, reply, topBottom)); - } - static String errorMsg(String error) { - return String.format("☹ OOPS!!! %s :-(", error); - } - /** - * Used in Level-1 to echo - */ - static void echo(String cmd) { - System.out.println(cmd); - } + }*/ } diff --git a/src/main/java/DukeException.java b/src/main/java/DukeException.java index b106257aec..25469fa9df 100644 --- a/src/main/java/DukeException.java +++ b/src/main/java/DukeException.java @@ -1,7 +1,6 @@ /** * Exception thrown from Duke's code. */ - public class DukeException extends Exception { public DukeException(String errorMessage) { super(errorMessage); diff --git a/src/main/java/EchoCommand.java b/src/main/java/EchoCommand.java index 4e064d0f35..8d0555d73e 100644 --- a/src/main/java/EchoCommand.java +++ b/src/main/java/EchoCommand.java @@ -1,2 +1,16 @@ -package PACKAGE_NAME;public class EchoCommand { +public class EchoCommand extends Command { + private final String input; + public EchoCommand(String input) { + this.input = input; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) { + // do the commands purpose + // ui.print() the correct output + ui.print(input); + } +// @Override +// public static String correctFormat() { +// return "[ANYTHING]"; +// } } diff --git a/src/main/java/ExitCommand.java b/src/main/java/ExitCommand.java index 5831e55aeb..ab4e5d1070 100644 --- a/src/main/java/ExitCommand.java +++ b/src/main/java/ExitCommand.java @@ -1,2 +1,15 @@ -package PACKAGE_NAME;public class ExitCommand { +public class ExitCommand extends Command { + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) { + storage.saveList(tasks); + ui.closeUi(); + } +// @Override +// public static String correctFormat() { +// return "bye"; +// } + @Override + public boolean isExit() { + return true; + } } diff --git a/src/main/java/ListCommand.java b/src/main/java/ListCommand.java index e59b2a00c4..31685c0607 100644 --- a/src/main/java/ListCommand.java +++ b/src/main/java/ListCommand.java @@ -1,2 +1,16 @@ -package PACKAGE_NAME;public class ListCommand { +public class ListCommand extends Command { + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + // do the commands purpose + // ui.print() the correct output + String str = "List:"; + for (int i = 1; i <= tasks.size(); i++) { + str += String.format("\n\t%d. %s", i, tasks.get(i)); + } + ui.print(str); + } + @Override + public boolean isExit() { + return false; + } } diff --git a/src/main/java/MarkCommand.java b/src/main/java/MarkCommand.java index 8807640582..ae34c579a5 100644 --- a/src/main/java/MarkCommand.java +++ b/src/main/java/MarkCommand.java @@ -1,2 +1,26 @@ -package PACKAGE_NAME;public class MarkCommand { +public class MarkCommand extends Command { + private final String index; + public MarkCommand(String index) { + super("mark"); + this.index = index; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + if (tasks.size() == 0) { + throw new DukeException("You do not have any items in your list!"); + } + try { + int idx = Integer.parseInt(this.index); + tasks.get(idx).markAsDone(); + ui.print(String.format("Nice! I've marked this task as done: \n\t%s", + tasks.get(idx))); + storage.saveList(tasks); + } catch (NumberFormatException notANumber) { + throw new DukeException("Please enter a valid number"); + } + } + @Override + public boolean isExit() { + return false; + } } diff --git a/src/main/java/Parser.java b/src/main/java/Parser.java index 4d27fe15e5..4fa589f39e 100644 --- a/src/main/java/Parser.java +++ b/src/main/java/Parser.java @@ -1,2 +1,51 @@ +import java.util.HashMap; +import java.util.Map; + + public class Parser { + static final String VALIDCOMMANDS = "bye, list, mark, unmark, delete, todo, deadline, event"; + static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( + "list", "list", + "bye", "bye", + "todo", "todo THE TASK", + "deadline", "deadline THE TASK /by yyyy-mm-ddThh:mm:ss", + "event", "event THE TASK /from TIME /to TIME", + "mark", "mark NUMBER", + "unmark", "unmark NUMBER", + "delete", "delete NUMBER" + )); + public static Command parse(String fullCommand) throws DukeException { + String[] words = fullCommand.split(" "); + if (!CORRECTFORMAT.containsKey(words[0])) { + String noValid = "I'm sorry, but I don't know what that means. My valid commands are:\n"; + noValid += VALIDCOMMANDS; + throw new DukeException(noValid); + } + Command cmd = new Command(); + try { + switch (words[0]) { + case "bye": + cmd = new ExitCommand(); + break; + case "list": + cmd = new ListCommand(); + break; + case "mark": + cmd = new MarkCommand(words[1]); + break; + case "unmark": + cmd = new UnmarkCommand(words[1]); + break; + case "delete": + cmd = new DeleteCommand(words[1]); + break; + default: // for tasks + cmd = new AddTaskCommand(fullCommand); + } + } catch (Exception e) { + throw new DukeException("Please enter in the correct format:\n" + + CORRECTFORMAT.get(words[0])); + } + return cmd; + } } diff --git a/src/main/java/Storage.java b/src/main/java/Storage.java index 238d3d8eab..94e9e0e8b4 100644 --- a/src/main/java/Storage.java +++ b/src/main/java/Storage.java @@ -14,10 +14,14 @@ public class Storage { public Storage(Path filePath) { this.filePath = filePath; } - public ArrayList load() throws IOException { - return this.readSavedFile(this.filePath); + public ArrayList load() throws DukeException { + try { + return this.readSavedFile(this.filePath); + } catch (IOException e) { + throw new DukeException("File is corrupted."); + } } - public ArrayList readSavedFile(Path path) throws IOException { + public ArrayList readSavedFile(Path path) throws IOException, DukeException { try { Files.createFile(path); return new ArrayList(); @@ -28,10 +32,7 @@ public ArrayList readSavedFile(Path path) throws IOException { try { arr.add(readLineToTask(task)); } catch (WrongTaskFormatException | ArrayIndexOutOfBoundsException wrongFormat) { -// print("File format of tasks is wrong.\n" + -// "List now contains information up to line before wrongly formatted line."); -// printList(arr); - return arr; + throw new DukeException("File format of tasks is wrong."); } } return arr; @@ -67,11 +68,11 @@ public Task readLineToTask(String taskDescription) throws WrongTaskFormatExcepti public boolean getIsDone(String doneString) { return doneString.equals("1"); } - void saveList(ArrayList arr) { + public void saveList(TaskList tasks) { try { // no need to deleteIfExists as BufferedWritter automatically clears all prev input BufferedWriter fileWriter = Files.newBufferedWriter(this.filePath); - for (Task task : arr) { + for (Task task : tasks.getTasks()) { fileWriter.write(task.saveString()); fileWriter.newLine(); } diff --git a/src/main/java/TaskList.java b/src/main/java/TaskList.java index 87fe645e7a..8ae01d5e6f 100644 --- a/src/main/java/TaskList.java +++ b/src/main/java/TaskList.java @@ -10,84 +10,37 @@ public TaskList() { public TaskList(ArrayList tasks) { this.tasks = tasks; } - public Task get(int index) throws IndexOutOfBoundsException { - return tasks.get(index - 1); - } - public Task remove(int index) throws IndexOutOfBoundsException { - return tasks.remove(index - 1); + public Task get(int index) throws DukeException { + try { + return tasks.get(index - 1); + } catch (IndexOutOfBoundsException e) { + throw new DukeException(String.format( + "Please enter a number from 1 to %d", + this.size())); + } } public int size() { return tasks.size(); } // below is unfactored properly yet - static String add(String cmd, ArrayList arr) { - String[] words = cmd.split(" "); - String typeOfTask = words[0]; - - if (!MINVALIDLENGTH.containsKey(typeOfTask)) { - return errorMsg("I'm sorry, but I don't know what that means"); - } else if (cmd.length() < MINVALIDLENGTH.get(typeOfTask)) { - return errorMsg(String.format( - "The description of a %s cannot be empty.", typeOfTask)); - } - - try { - Task task = makeTask(typeOfTask, cmd); - //.replace(typeOfTask + " ", "")); - arr.add(task); - return String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, arr.size()); - } catch (PatternSyntaxException | ArrayIndexOutOfBoundsException | DateTimeParseException wrongFormat) { - return errorMsg("Please enter the command in the correct format.") + "\n" + CORRECTFORMAT.get(typeOfTask); - } - } - static String mark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd - if (arr.size() == 0) { - return errorMsg("You do not have any items in your list!"); - } - try { - int index = Integer.parseInt(num) - 1; - arr.get(index).markAsDone(); - return String.format("Nice! I've marked this task as done: \n\t%s", arr.get(index)); - } catch (NumberFormatException notANumber) { - return errorMsg("Please enter a valid number"); - } catch (IndexOutOfBoundsException badNumber) { - return errorMsg(String.format( - "Please enter a number from 1 to %d", - arr.size())); - } + public void add(Task task) { + this.tasks.add(task); } - static String unmark(String num, ArrayList arr) { //try catch, possibility of error if user enter wrong cmd - if (arr.size() == 0) { - return errorMsg("You do not have any items in your list!"); + public String delete(int index) throws DukeException { + if (size() == 0) { + throw new DukeException("You do not have any items in your list!"); } try { - int index = Integer.parseInt(num) - 1; - arr.get(index).unmarkAsDone(); - return String.format("Ok, I've marked this task as not done yet: \n\t%s", arr.get(index)); - } catch (NumberFormatException notANumber) { - return errorMsg("Please enter a valid number"); + String taskDescription = this.get(index).toString(); + this.tasks.remove(index-1); + return taskDescription; } catch (IndexOutOfBoundsException badNumber) { - return errorMsg(String.format( + throw new DukeException(String.format( "Please enter a number from 1 to %d", - arr.size())); + this.size())); } } - static String delete(String num, ArrayList arr) { - if (arr.size() == 0) { - return errorMsg("You do not have any items in your list!"); - } - try { - int index = Integer.parseInt(num) - 1; - String taskDescription = arr.get(index).toString(); - arr.remove(index); - return String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", - taskDescription, arr.size()); - } catch (NumberFormatException notANumber) { - return errorMsg("Please enter a valid number"); - } catch (IndexOutOfBoundsException badNumber) { - return errorMsg(String.format( - "Please enter a number from 1 to %d", - arr.size())); - } + public ArrayList getTasks() { + return this.tasks; } } diff --git a/src/main/java/Ui.java b/src/main/java/Ui.java index 9f00da7354..3bdd577da9 100644 --- a/src/main/java/Ui.java +++ b/src/main/java/Ui.java @@ -7,29 +7,29 @@ public class Ui { public Ui() { this.sc = new Scanner(System.in); } - public void showLoadingError(String exceptionMessage) { + public void showLoadingError() { + // error in reading the file print("error"); }; - public static void printList(ArrayList arr) { - String str = "List:"; - for (int i = 0; i < arr.size(); i++) { - str += String.format("\n\t%d. %s", i+1, arr.get(i)); - } - print(str); - } - public static void print(String reply) { + /*public static void print(String reply) { System.out.println(String.format("%s\n%s\n%s", LINE, reply, LINE)); + }*/ + public void print(String toBePrinted) { + System.out.println(toBePrinted); } - public static String errorMsg(String error) { - return String.format("☹ OOPS!!! %s :-(", error); + public void showError(String errorMessage) { + print(errorMsg(errorMessage)); + } + public String errorMsg(String error) { + return String.format("☹ OOPS!!!\n%s :-(", error); } /** * Used in Level-1 to echo */ - public static void echo(String cmd) { + public void echo(String cmd) { System.out.println(cmd); } - public static String ownName() { + public String ownName() { String name = " ____ _ \n" + "| _ \\ _ _| | _____ \n" + "| | | | | | | |/ / _ \\\n" @@ -37,19 +37,17 @@ public static String ownName() { + "|____/ \\__,_|_|\\_\\___|\n"; return name; } - public static String greet() { - return String.format("Hello I am:\n%sWhat can I do for you?", ownName()); + public void greet() { + print(String.format("Hello I am:\n%sWhat can I do for you?", ownName())); } - public static void showLine() { + public void showLine() { System.out.println(LINE); } - public static String readCommand() { -// Scanner sc = new Scanner(System.in); + public String readCommand() { String command = this.sc.nextLine(); -// sc.close(); return command; } - public static void closeUi() { + public void closeUi() { this.sc.close(); } } diff --git a/src/main/java/UnmarkCommand.java b/src/main/java/UnmarkCommand.java index b3b1dacff9..dfb6619028 100644 --- a/src/main/java/UnmarkCommand.java +++ b/src/main/java/UnmarkCommand.java @@ -1,2 +1,26 @@ -package PACKAGE_NAME;public class UnmarkCommand { +public class UnmarkCommand extends Command { + private final String index; + public UnmarkCommand(String index) { + super("unmark"); + this.index = index; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + if (tasks.size() == 0) { + throw new DukeException("You do not have any items in your list!"); + } + try { + int idx = Integer.parseInt(this.index); + tasks.get(idx).unmarkAsDone(); + ui.print(String.format("Nice! I've marked this task as done: \n\t%s", + tasks.get(idx))); + storage.saveList(tasks); + } catch (NumberFormatException notANumber) { + throw new DukeException("Please enter a valid number"); + } + } + @Override + public boolean isExit() { + return false; + } } From 71e1c5c44bad62cd86c7f2ad5ae96fe5f5a48aac Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 26 Feb 2023 18:58:21 +0800 Subject: [PATCH 17/49] A-Packages --- .../java/{ => command}/AddTaskCommand.java | 0 src/main/java/{ => command}/Command.java | 0 .../java/{ => command}/DeleteCommand.java | 0 src/main/java/{ => command}/EchoCommand.java | 0 src/main/java/{ => command}/ExitCommand.java | 1 + src/main/java/{ => command}/ListCommand.java | 0 src/main/java/{ => command}/MarkCommand.java | 0 .../java/{ => command}/UnmarkCommand.java | 0 src/main/java/{ => duke}/Duke.java | 16 ++--- src/main/java/{ => duke}/DukeException.java | 2 + src/main/java/{ => duke}/Parser.java | 12 +++- src/main/java/{ => duke}/Storage.java | 19 +++--- src/main/java/{ => duke}/Ui.java | 13 ++-- .../{ => duke}/WrongTaskFormatException.java | 2 + .../java/duke/command/AddTaskCommand.java | 68 +++++++++++++++++++ src/main/java/duke/command/Command.java | 24 +++++++ src/main/java/duke/command/DeleteCommand.java | 30 ++++++++ src/main/java/duke/command/EchoCommand.java | 18 +++++ src/main/java/duke/command/ExitCommand.java | 17 +++++ src/main/java/duke/command/ListCommand.java | 23 +++++++ src/main/java/duke/command/MarkCommand.java | 33 +++++++++ src/main/java/duke/command/UnmarkCommand.java | 33 +++++++++ src/main/java/duke/input.txt | 6 ++ src/main/java/{ => duke/task}/Deadline.java | 4 +- src/main/java/{ => duke/task}/Event.java | 6 +- src/main/java/duke/task/Task.java | 48 +++++++++++++ src/main/java/{ => duke/task}/TaskList.java | 11 +-- src/main/java/{ => duke/task}/ToDo.java | 4 +- src/main/java/{ => task}/Task.java | 0 29 files changed, 353 insertions(+), 37 deletions(-) rename src/main/java/{ => command}/AddTaskCommand.java (100%) rename src/main/java/{ => command}/Command.java (100%) rename src/main/java/{ => command}/DeleteCommand.java (100%) rename src/main/java/{ => command}/EchoCommand.java (100%) rename src/main/java/{ => command}/ExitCommand.java (94%) rename src/main/java/{ => command}/ListCommand.java (100%) rename src/main/java/{ => command}/MarkCommand.java (100%) rename src/main/java/{ => command}/UnmarkCommand.java (100%) rename src/main/java/{ => duke}/Duke.java (88%) rename src/main/java/{ => duke}/DukeException.java (92%) rename src/main/java/{ => duke}/Parser.java (88%) rename src/main/java/{ => duke}/Storage.java (89%) rename src/main/java/{ => duke}/Ui.java (82%) rename src/main/java/{ => duke}/WrongTaskFormatException.java (91%) create mode 100644 src/main/java/duke/command/AddTaskCommand.java create mode 100644 src/main/java/duke/command/Command.java create mode 100644 src/main/java/duke/command/DeleteCommand.java create mode 100644 src/main/java/duke/command/EchoCommand.java create mode 100644 src/main/java/duke/command/ExitCommand.java create mode 100644 src/main/java/duke/command/ListCommand.java create mode 100644 src/main/java/duke/command/MarkCommand.java create mode 100644 src/main/java/duke/command/UnmarkCommand.java create mode 100644 src/main/java/duke/input.txt rename src/main/java/{ => duke/task}/Deadline.java (94%) rename src/main/java/{ => duke/task}/Event.java (92%) create mode 100644 src/main/java/duke/task/Task.java rename src/main/java/{ => duke/task}/TaskList.java (85%) rename src/main/java/{ => duke/task}/ToDo.java (90%) rename src/main/java/{ => task}/Task.java (100%) diff --git a/src/main/java/AddTaskCommand.java b/src/main/java/command/AddTaskCommand.java similarity index 100% rename from src/main/java/AddTaskCommand.java rename to src/main/java/command/AddTaskCommand.java diff --git a/src/main/java/Command.java b/src/main/java/command/Command.java similarity index 100% rename from src/main/java/Command.java rename to src/main/java/command/Command.java diff --git a/src/main/java/DeleteCommand.java b/src/main/java/command/DeleteCommand.java similarity index 100% rename from src/main/java/DeleteCommand.java rename to src/main/java/command/DeleteCommand.java diff --git a/src/main/java/EchoCommand.java b/src/main/java/command/EchoCommand.java similarity index 100% rename from src/main/java/EchoCommand.java rename to src/main/java/command/EchoCommand.java diff --git a/src/main/java/ExitCommand.java b/src/main/java/command/ExitCommand.java similarity index 94% rename from src/main/java/ExitCommand.java rename to src/main/java/command/ExitCommand.java index ab4e5d1070..3bfd273b26 100644 --- a/src/main/java/ExitCommand.java +++ b/src/main/java/command/ExitCommand.java @@ -1,3 +1,4 @@ +package duke.command public class ExitCommand extends Command { @Override public void execute(TaskList tasks, Ui ui, Storage storage) { diff --git a/src/main/java/ListCommand.java b/src/main/java/command/ListCommand.java similarity index 100% rename from src/main/java/ListCommand.java rename to src/main/java/command/ListCommand.java diff --git a/src/main/java/MarkCommand.java b/src/main/java/command/MarkCommand.java similarity index 100% rename from src/main/java/MarkCommand.java rename to src/main/java/command/MarkCommand.java diff --git a/src/main/java/UnmarkCommand.java b/src/main/java/command/UnmarkCommand.java similarity index 100% rename from src/main/java/UnmarkCommand.java rename to src/main/java/command/UnmarkCommand.java diff --git a/src/main/java/Duke.java b/src/main/java/duke/Duke.java similarity index 88% rename from src/main/java/Duke.java rename to src/main/java/duke/Duke.java index aa5c7e7def..dc3d49bb94 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/duke/Duke.java @@ -1,16 +1,12 @@ -import java.io.BufferedWriter; -import java.io.IOException; -import java.nio.file.FileAlreadyExistsException; -import java.time.format.DateTimeParseException; -import java.util.List; -import java.util.ArrayList; -import java.util.Scanner; +package duke; + +import duke.command.Command; +import duke.task.TaskList; + import java.util.Map; import java.util.HashMap; -import java.util.regex.PatternSyntaxException; import java.nio.file.Path; import java.nio.file.Paths; -import java.nio.file.Files; public class Duke { /** @@ -79,7 +75,7 @@ public static void main(String[] args) { System.out.println(greet()); // arr => needs to be updated w old list - ArrayList arr = new ArrayList<>(); + ArrayList arr = new ArrayList<>(); try { arr = readSavedFile(); } catch (IOException unknown) { diff --git a/src/main/java/DukeException.java b/src/main/java/duke/DukeException.java similarity index 92% rename from src/main/java/DukeException.java rename to src/main/java/duke/DukeException.java index 25469fa9df..60d5270897 100644 --- a/src/main/java/DukeException.java +++ b/src/main/java/duke/DukeException.java @@ -1,3 +1,5 @@ +package duke; + /** * Exception thrown from Duke's code. */ diff --git a/src/main/java/Parser.java b/src/main/java/duke/Parser.java similarity index 88% rename from src/main/java/Parser.java rename to src/main/java/duke/Parser.java index 4fa589f39e..dbca10fba7 100644 --- a/src/main/java/Parser.java +++ b/src/main/java/duke/Parser.java @@ -1,7 +1,17 @@ +package duke; + +import duke.command.Command; +import duke.command.ExitCommand; +import duke.command.ListCommand; +import duke.command.MarkCommand; +import duke.command.UnmarkCommand; +import duke.command.DeleteCommand; +import duke.command.AddTaskCommand; + + import java.util.HashMap; import java.util.Map; - public class Parser { static final String VALIDCOMMANDS = "bye, list, mark, unmark, delete, todo, deadline, event"; static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( diff --git a/src/main/java/Storage.java b/src/main/java/duke/Storage.java similarity index 89% rename from src/main/java/Storage.java rename to src/main/java/duke/Storage.java index 94e9e0e8b4..d7c7adc7c7 100644 --- a/src/main/java/Storage.java +++ b/src/main/java/duke/Storage.java @@ -1,3 +1,11 @@ +package duke; + +import duke.task.Task; +import duke.task.ToDo; +import duke.task.Deadline; +import duke.task.Event; +import duke.task.TaskList; + import java.io.BufferedWriter; import java.nio.file.FileAlreadyExistsException; import java.nio.file.Files; @@ -24,7 +32,7 @@ public ArrayList load() throws DukeException { public ArrayList readSavedFile(Path path) throws IOException, DukeException { try { Files.createFile(path); - return new ArrayList(); + return new ArrayList<>(); } catch (FileAlreadyExistsException e) { ArrayList arr = new ArrayList<>(); List savedList = Files.readAllLines(path); @@ -45,26 +53,19 @@ public Task readLineToTask(String taskDescription) throws WrongTaskFormatExcepti switch(items[0]) { case "T": task = new ToDo(items[2], isDone); -// return task; break; case "D": task = new Deadline(items[2], items[3], isDone); -// return task; break; case "E": String[] timeOfEvent = items[3].split("-"); task = new Event(items[2], timeOfEvent[0], timeOfEvent[1], isDone); -// return task; break; default: - throw new WrongTaskFormatException("Invalid Task String Format"); + throw new WrongTaskFormatException("Invalid task.Task String Format"); } return task; } - /** - * @param doneString a simple string containing 0/1 - * @returns the int value - */ public boolean getIsDone(String doneString) { return doneString.equals("1"); } diff --git a/src/main/java/Ui.java b/src/main/java/duke/Ui.java similarity index 82% rename from src/main/java/Ui.java rename to src/main/java/duke/Ui.java index 3bdd577da9..0980b7c9bf 100644 --- a/src/main/java/Ui.java +++ b/src/main/java/duke/Ui.java @@ -1,19 +1,17 @@ -import java.util.ArrayList; +package duke; + import java.util.Scanner; public class Ui { private static final String LINE = "~~~~~~~~~~~~~~~~~~~~"; - private Scanner sc; + private final Scanner sc; public Ui() { this.sc = new Scanner(System.in); } public void showLoadingError() { // error in reading the file print("error"); - }; - /*public static void print(String reply) { - System.out.println(String.format("%s\n%s\n%s", LINE, reply, LINE)); - }*/ + } public void print(String toBePrinted) { System.out.println(toBePrinted); } @@ -44,8 +42,7 @@ public void showLine() { System.out.println(LINE); } public String readCommand() { - String command = this.sc.nextLine(); - return command; + return this.sc.nextLine(); } public void closeUi() { this.sc.close(); diff --git a/src/main/java/WrongTaskFormatException.java b/src/main/java/duke/WrongTaskFormatException.java similarity index 91% rename from src/main/java/WrongTaskFormatException.java rename to src/main/java/duke/WrongTaskFormatException.java index 14869269a8..18a6ad9904 100644 --- a/src/main/java/WrongTaskFormatException.java +++ b/src/main/java/duke/WrongTaskFormatException.java @@ -1,3 +1,5 @@ +package duke; + public class WrongTaskFormatException extends Exception { public WrongTaskFormatException(String errorMessage) { super(errorMessage); diff --git a/src/main/java/duke/command/AddTaskCommand.java b/src/main/java/duke/command/AddTaskCommand.java new file mode 100644 index 0000000000..fb31f72429 --- /dev/null +++ b/src/main/java/duke/command/AddTaskCommand.java @@ -0,0 +1,68 @@ +package duke.command; + +import duke.DukeException; +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; +import duke.task.Task; +import duke.task.ToDo; +import duke.task.Event; +import duke.task.Deadline; + +import java.util.regex.PatternSyntaxException; + +public class AddTaskCommand extends Command { + private final String typeOfTask; + public AddTaskCommand(String command) { + super(command); + this.typeOfTask = command.split(" ")[0]; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + // do the commands purpose + // ui.print() the correct output + try{ + Task task = makeTask(); + tasks.add(task); + ui.print(String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, tasks.size())); + storage.saveList(tasks); + } catch (RuntimeException wrongFormat) { + throw new DukeException("Please enter the command in the correct format:\n" + correctFormat()); + } + } + private Task makeTask() throws PatternSyntaxException, ArrayIndexOutOfBoundsException { + Task task = new Task(this.command); + String cmd = this.command.replace(typeOfTask + " ", ""); + switch (typeOfTask) { + case "todo": + task = new ToDo(cmd); + break; + case "deadline": + task = new Deadline(cmd); + break; + case "event": + task = new Event(cmd); + break; + } + return task; + } + public String correctFormat() { + String format = "THE TASK"; + switch(this.typeOfTask) { + case "todo": + format = "todo [TASK]"; + break; + case "deadline": + format = "deadline [TASK] /by yyyy-mm-ddThh:mm:ss"; + break; + case "event": + format = "event [TASK] /from TIME /to TIME"; + } + return format; + } + + @Override + public boolean isExit() { + return false; + } +} diff --git a/src/main/java/duke/command/Command.java b/src/main/java/duke/command/Command.java new file mode 100644 index 0000000000..c98763788f --- /dev/null +++ b/src/main/java/duke/command/Command.java @@ -0,0 +1,24 @@ +package duke.command; + +import duke.DukeException; +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; + +public class Command { + protected final String command; + public Command() { + this(""); + } + public Command(String command) { + this.command = command; + } + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + // do the commands purpose + // ui.print() the correct output + return; + } + public boolean isExit() { + return false; + } +} diff --git a/src/main/java/duke/command/DeleteCommand.java b/src/main/java/duke/command/DeleteCommand.java new file mode 100644 index 0000000000..d462657541 --- /dev/null +++ b/src/main/java/duke/command/DeleteCommand.java @@ -0,0 +1,30 @@ +package duke.command; + +import duke.DukeException; +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; + +public class DeleteCommand extends Command { + private final String index; + public DeleteCommand(String index) { + super("delete"); + this.index = index; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + try { + int idx = Integer.parseInt(this.index); + String taskDescription = tasks.delete(idx); + ui.print(String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", + taskDescription, tasks.size())); + storage.saveList(tasks); + } catch (NumberFormatException notANumber) { + throw new DukeException("Please enter a valid number"); + } + } + @Override + public boolean isExit() { + return false; + } +} diff --git a/src/main/java/duke/command/EchoCommand.java b/src/main/java/duke/command/EchoCommand.java new file mode 100644 index 0000000000..ecec576c68 --- /dev/null +++ b/src/main/java/duke/command/EchoCommand.java @@ -0,0 +1,18 @@ +package duke.command; + +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; + +public class EchoCommand extends Command { + private final String input; + public EchoCommand(String input) { + this.input = input; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) { + // do the commands purpose + // ui.print() the correct output + ui.print(input); + } +} diff --git a/src/main/java/duke/command/ExitCommand.java b/src/main/java/duke/command/ExitCommand.java new file mode 100644 index 0000000000..cc7abbec86 --- /dev/null +++ b/src/main/java/duke/command/ExitCommand.java @@ -0,0 +1,17 @@ +package duke.command; + +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; + +public class ExitCommand extends Command { + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) { + storage.saveList(tasks); + ui.closeUi(); + } + @Override + public boolean isExit() { + return true; + } +} diff --git a/src/main/java/duke/command/ListCommand.java b/src/main/java/duke/command/ListCommand.java new file mode 100644 index 0000000000..efacc67c51 --- /dev/null +++ b/src/main/java/duke/command/ListCommand.java @@ -0,0 +1,23 @@ +package duke.command; + +import duke.DukeException; +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; + +public class ListCommand extends Command { + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + // do the commands purpose + // ui.print() the correct output + String str = "List:"; + for (int i = 1; i <= tasks.size(); i++) { + str += String.format("\n\t%d. %s", i, tasks.get(i)); + } + ui.print(str); + } + @Override + public boolean isExit() { + return false; + } +} diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java new file mode 100644 index 0000000000..4e6858a00b --- /dev/null +++ b/src/main/java/duke/command/MarkCommand.java @@ -0,0 +1,33 @@ +package duke.command; + +import duke.DukeException; +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; + +public class MarkCommand extends Command { + private final String index; + public MarkCommand(String index) { + super("mark"); + this.index = index; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + if (tasks.size() == 0) { + throw new DukeException("You do not have any items in your list!"); + } + try { + int idx = Integer.parseInt(this.index); + tasks.get(idx).markAsDone(); + ui.print(String.format("Nice! I've marked this task as done: \n\t%s", + tasks.get(idx))); + storage.saveList(tasks); + } catch (NumberFormatException notANumber) { + throw new DukeException("Please enter a valid number"); + } + } + @Override + public boolean isExit() { + return false; + } +} diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java new file mode 100644 index 0000000000..abd41f564b --- /dev/null +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -0,0 +1,33 @@ +package duke.command; + +import duke.DukeException; +import duke.Ui; +import duke.Storage; +import duke.task.TaskList; + +public class UnmarkCommand extends Command { + private final String index; + public UnmarkCommand(String index) { + super("unmark"); + this.index = index; + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + if (tasks.size() == 0) { + throw new DukeException("You do not have any items in your list!"); + } + try { + int idx = Integer.parseInt(this.index); + tasks.get(idx).unmarkAsDone(); + ui.print(String.format("Nice! I've marked this task as done: \n\t%s", + tasks.get(idx))); + storage.saveList(tasks); + } catch (NumberFormatException notANumber) { + throw new DukeException("Please enter a valid number"); + } + } + @Override + public boolean isExit() { + return false; + } +} diff --git a/src/main/java/duke/input.txt b/src/main/java/duke/input.txt new file mode 100644 index 0000000000..ae02667119 --- /dev/null +++ b/src/main/java/duke/input.txt @@ -0,0 +1,6 @@ +todo borrow book +deadline return book /by Sunday +event project meeting /from Mon 2pm /to 4pm +mark 2 +list +bye \ No newline at end of file diff --git a/src/main/java/Deadline.java b/src/main/java/duke/task/Deadline.java similarity index 94% rename from src/main/java/Deadline.java rename to src/main/java/duke/task/Deadline.java index eeb32c013c..8ffc435b4b 100644 --- a/src/main/java/Deadline.java +++ b/src/main/java/duke/task/Deadline.java @@ -1,9 +1,11 @@ +package duke.task; + import java.time.LocalDateTime; import java.time.format.DateTimeParseException; import java.util.regex.PatternSyntaxException; public class Deadline extends Task { - private LocalDateTime deadline; + private final LocalDateTime deadline; public Deadline(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd,false); } diff --git a/src/main/java/Event.java b/src/main/java/duke/task/Event.java similarity index 92% rename from src/main/java/Event.java rename to src/main/java/duke/task/Event.java index 21b17575a8..6f777ab6a5 100644 --- a/src/main/java/Event.java +++ b/src/main/java/duke/task/Event.java @@ -1,8 +1,10 @@ +package duke.task; + import java.util.regex.PatternSyntaxException; public class Event extends Task { - private String from; - private String to; + private final String from; + private final String to; public Event(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd, false); } diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java new file mode 100644 index 0000000000..3fcb832d58 --- /dev/null +++ b/src/main/java/duke/task/Task.java @@ -0,0 +1,48 @@ +package duke.task; + +import java.util.regex.PatternSyntaxException; + +/** + * task.Task used to hold the string representation of tasks to be done + */ +public class Task { + private final String task; + private boolean isDone; + public Task(String task) throws PatternSyntaxException { + this(task, false); + } + public Task(String task, boolean isDone) { + this.task = task; + this.isDone = isDone; + } + public boolean isDone() { + return this.isDone; + } + /** + * Sets task as done + */ + public void markAsDone() { + this.isDone = true; + } + /** + * Sets task as not done + */ + public void unmarkAsDone() { + this.isDone = false; + } + protected String getTask() { + return this.task; + } + /** + * Returns the string of the task + */ + @Override + public String toString() { + String markedAsDone = isDone ? "X" : " "; + return String.format("[%s] %s", markedAsDone, task); + } + public String saveString() { + int done = isDone() ? 1 : 0; + return String.format("task.Task | %d | %s", done, task); + } +} diff --git a/src/main/java/TaskList.java b/src/main/java/duke/task/TaskList.java similarity index 85% rename from src/main/java/TaskList.java rename to src/main/java/duke/task/TaskList.java index 8ae01d5e6f..f7dd228509 100644 --- a/src/main/java/TaskList.java +++ b/src/main/java/duke/task/TaskList.java @@ -1,11 +1,13 @@ -import java.time.format.DateTimeParseException; +package duke.task; + +import duke.DukeException; + import java.util.ArrayList; -import java.util.regex.PatternSyntaxException; public class TaskList { - private ArrayList tasks; + private final ArrayList tasks; public TaskList() { - this(new ArrayList()); + this(new ArrayList<>()); } public TaskList(ArrayList tasks) { this.tasks = tasks; @@ -22,7 +24,6 @@ public Task get(int index) throws DukeException { public int size() { return tasks.size(); } - // below is unfactored properly yet public void add(Task task) { this.tasks.add(task); } diff --git a/src/main/java/ToDo.java b/src/main/java/duke/task/ToDo.java similarity index 90% rename from src/main/java/ToDo.java rename to src/main/java/duke/task/ToDo.java index 77905f9ef7..3036c8e845 100644 --- a/src/main/java/ToDo.java +++ b/src/main/java/duke/task/ToDo.java @@ -1,3 +1,5 @@ +package duke.task; + import java.util.regex.PatternSyntaxException; public class ToDo extends Task { @@ -8,7 +10,7 @@ public ToDo(String cmd, boolean isDone) throws PatternSyntaxException, ArrayInde super(cmd, isDone); } /** - * Return the String for ToDo + * Return the String for duke.task.ToDo */ @Override public String toString() { diff --git a/src/main/java/Task.java b/src/main/java/task/Task.java similarity index 100% rename from src/main/java/Task.java rename to src/main/java/task/Task.java From d0d4ca24e62be8950d16ae3dab8d9469de7e9c60 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 26 Feb 2023 19:03:53 +0800 Subject: [PATCH 18/49] Removal of folders command and task as they were accidentally left there, all files under package folder duke --- src/main/java/command/AddTaskCommand.java | 57 ----------------------- src/main/java/command/Command.java | 21 --------- src/main/java/command/DeleteCommand.java | 23 --------- src/main/java/command/EchoCommand.java | 16 ------- src/main/java/command/ExitCommand.java | 16 ------- src/main/java/command/ListCommand.java | 16 ------- src/main/java/command/MarkCommand.java | 26 ----------- src/main/java/command/UnmarkCommand.java | 26 ----------- src/main/java/task/Task.java | 47 ------------------- 9 files changed, 248 deletions(-) delete mode 100644 src/main/java/command/AddTaskCommand.java delete mode 100644 src/main/java/command/Command.java delete mode 100644 src/main/java/command/DeleteCommand.java delete mode 100644 src/main/java/command/EchoCommand.java delete mode 100644 src/main/java/command/ExitCommand.java delete mode 100644 src/main/java/command/ListCommand.java delete mode 100644 src/main/java/command/MarkCommand.java delete mode 100644 src/main/java/command/UnmarkCommand.java delete mode 100644 src/main/java/task/Task.java diff --git a/src/main/java/command/AddTaskCommand.java b/src/main/java/command/AddTaskCommand.java deleted file mode 100644 index 86955f5ea0..0000000000 --- a/src/main/java/command/AddTaskCommand.java +++ /dev/null @@ -1,57 +0,0 @@ -import java.util.regex.PatternSyntaxException; - -public class AddTaskCommand extends Command { - private final String typeOfTask; - public AddTaskCommand(String command) { - super(command); - this.typeOfTask = command.split(" ")[0]; - } - @Override - public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - // do the commands purpose - // ui.print() the correct output - try{ - Task task = makeTask(); - tasks.add(task); - ui.print(String.format("Got it. I've added this task:\n\t%s\nNow you have %d tasks in the list.", task, tasks.size())); - storage.saveList(tasks); - } catch (RuntimeException wrongFormat) { - throw new DukeException("Please enter the command in the correct format:\n" + correctFormat()); - } - } - private Task makeTask() throws PatternSyntaxException, ArrayIndexOutOfBoundsException { - Task task = new Task(this.command); - String cmd = this.command.replace(typeOfTask + " ", ""); - switch (typeOfTask) { - case "todo": - task = new ToDo(cmd); - break; - case "deadline": - task = new Deadline(cmd); - break; - case "event": - task = new Event(cmd); - break; - } - return task; - } - public String correctFormat() { - String format = "THE TASK"; - switch(this.typeOfTask) { - case "todo": - format = "todo [TASK]"; - break; - case "deadline": - format = "deadline [TASK] /by yyyy-mm-ddThh:mm:ss"; - break; - case "event": - format = "event [TASK] /from TIME /to TIME"; - } - return format; - } - - @Override - public boolean isExit() { - return false; - } -} diff --git a/src/main/java/command/Command.java b/src/main/java/command/Command.java deleted file mode 100644 index fdac31c135..0000000000 --- a/src/main/java/command/Command.java +++ /dev/null @@ -1,21 +0,0 @@ -public class Command { - protected final String command; - public Command() { - this(""); - } - public Command(String command) { - this.command = command; - } - public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - // do the commands purpose - // ui.print() the correct output - // - } - // -1 is the standard if the command does not have min length -// public static String correctFormat() { -// return "this is the correct format of a command"; -// } - public boolean isExit() { - return false; - } -} diff --git a/src/main/java/command/DeleteCommand.java b/src/main/java/command/DeleteCommand.java deleted file mode 100644 index a865c6901a..0000000000 --- a/src/main/java/command/DeleteCommand.java +++ /dev/null @@ -1,23 +0,0 @@ -public class DeleteCommand extends Command { - private final String index; - public DeleteCommand(String index) { - super("delete"); - this.index = index; - } - @Override - public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - try { - int idx = Integer.parseInt(this.index); - String taskDescription = tasks.delete(idx); - ui.print(String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", - taskDescription, tasks.size())); - storage.saveList(tasks); - } catch (NumberFormatException notANumber) { - throw new DukeException("Please enter a valid number"); - } - } - @Override - public boolean isExit() { - return false; - } -} diff --git a/src/main/java/command/EchoCommand.java b/src/main/java/command/EchoCommand.java deleted file mode 100644 index 8d0555d73e..0000000000 --- a/src/main/java/command/EchoCommand.java +++ /dev/null @@ -1,16 +0,0 @@ -public class EchoCommand extends Command { - private final String input; - public EchoCommand(String input) { - this.input = input; - } - @Override - public void execute(TaskList tasks, Ui ui, Storage storage) { - // do the commands purpose - // ui.print() the correct output - ui.print(input); - } -// @Override -// public static String correctFormat() { -// return "[ANYTHING]"; -// } -} diff --git a/src/main/java/command/ExitCommand.java b/src/main/java/command/ExitCommand.java deleted file mode 100644 index 3bfd273b26..0000000000 --- a/src/main/java/command/ExitCommand.java +++ /dev/null @@ -1,16 +0,0 @@ -package duke.command -public class ExitCommand extends Command { - @Override - public void execute(TaskList tasks, Ui ui, Storage storage) { - storage.saveList(tasks); - ui.closeUi(); - } -// @Override -// public static String correctFormat() { -// return "bye"; -// } - @Override - public boolean isExit() { - return true; - } -} diff --git a/src/main/java/command/ListCommand.java b/src/main/java/command/ListCommand.java deleted file mode 100644 index 31685c0607..0000000000 --- a/src/main/java/command/ListCommand.java +++ /dev/null @@ -1,16 +0,0 @@ -public class ListCommand extends Command { - @Override - public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - // do the commands purpose - // ui.print() the correct output - String str = "List:"; - for (int i = 1; i <= tasks.size(); i++) { - str += String.format("\n\t%d. %s", i, tasks.get(i)); - } - ui.print(str); - } - @Override - public boolean isExit() { - return false; - } -} diff --git a/src/main/java/command/MarkCommand.java b/src/main/java/command/MarkCommand.java deleted file mode 100644 index ae34c579a5..0000000000 --- a/src/main/java/command/MarkCommand.java +++ /dev/null @@ -1,26 +0,0 @@ -public class MarkCommand extends Command { - private final String index; - public MarkCommand(String index) { - super("mark"); - this.index = index; - } - @Override - public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - if (tasks.size() == 0) { - throw new DukeException("You do not have any items in your list!"); - } - try { - int idx = Integer.parseInt(this.index); - tasks.get(idx).markAsDone(); - ui.print(String.format("Nice! I've marked this task as done: \n\t%s", - tasks.get(idx))); - storage.saveList(tasks); - } catch (NumberFormatException notANumber) { - throw new DukeException("Please enter a valid number"); - } - } - @Override - public boolean isExit() { - return false; - } -} diff --git a/src/main/java/command/UnmarkCommand.java b/src/main/java/command/UnmarkCommand.java deleted file mode 100644 index dfb6619028..0000000000 --- a/src/main/java/command/UnmarkCommand.java +++ /dev/null @@ -1,26 +0,0 @@ -public class UnmarkCommand extends Command { - private final String index; - public UnmarkCommand(String index) { - super("unmark"); - this.index = index; - } - @Override - public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - if (tasks.size() == 0) { - throw new DukeException("You do not have any items in your list!"); - } - try { - int idx = Integer.parseInt(this.index); - tasks.get(idx).unmarkAsDone(); - ui.print(String.format("Nice! I've marked this task as done: \n\t%s", - tasks.get(idx))); - storage.saveList(tasks); - } catch (NumberFormatException notANumber) { - throw new DukeException("Please enter a valid number"); - } - } - @Override - public boolean isExit() { - return false; - } -} diff --git a/src/main/java/task/Task.java b/src/main/java/task/Task.java deleted file mode 100644 index ccea9585e4..0000000000 --- a/src/main/java/task/Task.java +++ /dev/null @@ -1,47 +0,0 @@ -import java.util.regex.Pattern; -import java.util.regex.PatternSyntaxException; - -/** - * Task used to hold the string representation of tasks to be done - */ -public class Task { - private String task; - private boolean isDone; - Task(String task) throws PatternSyntaxException { - this(task, false); - } - Task(String task, boolean isDone) { - this.task = task; - this.isDone = isDone; - } - public boolean isDone() { - return this.isDone; - } - /** - * Sets task as done - */ - public void markAsDone() { - this.isDone = true; - } - /** - * Sets task as not done - */ - public void unmarkAsDone() { - this.isDone = false; - } - protected String getTask() { - return this.task; - } - /** - * Returns the string of the task - */ - @Override - public String toString() { - String markedAsDone = isDone ? "X" : " "; - return String.format("[%s] %s", markedAsDone, task); - } - public String saveString() { - int done = isDone() ? 1 : 0; - return String.format("Task | %d | %s", done, task); - } -} From f8585b1a8ca832be29280fb1fd269c65f590f373 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 26 Feb 2023 20:30:45 +0800 Subject: [PATCH 19/49] A-Gradle --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 885198fcfa..dc02fd5206 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'application' + id 'checkstyle' id 'com.github.johnrengelman.shadow' version '5.1.0' } @@ -28,7 +29,7 @@ test { } application { - mainClassName = "seedu.duke.Duke" + mainClassName = "duke.Duke" } shadowJar { From 22af41b9523380cd5683b4e077399252d0b32152 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sun, 26 Feb 2023 21:14:46 +0800 Subject: [PATCH 20/49] Added 2 JUnit tests for 2 classes Task and Todo --- src/main/java/duke/task/Task.java | 2 +- src/test/java/duke/task/TaskTest.java | 20 ++++++++++++++++++++ src/test/java/duke/task/ToDoTest.java | 25 +++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 src/test/java/duke/task/TaskTest.java create mode 100644 src/test/java/duke/task/ToDoTest.java diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java index 3fcb832d58..04bc73fe7e 100644 --- a/src/main/java/duke/task/Task.java +++ b/src/main/java/duke/task/Task.java @@ -43,6 +43,6 @@ public String toString() { } public String saveString() { int done = isDone() ? 1 : 0; - return String.format("task.Task | %d | %s", done, task); + return String.format("Task | %d | %s", done, task); } } diff --git a/src/test/java/duke/task/TaskTest.java b/src/test/java/duke/task/TaskTest.java new file mode 100644 index 0000000000..07dd6a6d6c --- /dev/null +++ b/src/test/java/duke/task/TaskTest.java @@ -0,0 +1,20 @@ +package duke.task; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class TaskTest { + @Test + public void getTask_alphabetsNumbers_success() { + String input = "abcdefADCDEF123456"; + Task task = new Task(input); + assertEquals(input, task.getTask()); + } + + @Test + public void saveString_markAsDone_success() { + Task task = new Task("the task"); + task.markAsDone(); + assertEquals("Task | 1 | the task", task.saveString()); + } +} diff --git a/src/test/java/duke/task/ToDoTest.java b/src/test/java/duke/task/ToDoTest.java new file mode 100644 index 0000000000..2c05b1c08e --- /dev/null +++ b/src/test/java/duke/task/ToDoTest.java @@ -0,0 +1,25 @@ +package duke.task; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; +public class ToDoTest { + @Test + public void testStringUnmarked() { + ToDo task = new ToDo("A123!@# task"); + assertEquals("[T][ ] A123!@# task", task.toString()); + assertEquals("T | 0 | A123!@# task", task.saveString()); + } + + @Test + public void testStringMarked() { + ToDo task1 = new ToDo("A123!@# task"); + task1.markAsDone(); + ToDo task2 = new ToDo("A123!@# task", true); + + assertEquals("[T][X] A123!@# task", task1.toString()); + assertEquals("T | 1 | A123!@# task", task1.saveString()); + + assertEquals("[T][X] A123!@# task", task2.toString()); + assertEquals("T | 1 | A123!@# task", task2.saveString()); + } +} From e136c71d55392a89ff07cbb3f2ff5e78dc88f980 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Tue, 28 Feb 2023 16:39:50 +0800 Subject: [PATCH 21/49] Level-9: Find --- src/main/java/duke/Duke.java | 3 ++- src/main/java/duke/Parser.java | 10 +++++--- .../java/duke/command/AddTaskCommand.java | 2 -- src/main/java/duke/command/EchoCommand.java | 2 -- src/main/java/duke/command/FindCommand.java | 25 +++++++++++++++++++ src/main/java/duke/command/ListCommand.java | 2 -- src/main/java/duke/task/TaskList.java | 12 +++++++++ 7 files changed, 46 insertions(+), 10 deletions(-) create mode 100644 src/main/java/duke/command/FindCommand.java diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index dc3d49bb94..77c1aca0a5 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -33,7 +33,8 @@ public class Duke { "event", "event THE TASK /from TIME /to TIME", "mark", "mark NUMBER", "unmark", "unmark NUMBER", - "delete", "delete NUMBER" + "delete", "delete NUMBER", + "find", "find WORDS" )); private Storage storage; diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index dbca10fba7..4c82e59035 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -7,13 +7,13 @@ import duke.command.UnmarkCommand; import duke.command.DeleteCommand; import duke.command.AddTaskCommand; - +import duke.command.FindCommand; import java.util.HashMap; import java.util.Map; public class Parser { - static final String VALIDCOMMANDS = "bye, list, mark, unmark, delete, todo, deadline, event"; + static final String VALIDCOMMANDS = "bye, list, mark, unmark, delete, todo, deadline, event, find"; static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( "list", "list", "bye", "bye", @@ -22,7 +22,8 @@ public class Parser { "event", "event THE TASK /from TIME /to TIME", "mark", "mark NUMBER", "unmark", "unmark NUMBER", - "delete", "delete NUMBER" + "delete", "delete NUMBER", + "find", "find WORDS" )); public static Command parse(String fullCommand) throws DukeException { String[] words = fullCommand.split(" "); @@ -49,6 +50,9 @@ public static Command parse(String fullCommand) throws DukeException { case "delete": cmd = new DeleteCommand(words[1]); break; + case "find": + cmd = new FindCommand(words[1]); + break; default: // for tasks cmd = new AddTaskCommand(fullCommand); } diff --git a/src/main/java/duke/command/AddTaskCommand.java b/src/main/java/duke/command/AddTaskCommand.java index fb31f72429..18af87d065 100644 --- a/src/main/java/duke/command/AddTaskCommand.java +++ b/src/main/java/duke/command/AddTaskCommand.java @@ -19,8 +19,6 @@ public AddTaskCommand(String command) { } @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - // do the commands purpose - // ui.print() the correct output try{ Task task = makeTask(); tasks.add(task); diff --git a/src/main/java/duke/command/EchoCommand.java b/src/main/java/duke/command/EchoCommand.java index ecec576c68..95d595647a 100644 --- a/src/main/java/duke/command/EchoCommand.java +++ b/src/main/java/duke/command/EchoCommand.java @@ -11,8 +11,6 @@ public EchoCommand(String input) { } @Override public void execute(TaskList tasks, Ui ui, Storage storage) { - // do the commands purpose - // ui.print() the correct output ui.print(input); } } diff --git a/src/main/java/duke/command/FindCommand.java b/src/main/java/duke/command/FindCommand.java new file mode 100644 index 0000000000..5f3360eaba --- /dev/null +++ b/src/main/java/duke/command/FindCommand.java @@ -0,0 +1,25 @@ +package duke.command; + +import duke.DukeException; +import duke.Storage; +import duke.Ui; +import duke.task.TaskList; + +public class FindCommand extends Command { + public FindCommand(String wordsToFind) { + super(wordsToFind); + } + @Override + public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { + TaskList tasksWithWords = tasks.find(this.command); + if (tasksWithWords.isEmpty()) { + throw new DukeException("There are no tasks found with words:\n" + this.command); + } + + String str = "List:"; + for (int i = 1; i <= tasksWithWords.size(); i++) { + str += String.format("\n\t%d. %s", i, tasksWithWords.get(i)); + } + ui.print(str); + } +} diff --git a/src/main/java/duke/command/ListCommand.java b/src/main/java/duke/command/ListCommand.java index efacc67c51..162dd08da5 100644 --- a/src/main/java/duke/command/ListCommand.java +++ b/src/main/java/duke/command/ListCommand.java @@ -8,8 +8,6 @@ public class ListCommand extends Command { @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { - // do the commands purpose - // ui.print() the correct output String str = "List:"; for (int i = 1; i <= tasks.size(); i++) { str += String.format("\n\t%d. %s", i, tasks.get(i)); diff --git a/src/main/java/duke/task/TaskList.java b/src/main/java/duke/task/TaskList.java index f7dd228509..516e680a17 100644 --- a/src/main/java/duke/task/TaskList.java +++ b/src/main/java/duke/task/TaskList.java @@ -24,6 +24,9 @@ public Task get(int index) throws DukeException { public int size() { return tasks.size(); } + public boolean isEmpty() { + return tasks.isEmpty(); + } public void add(Task task) { this.tasks.add(task); } @@ -44,4 +47,13 @@ public String delete(int index) throws DukeException { public ArrayList getTasks() { return this.tasks; } + public TaskList find(String words) { + ArrayList tasksWithWord = new ArrayList<>(); + for (Task task : tasks) { + if (task.getTask().contains(words)) { + tasksWithWord.add(task); + } + } + return new TaskList(tasksWithWord); + } } From 6d06ae3826b69b4575d88a528882454b7e2e9b01 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Tue, 28 Feb 2023 16:54:12 +0800 Subject: [PATCH 22/49] Used DEFAULTDIRECTORY for Storage, created JavaDocs for Command --- src/main/java/duke/Storage.java | 3 +++ src/main/java/duke/command/Command.java | 29 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index d7c7adc7c7..bc610b7afe 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -19,6 +19,9 @@ public class Storage { static final String HOMEDIRECTORY = System.getProperty("user.dir"); static final Path DEFAULTDIRECTORY = Paths.get(HOMEDIRECTORY, "SavedList.txt"); private final Path filePath; + public Storage() { + this.filePath = DEFAULTDIRECTORY; + } public Storage(Path filePath) { this.filePath = filePath; } diff --git a/src/main/java/duke/command/Command.java b/src/main/java/duke/command/Command.java index c98763788f..a4034e7717 100644 --- a/src/main/java/duke/command/Command.java +++ b/src/main/java/duke/command/Command.java @@ -5,19 +5,48 @@ import duke.Storage; import duke.task.TaskList; +/** + * Represents the basic Command, from which all other commands inherit from + */ public class Command { protected final String command; + + /** + * Returns a Command with empty String command + */ public Command() { this(""); } + + /** + * Returns a Command with the command stored + * + * @param command String of the command to be stored + */ public Command(String command) { this.command = command; } + + /** + * Executes the task of the command on TaskList, displays the output via Ui and saves the file via Storage + * If there arises any issues with the command, throws a DukeException with a helpful error message + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + * @throws DukeException + */ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { // do the commands purpose // ui.print() the correct output return; } + + /** + * Returns a boolean: true if the command is an ExitCommand, false otherwise + * + * @return boolean if the command is an ExitCommand + */ public boolean isExit() { return false; } From 5ed2d3dfdfda83bc44f59cd1d413b126f997ddd2 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Tue, 28 Feb 2023 17:27:26 +0800 Subject: [PATCH 23/49] Added JavaDoc comments for a few Commands, removed isExit() for most Commands as the default was already false and they did not need it except Command and ExitCommand --- .../java/duke/command/AddTaskCommand.java | 32 +++++++++++++++---- src/main/java/duke/command/Command.java | 7 ++-- src/main/java/duke/command/DeleteCommand.java | 24 +++++++++++--- src/main/java/duke/command/EchoCommand.java | 18 +++++++++++ src/main/java/duke/command/ExitCommand.java | 6 ++++ src/main/java/duke/command/ListCommand.java | 4 --- src/main/java/duke/command/MarkCommand.java | 4 --- src/main/java/duke/command/UnmarkCommand.java | 4 --- 8 files changed, 74 insertions(+), 25 deletions(-) diff --git a/src/main/java/duke/command/AddTaskCommand.java b/src/main/java/duke/command/AddTaskCommand.java index 18af87d065..aa9ab71492 100644 --- a/src/main/java/duke/command/AddTaskCommand.java +++ b/src/main/java/duke/command/AddTaskCommand.java @@ -11,12 +11,31 @@ import java.util.regex.PatternSyntaxException; +/** + * Represents the command to add the tasks + */ public class AddTaskCommand extends Command { private final String typeOfTask; + + /** + * Returns an AddTaskCommand with the command stored + * + * @param command String of the command to be stored + */ public AddTaskCommand(String command) { super(command); this.typeOfTask = command.split(" ")[0]; } + /** + * Creates the correct type of task and adds the correct task to TaskList + * Display the output via Ui showing the new task created + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + * @throws DukeException if the task is in the wrong format + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { try{ @@ -44,7 +63,13 @@ private Task makeTask() throws PatternSyntaxException, ArrayIndexOutOfBoundsExce } return task; } - public String correctFormat() { + + /** + * Returns the correct string format for the type of task that is stored in the AddTaskCommand + * + * @return String format + */ + private String correctFormat() { String format = "THE TASK"; switch(this.typeOfTask) { case "todo": @@ -58,9 +83,4 @@ public String correctFormat() { } return format; } - - @Override - public boolean isExit() { - return false; - } } diff --git a/src/main/java/duke/command/Command.java b/src/main/java/duke/command/Command.java index a4034e7717..f7f5b2eff7 100644 --- a/src/main/java/duke/command/Command.java +++ b/src/main/java/duke/command/Command.java @@ -28,13 +28,14 @@ public Command(String command) { } /** - * Executes the task of the command on TaskList, displays the output via Ui and saves the file via Storage - * If there arises any issues with the command, throws a DukeException with a helpful error message + * Executes the task of the command on TaskList + * Display the output via Ui + * Saves the file via Storage * * @param tasks TaskList of all the tasks * @param ui the user interface to interact with the user * @param storage used to save the TaskList to be retrieved in the future - * @throws DukeException + * @throws DukeException if an issue arises */ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { // do the commands purpose diff --git a/src/main/java/duke/command/DeleteCommand.java b/src/main/java/duke/command/DeleteCommand.java index d462657541..da7b4787d9 100644 --- a/src/main/java/duke/command/DeleteCommand.java +++ b/src/main/java/duke/command/DeleteCommand.java @@ -5,12 +5,31 @@ import duke.Storage; import duke.task.TaskList; +/** + * Represents the command to delete a particular task + */ public class DeleteCommand extends Command { private final String index; + + /** + * Returns a DeleteCommand with the index stored + * + * @param index Integer as String + */ public DeleteCommand(String index) { super("delete"); this.index = index; } + /** + * Deletes the task at the target index from TaskList + * Display the output via Ui showing the old task that was deleted + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + * @throws DukeException if the String index is not an integer OR if index is not in range of size of TaskList + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { try { @@ -23,8 +42,5 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException throw new DukeException("Please enter a valid number"); } } - @Override - public boolean isExit() { - return false; - } + } diff --git a/src/main/java/duke/command/EchoCommand.java b/src/main/java/duke/command/EchoCommand.java index 95d595647a..da250ece93 100644 --- a/src/main/java/duke/command/EchoCommand.java +++ b/src/main/java/duke/command/EchoCommand.java @@ -4,11 +4,29 @@ import duke.Storage; import duke.task.TaskList; +/** + * Represents the command to echo the input of the user + */ public class EchoCommand extends Command { private final String input; + + /** + * Returns an EchoCommand with the input stored + * + * @param input + */ public EchoCommand(String input) { this.input = input; } + /** + * Prints the input of the user + * Display the output via Ui showing the input of the user + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) { ui.print(input); diff --git a/src/main/java/duke/command/ExitCommand.java b/src/main/java/duke/command/ExitCommand.java index cc7abbec86..f5b061c601 100644 --- a/src/main/java/duke/command/ExitCommand.java +++ b/src/main/java/duke/command/ExitCommand.java @@ -10,6 +10,12 @@ public void execute(TaskList tasks, Ui ui, Storage storage) { storage.saveList(tasks); ui.closeUi(); } + + /** + * Returns true as this is an ExitCommand + * + * @return true + */ @Override public boolean isExit() { return true; diff --git a/src/main/java/duke/command/ListCommand.java b/src/main/java/duke/command/ListCommand.java index 162dd08da5..dad90ad377 100644 --- a/src/main/java/duke/command/ListCommand.java +++ b/src/main/java/duke/command/ListCommand.java @@ -14,8 +14,4 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException } ui.print(str); } - @Override - public boolean isExit() { - return false; - } } diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java index 4e6858a00b..dff77891f8 100644 --- a/src/main/java/duke/command/MarkCommand.java +++ b/src/main/java/duke/command/MarkCommand.java @@ -26,8 +26,4 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException throw new DukeException("Please enter a valid number"); } } - @Override - public boolean isExit() { - return false; - } } diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index abd41f564b..81c9134318 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -26,8 +26,4 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException throw new DukeException("Please enter a valid number"); } } - @Override - public boolean isExit() { - return false; - } } From 7b58d7c3fbdbd990268783226f7c3276d24ae847 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Wed, 1 Mar 2023 10:57:23 +0800 Subject: [PATCH 24/49] Added JavaDoc comments for all java classes and methods under command package --- .../java/duke/command/AddTaskCommand.java | 8 +++++++ src/main/java/duke/command/Command.java | 1 - src/main/java/duke/command/EchoCommand.java | 1 - src/main/java/duke/command/ExitCommand.java | 11 ++++++++++ src/main/java/duke/command/FindCommand.java | 18 ++++++++++++++++ src/main/java/duke/command/ListCommand.java | 13 ++++++++++++ src/main/java/duke/command/MarkCommand.java | 19 +++++++++++++++++ src/main/java/duke/command/UnmarkCommand.java | 21 ++++++++++++++++++- 8 files changed, 89 insertions(+), 3 deletions(-) diff --git a/src/main/java/duke/command/AddTaskCommand.java b/src/main/java/duke/command/AddTaskCommand.java index aa9ab71492..7ee4f2e6cc 100644 --- a/src/main/java/duke/command/AddTaskCommand.java +++ b/src/main/java/duke/command/AddTaskCommand.java @@ -47,6 +47,14 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException throw new DukeException("Please enter the command in the correct format:\n" + correctFormat()); } } + + /** + * Returns the correct Task depending on the command that was entered + * + * @return task Correct version of Task (ToDo, Event, Deadline) + * @throws PatternSyntaxException if the command was not formatted correctly + * @throws ArrayIndexOutOfBoundsException if the command was not formatted correctly + */ private Task makeTask() throws PatternSyntaxException, ArrayIndexOutOfBoundsException { Task task = new Task(this.command); String cmd = this.command.replace(typeOfTask + " ", ""); diff --git a/src/main/java/duke/command/Command.java b/src/main/java/duke/command/Command.java index f7f5b2eff7..48e5df4e46 100644 --- a/src/main/java/duke/command/Command.java +++ b/src/main/java/duke/command/Command.java @@ -39,7 +39,6 @@ public Command(String command) { */ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { // do the commands purpose - // ui.print() the correct output return; } diff --git a/src/main/java/duke/command/EchoCommand.java b/src/main/java/duke/command/EchoCommand.java index da250ece93..7d80e94a9a 100644 --- a/src/main/java/duke/command/EchoCommand.java +++ b/src/main/java/duke/command/EchoCommand.java @@ -21,7 +21,6 @@ public EchoCommand(String input) { /** * Prints the input of the user * Display the output via Ui showing the input of the user - * Saves the file via Storage * * @param tasks TaskList of all the tasks * @param ui the user interface to interact with the user diff --git a/src/main/java/duke/command/ExitCommand.java b/src/main/java/duke/command/ExitCommand.java index f5b061c601..703ea7e84a 100644 --- a/src/main/java/duke/command/ExitCommand.java +++ b/src/main/java/duke/command/ExitCommand.java @@ -4,7 +4,18 @@ import duke.Storage; import duke.task.TaskList; +/** + * Represents the command to exit the application + */ public class ExitCommand extends Command { + /** + * Close the Ui + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) { storage.saveList(tasks); diff --git a/src/main/java/duke/command/FindCommand.java b/src/main/java/duke/command/FindCommand.java index 5f3360eaba..03e5545bf8 100644 --- a/src/main/java/duke/command/FindCommand.java +++ b/src/main/java/duke/command/FindCommand.java @@ -5,10 +5,28 @@ import duke.Ui; import duke.task.TaskList; +/** + * Represents the command used to find tasks containing words or phrases + */ public class FindCommand extends Command { + /** + * Returns a FindCommand + * + * @param wordsToFind String for word(s) to store to search in TaskList + */ public FindCommand(String wordsToFind) { super(wordsToFind); } + /** + * Finds tasks in TaskList which contains the words stored + * Display the output via Ui showing the tasks found with the words + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + * @throws DukeException if the String index is not an integer OR if index is not in range of size of TaskList + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { TaskList tasksWithWords = tasks.find(this.command); diff --git a/src/main/java/duke/command/ListCommand.java b/src/main/java/duke/command/ListCommand.java index dad90ad377..5534923ff0 100644 --- a/src/main/java/duke/command/ListCommand.java +++ b/src/main/java/duke/command/ListCommand.java @@ -5,7 +5,20 @@ import duke.Storage; import duke.task.TaskList; +/** + * Represents the command to list out all the tasks + */ public class ListCommand extends Command { + /** + * Lists the tasks in TaskList + * Display the output via Ui showing the old task that was deleted + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + * @throws DukeException if the String index is not an integer OR if index is not in range of size of TaskList + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { String str = "List:"; diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java index dff77891f8..4f1f275ef4 100644 --- a/src/main/java/duke/command/MarkCommand.java +++ b/src/main/java/duke/command/MarkCommand.java @@ -5,12 +5,31 @@ import duke.Storage; import duke.task.TaskList; +/** + * Represents the command to mark a task as done at the index + */ public class MarkCommand extends Command { private final String index; + + /** + * Returns a MarkCommand with the index stored + * + * @param index Integer as String + */ public MarkCommand(String index) { super("mark"); this.index = index; } + /** + * Marks the task as done at the target index from TaskList + * Display the output via Ui showing the updated marked task + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + * @throws DukeException if the String index is not an integer OR if index is not in range of size of TaskList + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { if (tasks.size() == 0) { diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index 81c9134318..2688590ecb 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -5,12 +5,31 @@ import duke.Storage; import duke.task.TaskList; +/** + * Represents the command to unmark a task as done at the index + */ public class UnmarkCommand extends Command { private final String index; + + /** + * Returns an UnmarkCommand with the index stored + * + * @param index Integer as String + */ public UnmarkCommand(String index) { super("unmark"); this.index = index; } + /** + * Unmarks the task as done at the target index from TaskList + * Display the output via Ui showing the updated unmarked task + * Saves the file via Storage + * + * @param tasks TaskList of all the tasks + * @param ui the user interface to interact with the user + * @param storage used to save the TaskList to be retrieved in the future + * @throws DukeException if the String index is not an integer OR if index is not in range of size of TaskList + */ @Override public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException { if (tasks.size() == 0) { @@ -19,7 +38,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException try { int idx = Integer.parseInt(this.index); tasks.get(idx).unmarkAsDone(); - ui.print(String.format("Nice! I've marked this task as done: \n\t%s", + ui.print(String.format("Nice! I've unmarked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); } catch (NumberFormatException notANumber) { From 24c627e7bd3fa2f09abb1e09863ef3306c93082c Mon Sep 17 00:00:00 2001 From: benedict733 Date: Wed, 1 Mar 2023 11:07:21 +0800 Subject: [PATCH 25/49] JavaDoc comments for TaskList --- src/main/java/duke/task/TaskList.java | 60 +++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/main/java/duke/task/TaskList.java b/src/main/java/duke/task/TaskList.java index 516e680a17..a1d492fd8b 100644 --- a/src/main/java/duke/task/TaskList.java +++ b/src/main/java/duke/task/TaskList.java @@ -4,14 +4,35 @@ import java.util.ArrayList; +/** + * Represents the TaskList that is used to store the tasks using 1-based indexing + */ public class TaskList { private final ArrayList tasks; + + /** + * Returns a new TaskList without any tasks + */ public TaskList() { this(new ArrayList<>()); } + + /** + * Returns a new TaskList containing the Tasks in tasks + * + * @param tasks ArrayList of Task(s) + */ public TaskList(ArrayList tasks) { this.tasks = tasks; } + + /** + * Returns the Task at the index + * + * @param index int used to get the Task at index + * @return Task at the index + * @throws DukeException if index is not in range of size of TaskList + */ public Task get(int index) throws DukeException { try { return tasks.get(index - 1); @@ -21,15 +42,41 @@ public Task get(int index) throws DukeException { this.size())); } } + + /** + * Returns the size of the list + * + * @return size int size of list + */ public int size() { return tasks.size(); } + + /** + * Returns true if the TaskList has no items and false otherwise + * + * @return isEmpty boolean + */ public boolean isEmpty() { return tasks.isEmpty(); } + + /** + * Adds the task given into the TaskList + * + * @param task Task to be added + */ public void add(Task task) { this.tasks.add(task); } + + /** + * Deletes the Task at the index + * + * @param index int used to delete the Task at index + * @return String of the deleted Task toString() + * @throws DukeException if index is not in range of size of TaskList + */ public String delete(int index) throws DukeException { if (size() == 0) { throw new DukeException("You do not have any items in your list!"); @@ -44,9 +91,22 @@ public String delete(int index) throws DukeException { this.size())); } } + + /** + * Returns the ArrayList which stores the tasks + * + * @return ArrayList of Tasks + */ public ArrayList getTasks() { return this.tasks; } + + /** + * Returns a new TaskList with Tasks that contains the words provided + * + * @param words String words to be found in Tasks + * @return TaskList with only Tasks that contain the words + */ public TaskList find(String words) { ArrayList tasksWithWord = new ArrayList<>(); for (Task task : tasks) { From 4de276d9eb34e24206ab3cce2af00e998737edd1 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Wed, 1 Mar 2023 19:29:53 +0800 Subject: [PATCH 26/49] JavaDoc comments for all classes in package Task --- src/main/java/duke/Storage.java | 4 +-- src/main/java/duke/task/Deadline.java | 50 +++++++++++++++++++++++++-- src/main/java/duke/task/Event.java | 40 ++++++++++++++++++++- src/main/java/duke/task/Task.java | 39 +++++++++++++++++++-- src/main/java/duke/task/ToDo.java | 33 +++++++++++++++--- 5 files changed, 152 insertions(+), 14 deletions(-) diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index bc610b7afe..fc6de0f87f 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -1,9 +1,9 @@ package duke; -import duke.task.Task; -import duke.task.ToDo; import duke.task.Deadline; import duke.task.Event; +import duke.task.Task; +import duke.task.ToDo; import duke.task.TaskList; import java.io.BufferedWriter; diff --git a/src/main/java/duke/task/Deadline.java b/src/main/java/duke/task/Deadline.java index 8ffc435b4b..445ea9cdad 100644 --- a/src/main/java/duke/task/Deadline.java +++ b/src/main/java/duke/task/Deadline.java @@ -4,28 +4,72 @@ import java.time.format.DateTimeParseException; import java.util.regex.PatternSyntaxException; +/** + * Represents a Deadline task + */ public class Deadline extends Task { private final LocalDateTime deadline; - public Deadline(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { + + /** + * Returns a Deadline stored as not done + * + * @param cmd String with format deadline [TASK] /by yyyy-mm-ddThh:mm:ss + * @throws PatternSyntaxException if the command was not formatted correctly + * @throws ArrayIndexOutOfBoundsException if the command was not formatted correctly + * @throws DateTimeParseException if the deadline was not formatted correctly + */ + public Deadline(String cmd) + throws PatternSyntaxException, ArrayIndexOutOfBoundsException, DateTimeParseException { this(cmd,false); } - public Deadline(String cmd, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { + + /** + * Returns a Deadline with task and isDone stored + * + * @param cmd String with format deadline [TASK] /by yyyy-mm-ddThh:mm:ss + * @param isDone boolean of if the Deadline is done + * @throws PatternSyntaxException if the command was not formatted correctly + * @throws ArrayIndexOutOfBoundsException if the command was not formatted correctly + * @throws DateTimeParseException if the deadline was not formatted correctly + */ + public Deadline(String cmd, boolean isDone) + throws PatternSyntaxException, ArrayIndexOutOfBoundsException, DateTimeParseException { this(cmd.split(" /by ")[0], cmd.split(" /by ")[1], isDone); } + + /** + * Returns a Deadline with task, deadline and isDone stored + * + * @param task String of Deadline description to be stored + * @param deadlineString String of deadline in format yyyy-mm-ddThh:mm:ss + * @param isDone boolean of if the Deadline is done + * @throws PatternSyntaxException if the command was not formatted correctly + * @throws ArrayIndexOutOfBoundsException if the command was not formatted correctly + @throws DateTimeParseException if the deadline was not formatted correctly + */ public Deadline(String task, String deadlineString, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException, DateTimeParseException { super(task, isDone); this.deadline = LocalDateTime.parse(deadlineString); } + /** - * Return the String for Deadline + * Return the String of the Deadline formatted to be displayed + * + * @return String formatted String */ @Override public String toString() { return String.format("[D]%s (by:%s)", super.toString(), deadline); } + + /** + * Return the String of the Deadline used to be saved + * + * @return String formatted String + */ @Override public String saveString() { int done = isDone() ? 1 : 0; diff --git a/src/main/java/duke/task/Event.java b/src/main/java/duke/task/Event.java index 6f777ab6a5..d8ed603ad0 100644 --- a/src/main/java/duke/task/Event.java +++ b/src/main/java/duke/task/Event.java @@ -2,30 +2,68 @@ import java.util.regex.PatternSyntaxException; +/** + * Represents an Event task + */ public class Event extends Task { private final String from; private final String to; + + /** + * Returns an Event with task stored as not done + * + * @param cmd String with format event [TASK] /from [WHEN] /to [WHEN] + * @throws PatternSyntaxException if the command was not formatted correctly + * @throws ArrayIndexOutOfBoundsException if the command was not formatted correctly + */ public Event(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd, false); } + + /** + * Returns an Event with task and isDone stored + * + * @param cmd String with format event [TASK] /from [WHEN] /to [WHEN] + * @param isDone boolean of if the Event is done + * @throws PatternSyntaxException if the command was not formatted correctly + * @throws ArrayIndexOutOfBoundsException if the command was not formatted correctly + */ public Event(String cmd, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { this(cmd.split(" /")[0], cmd.split(" /")[1].replace("from ", ""), cmd.split(" /")[2].replace("to ", ""), isDone); } + + /** + * Returns an Event with the task, from, to and isDone stored immediately + * + * @param task String of Event description to be stored + * @param from String of when Event starts + * @param to String of when Event ends + * @param isDone boolean of if the Event is done + */ public Event(String task, String from, String to, boolean isDone) { super(task, isDone); this.from = from; this.to = to; } + /** - * Return the String for Event + * Return the String of the Event formatted to be displayed + * + * @return String formatted String */ @Override public String toString() { return String.format("[E]%s (from: %s to: %s)", super.toString(), from, to); } + + /** + * Return the String of the Event used to be saved + * + * @return String formatted String + */ @Override public String saveString() { int done = isDone() ? 1 : 0; diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java index 04bc73fe7e..299d61aef3 100644 --- a/src/main/java/duke/task/Task.java +++ b/src/main/java/duke/task/Task.java @@ -3,18 +3,37 @@ import java.util.regex.PatternSyntaxException; /** - * task.Task used to hold the string representation of tasks to be done + * Represents a Task, from which all other tasks inherit from */ public class Task { private final String task; private boolean isDone; - public Task(String task) throws PatternSyntaxException { + + /** + * Returns a Task with task stored that is not done + * + * @param task String of task to be stored + */ + public Task(String task) { this(task, false); } + + /** + * Returns a Task with task and isDone stored + * + * @param task String of task to be stored + * @param isDone boolean of if the task is done + */ public Task(String task, boolean isDone) { this.task = task; this.isDone = isDone; } + + /** + * Returns true if the task is done and false otherwise + * + * @return isDone boolean + */ public boolean isDone() { return this.isDone; } @@ -30,17 +49,31 @@ public void markAsDone() { public void unmarkAsDone() { this.isDone = false; } + + /** + * Returns the String task without any formatting + * + * @return task String + */ protected String getTask() { return this.task; } /** - * Returns the string of the task + * Returns the String of the task formatted to be displayed + * + * @return String formatted String */ @Override public String toString() { String markedAsDone = isDone ? "X" : " "; return String.format("[%s] %s", markedAsDone, task); } + + /** + * Returns the String of the task used to be saved + * + * @return String formatted String + */ public String saveString() { int done = isDone() ? 1 : 0; return String.format("Task | %d | %s", done, task); diff --git a/src/main/java/duke/task/ToDo.java b/src/main/java/duke/task/ToDo.java index 3036c8e845..a128bfa595 100644 --- a/src/main/java/duke/task/ToDo.java +++ b/src/main/java/duke/task/ToDo.java @@ -2,20 +2,43 @@ import java.util.regex.PatternSyntaxException; +/** + * Represents a ToDo task + */ public class ToDo extends Task { - public ToDo(String cmd) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { - super(cmd); + /** + * Returns a ToDo stored as not done + * + * @param task String of ToDo to be stored + */ + public ToDo(String task) { + super(task); } - public ToDo(String cmd, boolean isDone) throws PatternSyntaxException, ArrayIndexOutOfBoundsException { - super(cmd, isDone); + + /** + * Returns a ToDo with task and isDone stored + * + * @param task String of ToDo to be stored + * @param isDone boolean of if the ToDo is done + */ + public ToDo(String task, boolean isDone) { + super(task, isDone); } /** - * Return the String for duke.task.ToDo + * Return the String of the ToDo formatted to be displayed + * + * @return String formatted String */ @Override public String toString() { return String.format("[T]%s", super.toString()); } + + /** + * Return the String of the ToDo used to be saved + * + * @return String formatted String + */ @Override public String saveString() { int done = isDone() ? 1 : 0; From 79e3be8a74678b9765ea559b9a75f90755c61edc Mon Sep 17 00:00:00 2001 From: benedict733 Date: Wed, 1 Mar 2023 19:32:19 +0800 Subject: [PATCH 27/49] JavaDoc comments for Exceptions --- src/main/java/duke/DukeException.java | 5 +++++ src/main/java/duke/WrongTaskFormatException.java | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/src/main/java/duke/DukeException.java b/src/main/java/duke/DukeException.java index 60d5270897..a25cca3873 100644 --- a/src/main/java/duke/DukeException.java +++ b/src/main/java/duke/DukeException.java @@ -4,6 +4,11 @@ * Exception thrown from Duke's code. */ public class DukeException extends Exception { + /** + * Returns a DukeException with errorMessage stored + * + * @param errorMessage String of the error message + */ public DukeException(String errorMessage) { super(errorMessage); } diff --git a/src/main/java/duke/WrongTaskFormatException.java b/src/main/java/duke/WrongTaskFormatException.java index 18a6ad9904..3876c902c8 100644 --- a/src/main/java/duke/WrongTaskFormatException.java +++ b/src/main/java/duke/WrongTaskFormatException.java @@ -1,6 +1,14 @@ package duke; +/** + * Exception thrown if any of the Strings input to Tasks are in the wrong format + */ public class WrongTaskFormatException extends Exception { + /** + * Returns a WrongTaskFormatException with errorMessage stored + * + * @param errorMessage String of the error message + */ public WrongTaskFormatException(String errorMessage) { super(errorMessage); } From 93b73b1f2dba00f3d5bafd9784e6a45e4c618b39 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Wed, 1 Mar 2023 20:19:42 +0800 Subject: [PATCH 28/49] JavaDoc comments for the rest of the methods, completing all JavaDoc comments for all files --- src/main/java/duke/Duke.java | 47 ++++++++++-------------- src/main/java/duke/Parser.java | 13 ++++++- src/main/java/duke/Storage.java | 54 ++++++++++++++++++++++++++-- src/main/java/duke/Ui.java | 64 ++++++++++++++++++++++++++++++--- 4 files changed, 143 insertions(+), 35 deletions(-) diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index 77c1aca0a5..143e1d6ab9 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -8,12 +8,10 @@ import java.nio.file.Path; import java.nio.file.Paths; +/** + * The class that encompasses the main logic of running Duke, the name of the todo list + */ public class Duke { - /** - * Minimum length of a string command is given by - * The length of the command +2 (for whitespace and - * at least 1 letter for the command) - */ static final String HOMEDIRECTORY = System.getProperty("user.dir"); static final Path DUKELISTDIRECTORY = Paths.get(HOMEDIRECTORY, "SavedList.txt"); static final HashMap MINVALIDLENGTH = new HashMap<>(Map.of( @@ -40,6 +38,12 @@ public class Duke { private Storage storage; private TaskList tasks; private Ui ui; + + /** + * Returns Duke with the Path specified as filePath and loads the stored tasks + * + * @param filePath Path of where the tasks are stored + */ public Duke(Path filePath) { ui = new Ui(); storage = new Storage(filePath); @@ -50,6 +54,10 @@ public Duke(Path filePath) { tasks = new TaskList(); } } + + /** + * Runs Duke, allowing the user to use interact with Duke + */ public void run() { ui.greet(); boolean isExit = false; @@ -68,30 +76,13 @@ public void run() { } } + /** + * Creates Duke with the specified directory where the tasks are stored + * In this case using the default DUKELISTDIRECTORY + * + * @param args String[] of any input + */ public static void main(String[] args) { new Duke(DUKELISTDIRECTORY).run(); } - /*private static void main(String[] args) { - Scanner sc = new Scanner(System.in); - System.out.println(greet()); - - // arr => needs to be updated w old list - ArrayList arr = new ArrayList<>(); - try { - arr = readSavedFile(); - } catch (IOException unknown) { - print(unknown + "\nUnsure of error"); - } - - while (sc.hasNext()) { - String cmd = sc.nextLine(); - if (cmd.equals("bye")) { - exit(); - break; - } - execute(cmd, arr); -// echo(sc.nextLine()); - } - sc.close(); - }*/ } diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index 4c82e59035..fac3c3e80e 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -12,8 +12,11 @@ import java.util.HashMap; import java.util.Map; +/** + * The Parser class that is used to take in and parse commands to be used for the correct purpose + */ public class Parser { - static final String VALIDCOMMANDS = "bye, list, mark, unmark, delete, todo, deadline, event, find"; + static final String VALIDCOMMANDS = "list, bye, todo, deadline, event, mark, unmark, delete, find"; static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( "list", "list", "bye", "bye", @@ -25,6 +28,14 @@ public class Parser { "delete", "delete NUMBER", "find", "find WORDS" )); + + /** + * Returns the correct Command given by the string input + * + * @param fullCommand String containing the input of the full command + * @return cmd the correct type of Command + * @throws DukeException if the command does not exist or is in the wrong format + */ public static Command parse(String fullCommand) throws DukeException { String[] words = fullCommand.split(" "); if (!CORRECTFORMAT.containsKey(words[0])) { diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index fc6de0f87f..2282d41415 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -15,16 +15,36 @@ import java.util.List; import java.io.IOException; +/** + * The Storage class that is used to store and read the list of Task(s) + */ public class Storage { static final String HOMEDIRECTORY = System.getProperty("user.dir"); static final Path DEFAULTDIRECTORY = Paths.get(HOMEDIRECTORY, "SavedList.txt"); private final Path filePath; + + /** + * Returns a Storage object with the filePath as the default Path + */ public Storage() { this.filePath = DEFAULTDIRECTORY; } + + /** + * Returns a Storage object with filePath stored as the Path + * + * @param filePath Path of the stored list + */ public Storage(Path filePath) { this.filePath = filePath; } + + /** + * Returns an ArrayList of Task(s) loaded from the filePath + * + * @return ArrayList list of Task(s) + * @throws DukeException if unable to read the file or the format of a line in the file is wrong + */ public ArrayList load() throws DukeException { try { return this.readSavedFile(this.filePath); @@ -32,6 +52,15 @@ public ArrayList load() throws DukeException { throw new DukeException("File is corrupted."); } } + + /** + * Returns an ArrayList of Task(s) loaded from the Path given + * + * @param path Path directory of stored list of task(s) + * @return ArrayList list of Task(s) + * @throws IOException if unable to read the file + * @throws DukeException if the format of a line in the file is wrong + */ public ArrayList readSavedFile(Path path) throws IOException, DukeException { try { Files.createFile(path); @@ -49,6 +78,14 @@ public ArrayList readSavedFile(Path path) throws IOException, DukeExceptio return arr; } } + + /** + * Reads the line taskDescription and formats it into the correct type of Task + * + * @param taskDescription String description of the task + * @return Task correct type of Task with information + * @throws WrongTaskFormatException if the format of the taskDescription is wrong + */ public Task readLineToTask(String taskDescription) throws WrongTaskFormatException { String[] items = taskDescription.split(" \\| "); boolean isDone = getIsDone(items[1]); @@ -69,12 +106,25 @@ public Task readLineToTask(String taskDescription) throws WrongTaskFormatExcepti } return task; } + + /** + * Returns true if the doneString is 1 and false otherwise (0) + * + * @param doneString String + * @return boolean + */ public boolean getIsDone(String doneString) { return doneString.equals("1"); } + + /** + * Saves the TaskList into the filePath + * + * @param tasks TaskList list of Tasks + */ public void saveList(TaskList tasks) { try { - // no need to deleteIfExists as BufferedWritter automatically clears all prev input + // no need to deleteIfExists as BufferedWriter automatically clears all prev input BufferedWriter fileWriter = Files.newBufferedWriter(this.filePath); for (Task task : tasks.getTasks()) { fileWriter.write(task.saveString()); @@ -82,7 +132,7 @@ public void saveList(TaskList tasks) { } fileWriter.close(); } catch (IOException e) { - // unsure of what cases would throw IOException under deleteIfExists + // unsure of what cases would throw IOException under write() } } } diff --git a/src/main/java/duke/Ui.java b/src/main/java/duke/Ui.java index 0980b7c9bf..22fb255bd9 100644 --- a/src/main/java/duke/Ui.java +++ b/src/main/java/duke/Ui.java @@ -2,32 +2,70 @@ import java.util.Scanner; +/** + * The Ui class that is used to interact with the user for input and output + */ public class Ui { private static final String LINE = "~~~~~~~~~~~~~~~~~~~~"; private final Scanner sc; + + /** + * Returns a Ui object with the input as the command line + */ public Ui() { this.sc = new Scanner(System.in); } + + /** + * Prints error if there is an issue with loading + */ public void showLoadingError() { // error in reading the file print("error"); } + + /** + * Prints the String given + * + * @param toBePrinted String + */ public void print(String toBePrinted) { System.out.println(toBePrinted); } + + /** + * Prints the error message given in the format for errors + * + * @param errorMessage String + */ public void showError(String errorMessage) { print(errorMsg(errorMessage)); } + + /** + * Returns a String that formats the error message given + * + * @param error String + * @return String formatted error message + */ public String errorMsg(String error) { return String.format("☹ OOPS!!!\n%s :-(", error); } /** - * Used in Level-1 to echo + * Echoes the input, printing the command that was input + * + * @param command String */ - public void echo(String cmd) { - System.out.println(cmd); + public void echo(String command) { + System.out.println(command); } - public String ownName() { + + /** + * Returns a String of the name DUKE formatted + * + * @return name String + */ + private String ownName() { String name = " ____ _ \n" + "| _ \\ _ _| | _____ \n" + "| | | | | | | |/ / _ \\\n" @@ -35,15 +73,33 @@ public String ownName() { + "|____/ \\__,_|_|\\_\\___|\n"; return name; } + + /** + * Prints the greeting message for Duke + */ public void greet() { print(String.format("Hello I am:\n%sWhat can I do for you?", ownName())); } + + /** + * Prints a line used to separate the inputs and outputs + */ public void showLine() { System.out.println(LINE); } + + /** + * Reads the command in the line and returns it as a String + * + * @return String + */ public String readCommand() { return this.sc.nextLine(); } + + /** + * Closes the scanner as it is good practice + */ public void closeUi() { this.sc.close(); } From e956122b9457f5e9028f8be91c6ad54ac964afb0 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 2 Mar 2023 19:46:45 +0800 Subject: [PATCH 29/49] Updated classes in package Duke to have correct Coding Standard --- src/main/java/duke/Duke.java | 33 +++-------------- src/main/java/duke/Parser.java | 64 ++++++++++++++++----------------- src/main/java/duke/Storage.java | 6 ++-- 3 files changed, 40 insertions(+), 63 deletions(-) diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index 77c1aca0a5..7e837a661e 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -14,9 +14,9 @@ public class Duke { * The length of the command +2 (for whitespace and * at least 1 letter for the command) */ - static final String HOMEDIRECTORY = System.getProperty("user.dir"); - static final Path DUKELISTDIRECTORY = Paths.get(HOMEDIRECTORY, "SavedList.txt"); - static final HashMap MINVALIDLENGTH = new HashMap<>(Map.of( + static final String HOME_DIRECTORY = System.getProperty("user.dir"); + static final Path DUKE_LIST_DIRECTORY = Paths.get(HOME_DIRECTORY, "SavedList.txt"); + static final HashMap MIN_VALID_LENGTH = new HashMap<>(Map.of( "todo", 6, "deadline", 10, "event", 7, @@ -27,7 +27,7 @@ public class Duke { /** * Correct formatting of commands given that the name of the command is correct */ - static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( + static final HashMap CORRECT_FORMAT = new HashMap<>(Map.of( "todo", "todo THE TASK", "deadline", "deadline THE TASK /by yyyy-mm-ddThh:mm:ss", "event", "event THE TASK /from TIME /to TIME", @@ -69,29 +69,6 @@ public void run() { } public static void main(String[] args) { - new Duke(DUKELISTDIRECTORY).run(); + new Duke(DUKE_LIST_DIRECTORY).run(); } - /*private static void main(String[] args) { - Scanner sc = new Scanner(System.in); - System.out.println(greet()); - - // arr => needs to be updated w old list - ArrayList arr = new ArrayList<>(); - try { - arr = readSavedFile(); - } catch (IOException unknown) { - print(unknown + "\nUnsure of error"); - } - - while (sc.hasNext()) { - String cmd = sc.nextLine(); - if (cmd.equals("bye")) { - exit(); - break; - } - execute(cmd, arr); -// echo(sc.nextLine()); - } - sc.close(); - }*/ } diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index 4c82e59035..fd3593a1b8 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -1,20 +1,20 @@ package duke; import duke.command.Command; +import duke.command.AddTaskCommand; +import duke.command.DeleteCommand; import duke.command.ExitCommand; +import duke.command.FindCommand; import duke.command.ListCommand; import duke.command.MarkCommand; import duke.command.UnmarkCommand; -import duke.command.DeleteCommand; -import duke.command.AddTaskCommand; -import duke.command.FindCommand; -import java.util.HashMap; import java.util.Map; +import java.util.HashMap; public class Parser { - static final String VALIDCOMMANDS = "bye, list, mark, unmark, delete, todo, deadline, event, find"; - static final HashMap CORRECTFORMAT = new HashMap<>(Map.of( + static final String VALID_COMMANDS = "bye, list, mark, unmark, delete, todo, deadline, event, find"; + static final HashMap CORRECT_FORMAT = new HashMap<>(Map.of( "list", "list", "bye", "bye", "todo", "todo THE TASK", @@ -27,38 +27,38 @@ public class Parser { )); public static Command parse(String fullCommand) throws DukeException { String[] words = fullCommand.split(" "); - if (!CORRECTFORMAT.containsKey(words[0])) { - String noValid = "I'm sorry, but I don't know what that means. My valid commands are:\n"; - noValid += VALIDCOMMANDS; - throw new DukeException(noValid); + if (!CORRECT_FORMAT.containsKey(words[0])) { + String notValid = "I'm sorry, but I don't know what that means. My valid commands are:\n"; + notValid += VALID_COMMANDS; + throw new DukeException(notValid); } Command cmd = new Command(); try { switch (words[0]) { - case "bye": - cmd = new ExitCommand(); - break; - case "list": - cmd = new ListCommand(); - break; - case "mark": - cmd = new MarkCommand(words[1]); - break; - case "unmark": - cmd = new UnmarkCommand(words[1]); - break; - case "delete": - cmd = new DeleteCommand(words[1]); - break; - case "find": - cmd = new FindCommand(words[1]); - break; - default: // for tasks - cmd = new AddTaskCommand(fullCommand); + case "bye": + cmd = new ExitCommand(); + break; + case "list": + cmd = new ListCommand(); + break; + case "mark": + cmd = new MarkCommand(words[1]); + break; + case "unmark": + cmd = new UnmarkCommand(words[1]); + break; + case "delete": + cmd = new DeleteCommand(words[1]); + break; + case "find": + cmd = new FindCommand(words[1]); + break; + default: // for tasks + cmd = new AddTaskCommand(fullCommand); } } catch (Exception e) { - throw new DukeException("Please enter in the correct format:\n" + - CORRECTFORMAT.get(words[0])); + throw new DukeException("Please enter in the correct format:\n" + + CORRECT_FORMAT.get(words[0])); } return cmd; } diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index d7c7adc7c7..7c9f6688bd 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -11,13 +11,13 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; -import java.util.ArrayList; import java.util.List; +import java.util.ArrayList; import java.io.IOException; public class Storage { - static final String HOMEDIRECTORY = System.getProperty("user.dir"); - static final Path DEFAULTDIRECTORY = Paths.get(HOMEDIRECTORY, "SavedList.txt"); + static final String HOME_DIRECTORY = System.getProperty("user.dir"); + static final Path DEFAULT_DIRECTORY = Paths.get(HOME_DIRECTORY, "SavedList.txt"); private final Path filePath; public Storage(Path filePath) { this.filePath = filePath; From cb3b24d7e3accacb62747af405823787412cf794 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 2 Mar 2023 19:52:56 +0800 Subject: [PATCH 30/49] Updated Coding Standard for files in package duke.command and any files affected --- src/main/java/duke/Storage.java | 2 +- src/main/java/duke/command/MarkCommand.java | 2 +- src/main/java/duke/command/UnmarkCommand.java | 2 +- src/main/java/duke/task/Task.java | 4 ++-- src/test/java/duke/task/TaskTest.java | 2 +- src/test/java/duke/task/ToDoTest.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index 7c9f6688bd..8ce054b96f 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -7,13 +7,13 @@ import duke.task.TaskList; import java.io.BufferedWriter; +import java.io.IOException; import java.nio.file.FileAlreadyExistsException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.ArrayList; -import java.io.IOException; public class Storage { static final String HOME_DIRECTORY = System.getProperty("user.dir"); diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java index 4e6858a00b..0116c37162 100644 --- a/src/main/java/duke/command/MarkCommand.java +++ b/src/main/java/duke/command/MarkCommand.java @@ -18,7 +18,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException } try { int idx = Integer.parseInt(this.index); - tasks.get(idx).markAsDone(); + tasks.get(idx).setDone(); ui.print(String.format("Nice! I've marked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index abd41f564b..e4ca7ec1a4 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -18,7 +18,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException } try { int idx = Integer.parseInt(this.index); - tasks.get(idx).unmarkAsDone(); + tasks.get(idx).setNotDone(); ui.print(String.format("Nice! I've marked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java index 04bc73fe7e..fbed45d020 100644 --- a/src/main/java/duke/task/Task.java +++ b/src/main/java/duke/task/Task.java @@ -21,13 +21,13 @@ public boolean isDone() { /** * Sets task as done */ - public void markAsDone() { + public void setDone() { this.isDone = true; } /** * Sets task as not done */ - public void unmarkAsDone() { + public void setNotDone() { this.isDone = false; } protected String getTask() { diff --git a/src/test/java/duke/task/TaskTest.java b/src/test/java/duke/task/TaskTest.java index 07dd6a6d6c..95ec2f9066 100644 --- a/src/test/java/duke/task/TaskTest.java +++ b/src/test/java/duke/task/TaskTest.java @@ -14,7 +14,7 @@ public void getTask_alphabetsNumbers_success() { @Test public void saveString_markAsDone_success() { Task task = new Task("the task"); - task.markAsDone(); + task.setDone(); assertEquals("Task | 1 | the task", task.saveString()); } } diff --git a/src/test/java/duke/task/ToDoTest.java b/src/test/java/duke/task/ToDoTest.java index 2c05b1c08e..aa607d69a6 100644 --- a/src/test/java/duke/task/ToDoTest.java +++ b/src/test/java/duke/task/ToDoTest.java @@ -13,7 +13,7 @@ public void testStringUnmarked() { @Test public void testStringMarked() { ToDo task1 = new ToDo("A123!@# task"); - task1.markAsDone(); + task1.setDone(); ToDo task2 = new ToDo("A123!@# task", true); assertEquals("[T][X] A123!@# task", task1.toString()); From 7ebcee0cdad4d0202e4d9908d866b6383bc229af Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 2 Mar 2023 19:53:52 +0800 Subject: [PATCH 31/49] Revert "Updated Coding Standard for files in package duke.command and any files affected" This reverts commit cb3b24d7e3accacb62747af405823787412cf794. --- src/main/java/duke/Storage.java | 2 +- src/main/java/duke/command/MarkCommand.java | 2 +- src/main/java/duke/command/UnmarkCommand.java | 2 +- src/main/java/duke/task/Task.java | 4 ++-- src/test/java/duke/task/TaskTest.java | 2 +- src/test/java/duke/task/ToDoTest.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index 8ce054b96f..7c9f6688bd 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -7,13 +7,13 @@ import duke.task.TaskList; import java.io.BufferedWriter; -import java.io.IOException; import java.nio.file.FileAlreadyExistsException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.ArrayList; +import java.io.IOException; public class Storage { static final String HOME_DIRECTORY = System.getProperty("user.dir"); diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java index 0116c37162..4e6858a00b 100644 --- a/src/main/java/duke/command/MarkCommand.java +++ b/src/main/java/duke/command/MarkCommand.java @@ -18,7 +18,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException } try { int idx = Integer.parseInt(this.index); - tasks.get(idx).setDone(); + tasks.get(idx).markAsDone(); ui.print(String.format("Nice! I've marked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index e4ca7ec1a4..abd41f564b 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -18,7 +18,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException } try { int idx = Integer.parseInt(this.index); - tasks.get(idx).setNotDone(); + tasks.get(idx).unmarkAsDone(); ui.print(String.format("Nice! I've marked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java index fbed45d020..04bc73fe7e 100644 --- a/src/main/java/duke/task/Task.java +++ b/src/main/java/duke/task/Task.java @@ -21,13 +21,13 @@ public boolean isDone() { /** * Sets task as done */ - public void setDone() { + public void markAsDone() { this.isDone = true; } /** * Sets task as not done */ - public void setNotDone() { + public void unmarkAsDone() { this.isDone = false; } protected String getTask() { diff --git a/src/test/java/duke/task/TaskTest.java b/src/test/java/duke/task/TaskTest.java index 95ec2f9066..07dd6a6d6c 100644 --- a/src/test/java/duke/task/TaskTest.java +++ b/src/test/java/duke/task/TaskTest.java @@ -14,7 +14,7 @@ public void getTask_alphabetsNumbers_success() { @Test public void saveString_markAsDone_success() { Task task = new Task("the task"); - task.setDone(); + task.markAsDone(); assertEquals("Task | 1 | the task", task.saveString()); } } diff --git a/src/test/java/duke/task/ToDoTest.java b/src/test/java/duke/task/ToDoTest.java index aa607d69a6..2c05b1c08e 100644 --- a/src/test/java/duke/task/ToDoTest.java +++ b/src/test/java/duke/task/ToDoTest.java @@ -13,7 +13,7 @@ public void testStringUnmarked() { @Test public void testStringMarked() { ToDo task1 = new ToDo("A123!@# task"); - task1.setDone(); + task1.markAsDone(); ToDo task2 = new ToDo("A123!@# task", true); assertEquals("[T][X] A123!@# task", task1.toString()); From 61313be766fbc8dec4187841842dd06367798b26 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 2 Mar 2023 19:55:54 +0800 Subject: [PATCH 32/49] Update files in duke.task and those affected for Coding Standard --- src/main/java/duke/Storage.java | 2 +- src/main/java/duke/command/MarkCommand.java | 2 +- src/main/java/duke/command/UnmarkCommand.java | 2 +- src/main/java/duke/task/Task.java | 4 ++-- src/test/java/duke/task/TaskTest.java | 2 +- src/test/java/duke/task/ToDoTest.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index 7c9f6688bd..8ce054b96f 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -7,13 +7,13 @@ import duke.task.TaskList; import java.io.BufferedWriter; +import java.io.IOException; import java.nio.file.FileAlreadyExistsException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.ArrayList; -import java.io.IOException; public class Storage { static final String HOME_DIRECTORY = System.getProperty("user.dir"); diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java index 4e6858a00b..0116c37162 100644 --- a/src/main/java/duke/command/MarkCommand.java +++ b/src/main/java/duke/command/MarkCommand.java @@ -18,7 +18,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException } try { int idx = Integer.parseInt(this.index); - tasks.get(idx).markAsDone(); + tasks.get(idx).setDone(); ui.print(String.format("Nice! I've marked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index abd41f564b..e4ca7ec1a4 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -18,7 +18,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException } try { int idx = Integer.parseInt(this.index); - tasks.get(idx).unmarkAsDone(); + tasks.get(idx).setNotDone(); ui.print(String.format("Nice! I've marked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java index 04bc73fe7e..fbed45d020 100644 --- a/src/main/java/duke/task/Task.java +++ b/src/main/java/duke/task/Task.java @@ -21,13 +21,13 @@ public boolean isDone() { /** * Sets task as done */ - public void markAsDone() { + public void setDone() { this.isDone = true; } /** * Sets task as not done */ - public void unmarkAsDone() { + public void setNotDone() { this.isDone = false; } protected String getTask() { diff --git a/src/test/java/duke/task/TaskTest.java b/src/test/java/duke/task/TaskTest.java index 07dd6a6d6c..95ec2f9066 100644 --- a/src/test/java/duke/task/TaskTest.java +++ b/src/test/java/duke/task/TaskTest.java @@ -14,7 +14,7 @@ public void getTask_alphabetsNumbers_success() { @Test public void saveString_markAsDone_success() { Task task = new Task("the task"); - task.markAsDone(); + task.setDone(); assertEquals("Task | 1 | the task", task.saveString()); } } diff --git a/src/test/java/duke/task/ToDoTest.java b/src/test/java/duke/task/ToDoTest.java index 2c05b1c08e..aa607d69a6 100644 --- a/src/test/java/duke/task/ToDoTest.java +++ b/src/test/java/duke/task/ToDoTest.java @@ -13,7 +13,7 @@ public void testStringUnmarked() { @Test public void testStringMarked() { ToDo task1 = new ToDo("A123!@# task"); - task1.markAsDone(); + task1.setDone(); ToDo task2 = new ToDo("A123!@# task", true); assertEquals("[T][X] A123!@# task", task1.toString()); From 03ed7a0bf43ad2c65e471420b586298b9228b627 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Thu, 2 Mar 2023 19:59:34 +0800 Subject: [PATCH 33/49] Update files in duke.command to follow Coding Standards --- .../java/duke/command/AddTaskCommand.java | 36 +++++++++---------- src/main/java/duke/command/DeleteCommand.java | 6 ++-- src/main/java/duke/command/UnmarkCommand.java | 2 +- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/main/java/duke/command/AddTaskCommand.java b/src/main/java/duke/command/AddTaskCommand.java index 18af87d065..3987c6bc99 100644 --- a/src/main/java/duke/command/AddTaskCommand.java +++ b/src/main/java/duke/command/AddTaskCommand.java @@ -6,8 +6,8 @@ import duke.task.TaskList; import duke.task.Task; import duke.task.ToDo; -import duke.task.Event; import duke.task.Deadline; +import duke.task.Event; import java.util.regex.PatternSyntaxException; @@ -32,29 +32,29 @@ private Task makeTask() throws PatternSyntaxException, ArrayIndexOutOfBoundsExce Task task = new Task(this.command); String cmd = this.command.replace(typeOfTask + " ", ""); switch (typeOfTask) { - case "todo": - task = new ToDo(cmd); - break; - case "deadline": - task = new Deadline(cmd); - break; - case "event": - task = new Event(cmd); - break; + case "todo": + task = new ToDo(cmd); + break; + case "deadline": + task = new Deadline(cmd); + break; + case "event": + task = new Event(cmd); + break; } return task; } public String correctFormat() { String format = "THE TASK"; switch(this.typeOfTask) { - case "todo": - format = "todo [TASK]"; - break; - case "deadline": - format = "deadline [TASK] /by yyyy-mm-ddThh:mm:ss"; - break; - case "event": - format = "event [TASK] /from TIME /to TIME"; + case "todo": + format = "todo [TASK]"; + break; + case "deadline": + format = "deadline [TASK] /by yyyy-mm-ddThh:mm:ss"; + break; + case "event": + format = "event [TASK] /from TIME /to TIME"; } return format; } diff --git a/src/main/java/duke/command/DeleteCommand.java b/src/main/java/duke/command/DeleteCommand.java index d462657541..d12b5d24a3 100644 --- a/src/main/java/duke/command/DeleteCommand.java +++ b/src/main/java/duke/command/DeleteCommand.java @@ -16,8 +16,10 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException try { int idx = Integer.parseInt(this.index); String taskDescription = tasks.delete(idx); - ui.print(String.format("Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", - taskDescription, tasks.size())); + ui.print(String.format( + "Noted, I've removed this task: \n\t%s\nNow you have %d tasks in this list.", + taskDescription, + tasks.size())); storage.saveList(tasks); } catch (NumberFormatException notANumber) { throw new DukeException("Please enter a valid number"); diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index e4ca7ec1a4..b18c04852b 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -19,7 +19,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException try { int idx = Integer.parseInt(this.index); tasks.get(idx).setNotDone(); - ui.print(String.format("Nice! I've marked this task as done: \n\t%s", + ui.print(String.format("Nice! I've unmarked this task as done: \n\t%s", tasks.get(idx))); storage.saveList(tasks); } catch (NumberFormatException notANumber) { From c40c359559d0b60939e298dca60d177ac0e35ee2 Mon Sep 17 00:00:00 2001 From: benedict733 Date: Sat, 4 Mar 2023 18:03:04 +0800 Subject: [PATCH 34/49] Updated files from JavaFX tutorial to be able to support GUi Currently only echoes back the input from the user --- build.gradle | 16 +++ src/main/java/duke/DialogBox.java | 60 +++++++++++ src/main/java/duke/Duke.java | 138 +++++++++++++++++++++++- src/main/java/duke/Launcher.java | 14 +++ src/main/java/duke/Main.java | 29 +++++ src/main/java/duke/MainWindow.java | 51 +++++++++ src/main/java/duke/Storage.java | 2 +- src/main/resources/images/DaDuke.png | Bin 0 -> 32657 bytes src/main/resources/images/DaUser.png | Bin 0 -> 37794 bytes src/main/resources/view/DialogBox.fxml | 16 +++ src/main/resources/view/MainWindow.fxml | 19 ++++ 11 files changed, 342 insertions(+), 3 deletions(-) create mode 100644 src/main/java/duke/DialogBox.java create mode 100644 src/main/java/duke/Launcher.java create mode 100644 src/main/java/duke/Main.java create mode 100644 src/main/java/duke/MainWindow.java create mode 100644 src/main/resources/images/DaDuke.png create mode 100644 src/main/resources/images/DaUser.png create mode 100644 src/main/resources/view/DialogBox.fxml create mode 100644 src/main/resources/view/MainWindow.fxml diff --git a/build.gradle b/build.gradle index dc02fd5206..471adb24f0 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ plugins { id 'application' id 'checkstyle' id 'com.github.johnrengelman.shadow' version '5.1.0' + id 'org.openjfx.javafxplugin' version '0.0.13' } repositories { @@ -12,6 +13,21 @@ repositories { dependencies { testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0' testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0' + + String javaFxVersion = '11' + + implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win' + implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac' + implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux' + implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win' + implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac' + implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux' + implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win' + implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac' + implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux' + implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win' + implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac' + implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux' } test { diff --git a/src/main/java/duke/DialogBox.java b/src/main/java/duke/DialogBox.java new file mode 100644 index 0000000000..1131a63014 --- /dev/null +++ b/src/main/java/duke/DialogBox.java @@ -0,0 +1,60 @@ +package duke; + +import java.io.IOException; +import java.util.Collections; + +import javafx.collections.FXCollections; +import javafx.collections.ObservableList; +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.geometry.Pos; +import javafx.scene.Node; +import javafx.scene.control.Label; +import javafx.scene.image.Image; +import javafx.scene.image.ImageView; +import javafx.scene.layout.HBox; + +/** + * An example of a custom control using FXML. + * This control represents a dialog box consisting of an ImageView to represent the speaker's face and a label + * containing text from the speaker. + */ +public class DialogBox extends HBox { + @FXML + private Label dialog; + @FXML + private ImageView displayPicture; + + private DialogBox(String text, Image img) { + try { + FXMLLoader fxmlLoader = new FXMLLoader(MainWindow.class.getResource("/view/DialogBox.fxml")); + fxmlLoader.setController(this); + fxmlLoader.setRoot(this); + fxmlLoader.load(); + } catch (IOException e) { + e.printStackTrace(); + } + + dialog.setText(text); + displayPicture.setImage(img); + } + /** + * Flips the dialog box such that the ImageView is on the left and text on the right. + */ + private void flip() { + ObservableList tmp = FXCollections.observableArrayList(this.getChildren()); + Collections.reverse(tmp); + getChildren().setAll(tmp); + setAlignment(Pos.TOP_LEFT); + } + + public static DialogBox getUserDialog(String text, Image img) { + return new DialogBox(text, img); + } + + public static DialogBox getDukeDialog(String text, Image img) { + var db = new DialogBox(text, img); + db.flip(); + return db; + } +} \ No newline at end of file diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index ffd04206d0..74822cdac3 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -8,10 +8,24 @@ import java.nio.file.Path; import java.nio.file.Paths; +import javafx.application.Application; +import javafx.fxml.FXML; +import javafx.scene.image.Image; +import javafx.scene.image.ImageView; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.control.Label; +import javafx.scene.control.ScrollPane; +import javafx.scene.control.TextField; +import javafx.scene.layout.AnchorPane; +import javafx.scene.layout.Region; +import javafx.scene.layout.VBox; +import javafx.stage.Stage; + /** * The class that encompasses the main logic of running Duke, the name of the todo list */ -public class Duke { +public class Duke extends Application { /** * Minimum length of a string command is given by * The length of the command +2 (for whitespace and @@ -43,7 +57,13 @@ public class Duke { private Storage storage; private TaskList tasks; private Ui ui; - + private ScrollPane scrollPane; + private VBox dialogContainer; + private TextField userInput; + private Button sendButton; + private Scene scene; + private Image user = new Image(this.getClass().getResourceAsStream("/images/DaUser.png")); + private Image duke = new Image(this.getClass().getResourceAsStream("/images/DaDuke.png")); /** * Returns Duke with the Path specified as filePath and loads the stored tasks * @@ -60,6 +80,120 @@ public Duke(Path filePath) { } } + /** + * Returns Duke with the Path as the default path and loads the stored tasks + */ + public Duke() { + ui = new Ui(); + storage = new Storage(DUKE_LIST_DIRECTORY); + try { + tasks = new TaskList(storage.load()); + } catch (DukeException e) { + ui.showLoadingError(); + tasks = new TaskList(); + } + } + @Override + public void start(Stage stage) { + return; + /* + //Step 1. Formatting the window to look as expected. + + //The container for the content of the chat to scroll. + scrollPane = new ScrollPane(); + dialogContainer = new VBox(); + scrollPane.setContent(dialogContainer); + + userInput = new TextField(); + sendButton = new Button("Send"); + + AnchorPane mainLayout = new AnchorPane(); + mainLayout.getChildren().addAll(scrollPane, userInput, sendButton); + + scene = new Scene(mainLayout); + + stage.setScene(scene); + stage.show(); + + //Step 2. Formatting the window to look as expected + stage.setTitle("Duke"); + stage.setResizable(false); + stage.setMinHeight(600.0); + stage.setMinWidth(400.0); + + mainLayout.setPrefSize(400.0, 600.0); + + scrollPane.setPrefSize(385, 535); + scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); + scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.ALWAYS); + + scrollPane.setVvalue(1.0); + scrollPane.setFitToWidth(true); + + // You will need to import `javafx.scene.layout.Region` for this. + dialogContainer.setPrefHeight(Region.USE_COMPUTED_SIZE); + + userInput.setPrefWidth(325.0); + + sendButton.setPrefWidth(55.0); + + AnchorPane.setTopAnchor(scrollPane, 1.0); + + AnchorPane.setBottomAnchor(sendButton, 1.0); + AnchorPane.setRightAnchor(sendButton, 1.0); + + AnchorPane.setLeftAnchor(userInput , 1.0); + AnchorPane.setBottomAnchor(userInput, 1.0); + + //Part 3. Add functionality to handle user input. +// sendButton.setOnMouseClicked((event) -> { +// handleUserInput(); +// }); +// +// userInput.setOnAction((event) -> { +// handleUserInput(); +// }); + + //Scroll down to the end every time dialogContainer's height changes. + dialogContainer.heightProperty().addListener((observable) -> scrollPane.setVvalue(1.0)); + // more code to be added here later + */ + } + /** + * Iteration 1: + * Creates a label with the specified text and adds it to the dialog container. + * @param text String containing text to add + * @return a label with the specified text that has word wrap enabled. + */ + private Label getDialogLabel(String text) { + // You will need to import `javafx.scene.control.Label`. + Label textToAdd = new Label(text); + textToAdd.setWrapText(true); + + return textToAdd; + } + /** + * Iteration 2: + * Creates two dialog boxes, one echoing user input and the other containing Duke's reply and then appends them to + * the dialog container. Clears the user input after processing. + */ +// @FXML +// private void handleUserInput() { +// Label userText = new Label(userInput.getText()); +// Label dukeText = new Label(getResponse(userInput.getText())); +// dialogContainer.getChildren().addAll( +// DialogBox.getUserDialog(userText, new ImageView(user)), +// DialogBox.getDukeDialog(dukeText, new ImageView(duke)) +// ); +// userInput.clear(); +// } + /** + * You should have your own function to generate a response to user input. + * Replace this stub with your completed method. + */ + public String getResponse(String input) { + return "Duke heard: " + input; + } /** * Runs Duke, allowing the user to use interact with Duke */ diff --git a/src/main/java/duke/Launcher.java b/src/main/java/duke/Launcher.java new file mode 100644 index 0000000000..1b8f47b613 --- /dev/null +++ b/src/main/java/duke/Launcher.java @@ -0,0 +1,14 @@ +package duke; + +import duke.Duke; + +import javafx.application.Application; + +/** + * A launcher class to workaround classpath issues. + */ +public class Launcher { + public static void main(String[] args) { + Application.launch(Main.class, args); + } +} diff --git a/src/main/java/duke/Main.java b/src/main/java/duke/Main.java new file mode 100644 index 0000000000..5034b0a3cd --- /dev/null +++ b/src/main/java/duke/Main.java @@ -0,0 +1,29 @@ +package duke; + +import java.io.IOException; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.scene.layout.AnchorPane; +import javafx.stage.Stage; + +/** + * A GUI for Duke using FXML. + */ +public class Main extends Application { + private Duke duke = new Duke(); + @Override + public void start(Stage stage) { + try { + FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource("/view/MainWindow.fxml")); + AnchorPane ap = fxmlLoader.load(); + Scene scene = new Scene(ap); + stage.setScene(scene); + fxmlLoader.getController().setDuke(duke); + stage.show(); + } catch (IOException e) { + e.printStackTrace(); + } + } +} diff --git a/src/main/java/duke/MainWindow.java b/src/main/java/duke/MainWindow.java new file mode 100644 index 0000000000..dc08a7342e --- /dev/null +++ b/src/main/java/duke/MainWindow.java @@ -0,0 +1,51 @@ +package duke; + +import javafx.fxml.FXML; +import javafx.scene.control.Button; +import javafx.scene.control.ScrollPane; +import javafx.scene.control.TextField; +import javafx.scene.image.Image; +import javafx.scene.layout.AnchorPane; +import javafx.scene.layout.VBox; +/** + * Controller for MainWindow. Provides the layout for the other controls. + */ +public class MainWindow extends AnchorPane { + @FXML + private ScrollPane scrollPane; + @FXML + private VBox dialogContainer; + @FXML + private TextField userInput; + @FXML + private Button sendButton; + + private Duke duke; + + private Image userImage = new Image(this.getClass().getResourceAsStream("/images/DaUser.png")); + private Image dukeImage = new Image(this.getClass().getResourceAsStream("/images/DaDuke.png")); + + @FXML + public void initialize() { + scrollPane.vvalueProperty().bind(dialogContainer.heightProperty()); + } + + public void setDuke(Duke d) { + duke = d; + } + + /** + * Creates two dialog boxes, one echoing user input and the other containing Duke's reply and then appends them to + * the dialog container. Clears the user input after processing. + */ + @FXML + private void handleUserInput() { + String input = userInput.getText(); + String response = duke.getResponse(input); + dialogContainer.getChildren().addAll( + DialogBox.getUserDialog(input, userImage), + DialogBox.getDukeDialog(response, dukeImage) + ); + userInput.clear(); + } +} \ No newline at end of file diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index 10859e2337..c4036d1d23 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -27,7 +27,7 @@ public class Storage { * Returns a Storage object with the filePath as the default Path */ public Storage() { - this.filePath = DEFAULTDIRECTORY; + this.filePath = DEFAULT_DIRECTORY; } /** diff --git a/src/main/resources/images/DaDuke.png b/src/main/resources/images/DaDuke.png new file mode 100644 index 0000000000000000000000000000000000000000..d893658717e29b50b4ceedada235d9f75835a118 GIT binary patch literal 32657 zcmV)5K*_&}P)Zf>Tg`t%N;{PE9Y2%-o7`CdniQG#9szpJX+ zcrVK`zK7pG^!n{1T{qo3os(XNkTqW0IXIfGihv^wpO4cHg6YjrzS7VYZJZVWev% z!fK9RcD(ntf zCxMCmC7oRZecuOe6J~p&f5@?I;U2zE;O2T?Vy_8UZ1S4i=b>l%q0jeYAI+i(>K zsIun-!&|SPodfa+5u7Z5yhtd`XRjxuF+Ww~1H4xg)(?GXYLo{q2VPiixh(3*`0iyFHj`V{p-_+Q4jWKC=o6ohr zW)q;Nb7IxtY}qD4RyBpAMv`rR!YytU)sgEIa8F)wX(O<=RwjYY+sLdy0`5o0>=a zd(GePvuhIc}2|`2Y7OgN%4u~XV>q*3e$65qJ;}bK0Li-Wh%~iQn_FhV_*O6|& z$E%S!>BN;~l+|jbw5B2<783HDuPYE-T1Z)&EZTFhZGIj)nseO*|7}7`Vz4%vMl&l& z!c*D(>n3|ulhD`D1FzG)Tik79GgrpJ#HE0O)y{gM#c%L1=xtu`A<9oj(;}Q6cpHb= zIjOSNTO3vD|G|N_tH+^nj?I`D4+@;j;9`s4!*lY>X2_|khHWO LGkWs%c&z?S( zPOmG=sXyYzEkG{@&pHB0HHfww6VcVi^7l(QuBHDI@ z=z!4KIw#Y$TO%d>y$0`GT4%|@#g%h$ep*7T=|XpM<1RVOFse4=Z(K81Zub1MpUCrP zPi1_2E8o3*LC&?9EoD)xNg26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(TWx#{$|t&VGDXs zR>nx!H4lQ$RVY#lR(}*(r`|k^4GHs%am6YPAqw7f0of*ug%!4>69Om94e5mo&#xl6 zHp$vDp3A-uKVJtk-R3zid%ZLm%hmsedBV-4J%FL&R~X9Vr%#@+(u4QfQ2#4UZ>!Vk zt8pF6{I}0!InU&y_urM{g9EMLX3k2`uZFd93O4TjH6kIQ4?tm)N_kqfWme{+*@+M_ zkBx7R5S!#$5Ja{ZEQ26NZP!IwcfA-$X;cVr$w=)4RfxC{XZKd&Jrc`F^-23_k0`hNkopJFdxujUK@0000< KMNUMnLSTa5`eeEQ literal 0 HcmV?d00001 diff --git a/src/main/resources/view/DialogBox.fxml b/src/main/resources/view/DialogBox.fxml new file mode 100644 index 0000000000..e433809947 --- /dev/null +++ b/src/main/resources/view/DialogBox.fxml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/view/MainWindow.fxml b/src/main/resources/view/MainWindow.fxml new file mode 100644 index 0000000000..832f84382e --- /dev/null +++ b/src/main/resources/view/MainWindow.fxml @@ -0,0 +1,19 @@ + + + + + + + + + + + +