From 556af3f47a96b32898ab4cdbd65b16486a4871e8 Mon Sep 17 00:00:00 2001 From: damithc Date: Mon, 25 May 2020 00:58:18 +0800 Subject: [PATCH 01/38] 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 1541204513143c753f049580c4902d19f8d871c3 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Thu, 25 Aug 2022 21:51:18 +0800 Subject: [PATCH 02/38] Add ability to read inputs and echo it as output --- src/main/java/Duke.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 5d313334cc..67e0bc1c24 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,10 +1,14 @@ +import java.util.Scanner; + public class Duke { public static void main(String[] args) { - String logo = " ____ _ \n" - + "| _ \\ _ _| | _____ \n" - + "| | | | | | | |/ / _ \\\n" - + "| |_| | |_| | < __/\n" - + "|____/ \\__,_|_|\\_\\___|\n"; - System.out.println("Hello from\n" + logo); + System.out.println("Hi, I'm Duke. What can I do for you?"); + Scanner keyboard = new Scanner(System.in); + String message = keyboard.nextLine(); + while (!message.equals("bye")) { + System.out.println(message); + message = keyboard.nextLine(); + } + System.out.println("Bye! See you next time!"); } } From 18f1898f31b6aa92d71b9c7cd7d644972178dd59 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Thu, 25 Aug 2022 23:15:49 +0800 Subject: [PATCH 03/38] Add add and list functionality --- src/main/java/Duke.java | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 67e0bc1c24..1b37d20023 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,14 +1,32 @@ +import java.util.ArrayList; import java.util.Scanner; public class Duke { + + private static final ArrayList LIST_OF_THINGS = new ArrayList<>(); + public static void main(String[] args) { System.out.println("Hi, I'm Duke. What can I do for you?"); Scanner keyboard = new Scanner(System.in); String message = keyboard.nextLine(); - while (!message.equals("bye")) { - System.out.println(message); + while (true) { + if (message.equals("bye")) { + System.out.println("Bye! See you next time!"); + break; + } + else if (message.equals("list")) { + StringBuilder output_message = new StringBuilder(); + for (int i = 0; i < LIST_OF_THINGS.size(); i++) { + output_message.append(String.format("%d. %s", i + 1, LIST_OF_THINGS.get(i))); + output_message.append("\n"); + } + System.out.println(output_message); + } + else { + LIST_OF_THINGS.add(message); + System.out.printf("Added: %s%n", message); + } message = keyboard.nextLine(); } - System.out.println("Bye! See you next time!"); } } From ec9fd3164ab77a68d5b65f3efcd80f620a34c5f3 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Fri, 26 Aug 2022 01:01:57 +0800 Subject: [PATCH 04/38] Add functionality to mark and unmark tasks --- src/main/java/Duke.java | 86 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 6 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 1b37d20023..367c86399a 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -3,7 +3,65 @@ public class Duke { - private static final ArrayList LIST_OF_THINGS = new ArrayList<>(); + private static final ArrayList LIST_OF_THINGS = new ArrayList<>(); + + private static class Task { + private final String task_name; + private boolean isCompleted; + + public Task(String name) { + task_name = name; + isCompleted = false; + } + + public void markComplete() { + isCompleted = true; + } + + public void markIncomplete() { + isCompleted = false; + } + + @Override + public String toString() { + if (isCompleted) { + return String.format("[X] %s", task_name); + } else { + return String.format("[ ] %s", task_name); + } + } + } + + public static boolean isMarkCommand(String str) { + if (str.length() < 6) { + return false; + } + if (!str.startsWith("mark")) { + return false; + } + try { + Integer.parseInt(str.substring(5)); + return true; + } catch (NumberFormatException nfe) { + return false; + } + } + + public static boolean isUnmarkCommand(String str) { + if (str.length() < 8) { + return false; + } + if (!str.startsWith("unmark")) { + return false; + } + try { + Integer.parseInt(str.substring(7)); + return true; + } catch (NumberFormatException nfe) { + return false; + } + } + public static void main(String[] args) { System.out.println("Hi, I'm Duke. What can I do for you?"); @@ -13,17 +71,33 @@ public static void main(String[] args) { if (message.equals("bye")) { System.out.println("Bye! See you next time!"); break; - } - else if (message.equals("list")) { + } else if (message.equals("list")) { StringBuilder output_message = new StringBuilder(); for (int i = 0; i < LIST_OF_THINGS.size(); i++) { output_message.append(String.format("%d. %s", i + 1, LIST_OF_THINGS.get(i))); output_message.append("\n"); } System.out.println(output_message); - } - else { - LIST_OF_THINGS.add(message); + } else if (isMarkCommand(message)) { + int index = Integer.parseInt(message.substring(5)); + if (index > LIST_OF_THINGS.size() || index < 1) { + System.out.printf("Sorry, task %d does not exist!%n", index); + } else { + Task task = LIST_OF_THINGS.get(index - 1); + task.markComplete(); + System.out.printf("Good Job! This task has been marked as done:%n%s%n", task); + } + } else if (isUnmarkCommand(message)) { + int index = Integer.parseInt(message.substring(7)); + if (index > LIST_OF_THINGS.size() || index < 1) { + System.out.printf("Sorry, task %d does not exist!%n", index); + } else { + Task task = LIST_OF_THINGS.get(index - 1); + task.markIncomplete(); + System.out.printf("Get it done! This task has been marked as undone:%n%s%n", task); + } + } else { + LIST_OF_THINGS.add(new Task(message)); System.out.printf("Added: %s%n", message); } message = keyboard.nextLine(); From 400cf6231a9580bb753061b89050682ef1c89b2b Mon Sep 17 00:00:00 2001 From: tin-jy Date: Mon, 29 Aug 2022 19:54:46 +0800 Subject: [PATCH 05/38] Add different types of tasks There are 3 types of tasks, Todos, Events, and Deadline tasks --- src/main/java/Duke.java | 95 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 92 insertions(+), 3 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 367c86399a..80cae99334 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,19 +1,78 @@ import java.util.ArrayList; +import java.util.Locale; import java.util.Scanner; public class Duke { private static final ArrayList LIST_OF_THINGS = new ArrayList<>(); - private static class Task { + private abstract static class Task { private final String task_name; private boolean isCompleted; + private static class TodoTask extends Task { + + public TodoTask(String name) { + super(name); + } + + @Override + public String toString() { + if (isCompleted()) { + return String.format("[T][X] %s", getTaskName()); + } else { + return String.format("[T][ ] %s", getTaskName()); + } + } + } + + private static class DeadlineTask extends Task { + + private final String deadline; + + public DeadlineTask(String name, String date) { + super(name); + deadline = date; + } + + @Override + public String toString() { + if (isCompleted()) { + return String.format("[D][X] %s (By: %s)", getTaskName(), deadline); + } else { + return String.format("[D][ ] %s (By: %s)", getTaskName(), deadline); + } + } + } + + private static class EventTask extends Task { + + private final String datetime; + + public EventTask(String name, String date) { + super(name); + datetime = date; + } + + @Override + public String toString() { + if (isCompleted()) { + return String.format("[E][X] %s (At: %s)", getTaskName(), datetime); + } else { + return String.format("[E][ ] %s (At: %s)", getTaskName(), datetime); + } + } + } + public Task(String name) { task_name = name; isCompleted = false; } + public String getTaskName() { + return task_name; + } + public void markComplete() { isCompleted = true; } @@ -22,6 +81,10 @@ public void markIncomplete() { isCompleted = false; } + public boolean isCompleted() { + return isCompleted; + } + @Override public String toString() { if (isCompleted) { @@ -96,9 +159,35 @@ public static void main(String[] args) { task.markIncomplete(); System.out.printf("Get it done! This task has been marked as undone:%n%s%n", task); } + } else if (message.startsWith("deadline")) { + int slash_char_pos = message.indexOf("/by"); + if (slash_char_pos < 13) { + System.out.println("Please enter something valid"); + } else { + String task_name = message.substring(9, slash_char_pos); + String deadline = message.substring(slash_char_pos + 4); + Task this_task = new Task.DeadlineTask(task_name, deadline); + LIST_OF_THINGS.add(this_task); + System.out.printf("I've added this task:%n%s%n", this_task); + } + } else if (message.startsWith(("event"))) { + int slash_char_pos = message.indexOf("/at"); + if (slash_char_pos < 10) { + System.out.println("Please enter something valid"); + } else { + String task_name = message.substring(6, slash_char_pos); + String date = message.substring(slash_char_pos + 4); + Task this_task = new Task.EventTask(task_name, date); + LIST_OF_THINGS.add(this_task); + System.out.printf("I've added this task:%n%s%n", this_task); + } + } else if (message.startsWith(("todo"))) { + String task_name = message.substring(5); + Task this_task = new Task.TodoTask(task_name); + LIST_OF_THINGS.add(this_task); + System.out.printf("I've added this task:%n%s%n", this_task); } else { - LIST_OF_THINGS.add(new Task(message)); - System.out.printf("Added: %s%n", message); + System.out.println("Sorry, please specify a task type"); } message = keyboard.nextLine(); } From 7bc53d7a8d332d6a46269dd93c8c4df3a222f3d4 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Mon, 29 Aug 2022 22:00:59 +0800 Subject: [PATCH 06/38] Add test cases for text-ui testing --- text-ui-test/EXPECTED.TXT | 10 +++------- text-ui-test/input.txt | 3 +++ text-ui-test/runtest.bat | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index 657e74f6e7..926b142900 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -1,7 +1,3 @@ -Hello from - ____ _ -| _ \ _ _| | _____ -| | | | | | | |/ / _ \ -| |_| | |_| | < __/ -|____/ \__,_|_|\_\___| - +Hi, I'm Duke. What can I do for you? +I've added this task: +[D][ ] CS2013 (By: 1 September) \ No newline at end of file diff --git a/text-ui-test/input.txt b/text-ui-test/input.txt index e69de29bb2..860dc34351 100644 --- a/text-ui-test/input.txt +++ b/text-ui-test/input.txt @@ -0,0 +1,3 @@ +deadline CS2013 /by 1 September +list +mark 1 \ No newline at end of file diff --git a/text-ui-test/runtest.bat b/text-ui-test/runtest.bat index 0873744649..7b91c38286 100644 --- a/text-ui-test/runtest.bat +++ b/text-ui-test/runtest.bat @@ -1,4 +1,4 @@ -@ECHO OFF + @ECHO OFF REM create bin directory if it doesn't exist if not exist ..\bin mkdir ..\bin From 6f5be36b782d88b92f59fa4ecfbad5eacb7f8b4f Mon Sep 17 00:00:00 2001 From: tin-jy Date: Mon, 29 Aug 2022 22:04:56 +0800 Subject: [PATCH 07/38] Add error handling for incorrect user inputs --- src/main/java/Duke.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 80cae99334..87c6d8bacf 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -162,7 +162,7 @@ public static void main(String[] args) { } else if (message.startsWith("deadline")) { int slash_char_pos = message.indexOf("/by"); if (slash_char_pos < 13) { - System.out.println("Please enter something valid"); + System.out.println("Deadline tasks require a task name and a deadline specified by /by"); } else { String task_name = message.substring(9, slash_char_pos); String deadline = message.substring(slash_char_pos + 4); @@ -173,7 +173,7 @@ public static void main(String[] args) { } else if (message.startsWith(("event"))) { int slash_char_pos = message.indexOf("/at"); if (slash_char_pos < 10) { - System.out.println("Please enter something valid"); + System.out.println("Event tasks require a task name and a datetime specified by /at"); } else { String task_name = message.substring(6, slash_char_pos); String date = message.substring(slash_char_pos + 4); @@ -187,7 +187,7 @@ public static void main(String[] args) { LIST_OF_THINGS.add(this_task); System.out.printf("I've added this task:%n%s%n", this_task); } else { - System.out.println("Sorry, please specify a task type"); + System.out.println("Sorry, I don't know what that means :("); } message = keyboard.nextLine(); } From ddb1d976ab9c11b1dc27edff3b30f99a57575514 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Mon, 29 Aug 2022 22:20:37 +0800 Subject: [PATCH 08/38] Add functionality to remove tasks --- src/main/java/Duke.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 87c6d8bacf..38b9930ef3 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -186,6 +186,19 @@ public static void main(String[] args) { Task this_task = new Task.TodoTask(task_name); LIST_OF_THINGS.add(this_task); System.out.printf("I've added this task:%n%s%n", this_task); + } else if (message.startsWith("delete")) { + try { + int task_index = Integer.parseInt(message.substring(7)) - 1; + Task removed = LIST_OF_THINGS.remove(task_index); + System.out.printf("Noted. I've removed this task:%n%s%nNow you have %d tasks in the list%n", + removed, LIST_OF_THINGS.size()); + } catch (StringIndexOutOfBoundsException e) { + System.out.println("Please indicate which task you would like to delete"); + } catch (NumberFormatException e) { + System.out.println("You need to enter a number!"); + } catch (IndexOutOfBoundsException e) { + System.out.printf("You only have %d tasks!%n", LIST_OF_THINGS.size()); + } } else { System.out.println("Sorry, I don't know what that means :("); } From 841c78b3cdccd9eaf3e9113bab4b0b7cf57d23a5 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Thu, 1 Sep 2022 21:19:08 +0800 Subject: [PATCH 09/38] Add a FileHandler class to deal with saving inputs in a local file Shifted inner class Task to a new file --- data/Duke.txt | 7 +++ src/main/java/Duke.java | 93 +--------------------------------- src/main/java/FileHandler.java | 54 ++++++++++++++++++++ src/main/java/Task.java | 88 ++++++++++++++++++++++++++++++++ 4 files changed, 151 insertions(+), 91 deletions(-) create mode 100644 data/Duke.txt create mode 100644 src/main/java/FileHandler.java create mode 100644 src/main/java/Task.java diff --git a/data/Duke.txt b/data/Duke.txt new file mode 100644 index 0000000000..5467caa857 --- /dev/null +++ b/data/Duke.txt @@ -0,0 +1,7 @@ +Line 100 +line 2 +MORE STUFF +MORE STUFF +MORE STUFF +Line 100 +MORE STUFF diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 38b9930ef3..7c37c75f8b 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,100 +1,11 @@ +import java.io.IOException; import java.util.ArrayList; -import java.util.Locale; import java.util.Scanner; public class Duke { private static final ArrayList LIST_OF_THINGS = new ArrayList<>(); - private abstract static class Task { - private final String task_name; - private boolean isCompleted; - - private static class TodoTask extends Task { - - public TodoTask(String name) { - super(name); - } - - @Override - public String toString() { - if (isCompleted()) { - return String.format("[T][X] %s", getTaskName()); - } else { - return String.format("[T][ ] %s", getTaskName()); - } - } - } - - private static class DeadlineTask extends Task { - - private final String deadline; - - public DeadlineTask(String name, String date) { - super(name); - deadline = date; - } - - @Override - public String toString() { - if (isCompleted()) { - return String.format("[D][X] %s (By: %s)", getTaskName(), deadline); - } else { - return String.format("[D][ ] %s (By: %s)", getTaskName(), deadline); - } - } - } - - private static class EventTask extends Task { - - private final String datetime; - - public EventTask(String name, String date) { - super(name); - datetime = date; - } - - @Override - public String toString() { - if (isCompleted()) { - return String.format("[E][X] %s (At: %s)", getTaskName(), datetime); - } else { - return String.format("[E][ ] %s (At: %s)", getTaskName(), datetime); - } - } - } - - public Task(String name) { - task_name = name; - isCompleted = false; - } - - public String getTaskName() { - return task_name; - } - - public void markComplete() { - isCompleted = true; - } - - public void markIncomplete() { - isCompleted = false; - } - - public boolean isCompleted() { - return isCompleted; - } - - @Override - public String toString() { - if (isCompleted) { - return String.format("[X] %s", task_name); - } else { - return String.format("[ ] %s", task_name); - } - } - } - public static boolean isMarkCommand(String str) { if (str.length() < 6) { return false; @@ -126,7 +37,7 @@ public static boolean isUnmarkCommand(String str) { } - public static void main(String[] args) { + public static void main(String[] args) throws IOException { System.out.println("Hi, I'm Duke. What can I do for you?"); Scanner keyboard = new Scanner(System.in); String message = keyboard.nextLine(); diff --git a/src/main/java/FileHandler.java b/src/main/java/FileHandler.java new file mode 100644 index 0000000000..31b8ac773b --- /dev/null +++ b/src/main/java/FileHandler.java @@ -0,0 +1,54 @@ +import java.io.*; + +public class FileHandler { + + private static final String FILE_NAME = "Duke.txt"; + private static final String RELATIVE_PATH = "data/Duke.txt"; + + public static String readFromFile() throws IOException { + BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); + StringBuilder outputMessage = new StringBuilder(); + String line = reader.readLine(); + while(line != null) { + outputMessage.append(line); + outputMessage.append("\n"); + line = reader.readLine(); + } + reader.close(); + return outputMessage.toString(); + + } + + public static void writeToFile(String content) throws IOException { + BufferedWriter writer = new BufferedWriter(new FileWriter(RELATIVE_PATH)); + writer.write(content); + writer.close(); + } + + public static boolean editLine(String content, int lineNum) throws IOException { + BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); + StringBuilder outputMessage = new StringBuilder(); + String line = reader.readLine(); + int counter = 0; + while(line != null) { + counter++; + if (counter == lineNum) { + outputMessage.append(content); + } else { + outputMessage.append(line); + } + outputMessage.append("\n"); + line = reader.readLine(); + } + reader.close(); + writeToFile(outputMessage.toString()); + return lineNum <= counter; + } + + public static void addLine(String content) throws IOException { + String fileContent = readFromFile(); + fileContent += content + "\n"; + writeToFile(fileContent); + } + +} diff --git a/src/main/java/Task.java b/src/main/java/Task.java new file mode 100644 index 0000000000..04aacf619e --- /dev/null +++ b/src/main/java/Task.java @@ -0,0 +1,88 @@ +public abstract class Task { + private final String taskName; + private boolean isCompleted; + + public static class TodoTask extends Task { + + public TodoTask(String name) { + super(name); + } + + @Override + public String toString() { + if (isCompleted()) { + return String.format("[T][X] %s", getTaskName()); + } else { + return String.format("[T][ ] %s", getTaskName()); + } + } + } + + public static class DeadlineTask extends Task { + + private final String deadline; + + public DeadlineTask(String name, String date) { + super(name); + deadline = date; + } + + @Override + public String toString() { + if (isCompleted()) { + return String.format("[D][X] %s (By: %s)", getTaskName(), deadline); + } else { + return String.format("[D][ ] %s (By: %s)", getTaskName(), deadline); + } + } + } + + public static class EventTask extends Task { + + private final String datetime; + + public EventTask(String name, String date) { + super(name); + datetime = date; + } + + @Override + public String toString() { + if (isCompleted()) { + return String.format("[E][X] %s (At: %s)", getTaskName(), datetime); + } else { + return String.format("[E][ ] %s (At: %s)", getTaskName(), datetime); + } + } + } + + public Task(String name) { + taskName = name; + isCompleted = false; + } + + public String getTaskName() { + return taskName; + } + + public void markComplete() { + isCompleted = true; + } + + public void markIncomplete() { + isCompleted = false; + } + + public boolean isCompleted() { + return isCompleted; + } + + @Override + public String toString() { + if (isCompleted) { + return String.format("[X] %s", taskName); + } else { + return String.format("[ ] %s", taskName); + } + } +} \ No newline at end of file From 129758c758db7875f39fdd692a717c3ad5b9da2e Mon Sep 17 00:00:00 2001 From: tin-jy Date: Thu, 1 Sep 2022 22:22:40 +0800 Subject: [PATCH 10/38] Add functionality to save task list into a local file on every change --- data/Duke.txt | 8 +-- src/main/java/Duke.java | 120 +++++++++++++++++++-------------- src/main/java/FileHandler.java | 16 ++++- src/main/java/Task.java | 12 ++-- 4 files changed, 91 insertions(+), 65 deletions(-) diff --git a/data/Duke.txt b/data/Duke.txt index 5467caa857..00f0e10a22 100644 --- a/data/Duke.txt +++ b/data/Duke.txt @@ -1,7 +1 @@ -Line 100 -line 2 -MORE STUFF -MORE STUFF -MORE STUFF -Line 100 -MORE STUFF +[D][N] 8 | die diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 7c37c75f8b..a8821bffd7 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,43 +1,52 @@ +import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; public class Duke { - private static final ArrayList LIST_OF_THINGS = new ArrayList<>(); + private static final ArrayList LIST_OF_TASKS = new ArrayList<>(); - public static boolean isMarkCommand(String str) { - if (str.length() < 6) { - return false; - } - if (!str.startsWith("mark")) { - return false; - } + private static void updateFromFile() { try { - Integer.parseInt(str.substring(5)); - return true; - } catch (NumberFormatException nfe) { - return false; + String line = FileHandler.readLine(1); + int lineNum = 0; + while (!line.equals("")) { + lineNum++; + line = FileHandler.readLine(lineNum); + if (line.charAt(1) == 'D') { + if (line.charAt('4') == 'Y') { + int index = line.indexOf('|'); + String taskName = line.substring(8, index - 1); + String dateTime = line.substring(index + 2); + Task task = new Task.DeadlineTask(taskName, dateTime); + } + } + } + //TODO + } catch (FileNotFoundException e) { + System.out.println("No file found to read from"); + } catch (IOException e) { + System.out.println("Unknown IO Exception"); } } - public static boolean isUnmarkCommand(String str) { - if (str.length() < 8) { - return false; - } - if (!str.startsWith("unmark")) { - return false; + private static void updateToFile() { + StringBuilder outputFile = new StringBuilder(); + for (Task task : LIST_OF_TASKS) { + outputFile.append(task); + outputFile.append("\n"); } try { - Integer.parseInt(str.substring(7)); - return true; - } catch (NumberFormatException nfe) { - return false; + FileHandler.writeToFile(outputFile.toString()); + } catch (FileNotFoundException e) { + System.out.println("No file found to write to"); + } catch (IOException e) { + System.out.println("Unknown IO error"); } } - - public static void main(String[] args) throws IOException { + public static void main(String[] args) { System.out.println("Hi, I'm Duke. What can I do for you?"); Scanner keyboard = new Scanner(System.in); String message = keyboard.nextLine(); @@ -45,32 +54,40 @@ public static void main(String[] args) throws IOException { if (message.equals("bye")) { System.out.println("Bye! See you next time!"); break; - } else if (message.equals("list")) { + } else if (message.toLowerCase().equals("list")) { StringBuilder output_message = new StringBuilder(); - for (int i = 0; i < LIST_OF_THINGS.size(); i++) { - output_message.append(String.format("%d. %s", i + 1, LIST_OF_THINGS.get(i))); + for (int i = 0; i < LIST_OF_TASKS.size(); i++) { + output_message.append(String.format("%d. %s", i + 1, LIST_OF_TASKS.get(i))); output_message.append("\n"); } System.out.println(output_message); - } else if (isMarkCommand(message)) { - int index = Integer.parseInt(message.substring(5)); - if (index > LIST_OF_THINGS.size() || index < 1) { - System.out.printf("Sorry, task %d does not exist!%n", index); - } else { - Task task = LIST_OF_THINGS.get(index - 1); + } else if (message.toLowerCase().startsWith("mark")) { + try { + int task_index = Integer.parseInt(message.substring(5)) - 1; + Task task = LIST_OF_TASKS.get(task_index); task.markComplete(); - System.out.printf("Good Job! This task has been marked as done:%n%s%n", task); + System.out.printf("Marked task %d as complete. %n%s",task_index + 1, task); + } catch (StringIndexOutOfBoundsException e) { + System.out.println("Please indicate which task you would like to mark"); + } catch (NumberFormatException e) { + System.out.println("You need to enter a number!"); + } catch (IndexOutOfBoundsException e) { + System.out.printf("You only have %d tasks!%n%n", LIST_OF_TASKS.size()); } - } else if (isUnmarkCommand(message)) { - int index = Integer.parseInt(message.substring(7)); - if (index > LIST_OF_THINGS.size() || index < 1) { - System.out.printf("Sorry, task %d does not exist!%n", index); - } else { - Task task = LIST_OF_THINGS.get(index - 1); + } else if (message.toLowerCase().startsWith("unmark")) { + try { + int task_index = Integer.parseInt(message.substring(7)) - 1; + Task task = LIST_OF_TASKS.get(task_index); task.markIncomplete(); - System.out.printf("Get it done! This task has been marked as undone:%n%s%n", task); + System.out.printf("Marked task %d as incomplete. %n%s%n",task_index + 1, task); + } catch (StringIndexOutOfBoundsException e) { + System.out.println("Please indicate which task you would like to unmark"); + } catch (NumberFormatException e) { + System.out.println("You need to enter a number!"); + } catch (IndexOutOfBoundsException e) { + System.out.printf("You only have %d tasks!%n", LIST_OF_TASKS.size()); } - } else if (message.startsWith("deadline")) { + }else if (message.toLowerCase().startsWith("deadline")) { int slash_char_pos = message.indexOf("/by"); if (slash_char_pos < 13) { System.out.println("Deadline tasks require a task name and a deadline specified by /by"); @@ -78,10 +95,10 @@ public static void main(String[] args) throws IOException { String task_name = message.substring(9, slash_char_pos); String deadline = message.substring(slash_char_pos + 4); Task this_task = new Task.DeadlineTask(task_name, deadline); - LIST_OF_THINGS.add(this_task); + LIST_OF_TASKS.add(this_task); System.out.printf("I've added this task:%n%s%n", this_task); } - } else if (message.startsWith(("event"))) { + } else if (message.toLowerCase().startsWith(("event"))) { int slash_char_pos = message.indexOf("/at"); if (slash_char_pos < 10) { System.out.println("Event tasks require a task name and a datetime specified by /at"); @@ -89,30 +106,31 @@ public static void main(String[] args) throws IOException { String task_name = message.substring(6, slash_char_pos); String date = message.substring(slash_char_pos + 4); Task this_task = new Task.EventTask(task_name, date); - LIST_OF_THINGS.add(this_task); + LIST_OF_TASKS.add(this_task); System.out.printf("I've added this task:%n%s%n", this_task); } - } else if (message.startsWith(("todo"))) { + } else if (message.toLowerCase().startsWith(("todo"))) { String task_name = message.substring(5); Task this_task = new Task.TodoTask(task_name); - LIST_OF_THINGS.add(this_task); + LIST_OF_TASKS.add(this_task); System.out.printf("I've added this task:%n%s%n", this_task); - } else if (message.startsWith("delete")) { + } else if (message.toLowerCase().startsWith("delete")) { try { int task_index = Integer.parseInt(message.substring(7)) - 1; - Task removed = LIST_OF_THINGS.remove(task_index); + Task removed = LIST_OF_TASKS.remove(task_index); System.out.printf("Noted. I've removed this task:%n%s%nNow you have %d tasks in the list%n", - removed, LIST_OF_THINGS.size()); + removed, LIST_OF_TASKS.size()); } catch (StringIndexOutOfBoundsException e) { System.out.println("Please indicate which task you would like to delete"); } catch (NumberFormatException e) { System.out.println("You need to enter a number!"); } catch (IndexOutOfBoundsException e) { - System.out.printf("You only have %d tasks!%n", LIST_OF_THINGS.size()); + System.out.printf("You only have %d tasks!%n", LIST_OF_TASKS.size()); } } else { System.out.println("Sorry, I don't know what that means :("); } + updateToFile(); message = keyboard.nextLine(); } } diff --git a/src/main/java/FileHandler.java b/src/main/java/FileHandler.java index 31b8ac773b..b6a93c73f5 100644 --- a/src/main/java/FileHandler.java +++ b/src/main/java/FileHandler.java @@ -16,7 +16,6 @@ public static String readFromFile() throws IOException { } reader.close(); return outputMessage.toString(); - } public static void writeToFile(String content) throws IOException { @@ -25,6 +24,21 @@ public static void writeToFile(String content) throws IOException { writer.close(); } + public static String readLine(int lineNum) throws IOException { + BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); + String line = reader.readLine(); + int counter = 0; + while(line != null) { + counter++; + line = reader.readLine(); + if (counter == lineNum) { + return line; + } + } + reader.close(); + return ""; + } + public static boolean editLine(String content, int lineNum) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); StringBuilder outputMessage = new StringBuilder(); diff --git a/src/main/java/Task.java b/src/main/java/Task.java index 04aacf619e..ce8c560f8c 100644 --- a/src/main/java/Task.java +++ b/src/main/java/Task.java @@ -11,9 +11,9 @@ public TodoTask(String name) { @Override public String toString() { if (isCompleted()) { - return String.format("[T][X] %s", getTaskName()); + return String.format("[T][Y] %s", getTaskName()); } else { - return String.format("[T][ ] %s", getTaskName()); + return String.format("[T][N] %s", getTaskName()); } } } @@ -30,9 +30,9 @@ public DeadlineTask(String name, String date) { @Override public String toString() { if (isCompleted()) { - return String.format("[D][X] %s (By: %s)", getTaskName(), deadline); + return String.format("[D][Y] %s| %s", getTaskName(), deadline); } else { - return String.format("[D][ ] %s (By: %s)", getTaskName(), deadline); + return String.format("[D][N] %s| %s", getTaskName(), deadline); } } } @@ -49,9 +49,9 @@ public EventTask(String name, String date) { @Override public String toString() { if (isCompleted()) { - return String.format("[E][X] %s (At: %s)", getTaskName(), datetime); + return String.format("[E][Y] %s| %s", getTaskName(), datetime); } else { - return String.format("[E][ ] %s (At: %s)", getTaskName(), datetime); + return String.format("[E][N] %s| %s", getTaskName(), datetime); } } } From c351d1d1b33777f03100b902be51a7ac6fa6112e Mon Sep 17 00:00:00 2001 From: tin-jy Date: Thu, 1 Sep 2022 23:06:49 +0800 Subject: [PATCH 11/38] Add functionality for Duke to load task list on startup --- data/Duke.txt | 2 +- src/main/java/Duke.java | 49 +++++++++++++++++++++++----------- src/main/java/FileHandler.java | 4 +-- src/main/java/Task.java | 12 ++++----- 4 files changed, 42 insertions(+), 25 deletions(-) diff --git a/data/Duke.txt b/data/Duke.txt index 00f0e10a22..28eed12741 100644 --- a/data/Duke.txt +++ b/data/Duke.txt @@ -1 +1 @@ -[D][N] 8 | die +[P][1] BCD | live diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index a8821bffd7..dd7257ee28 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,6 +1,8 @@ +import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; +import java.util.InputMismatchException; import java.util.Scanner; public class Duke { @@ -10,24 +12,38 @@ public class Duke { private static void updateFromFile() { try { String line = FileHandler.readLine(1); - int lineNum = 0; - while (!line.equals("")) { - lineNum++; - line = FileHandler.readLine(lineNum); + int lineNum = 1; + while (line != null) { + Task task; if (line.charAt(1) == 'D') { - if (line.charAt('4') == 'Y') { - int index = line.indexOf('|'); - String taskName = line.substring(8, index - 1); - String dateTime = line.substring(index + 2); - Task task = new Task.DeadlineTask(taskName, dateTime); - } + int index = line.indexOf('|'); + String taskName = line.substring(7, index - 1); + String dateTime = line.substring(index + 2); + task = new Task.DeadlineTask(taskName, dateTime); + } else if (line.charAt(1) == 'E') { + int index = line.indexOf('|'); + String dateTime = line.substring(index + 2); + String taskName = line.substring(8, index - 1); + task = new Task.EventTask(taskName, dateTime); + } else if (line.charAt(1) == 'T'){ + String taskName = line.substring(8); + task = new Task.TodoTask(taskName); + } else { + throw new InputMismatchException(); } + if (line.charAt(4) == '1') { + task.markComplete(); + } + LIST_OF_TASKS.add(task); + lineNum++; + line = FileHandler.readLine(lineNum); } - //TODO } catch (FileNotFoundException e) { System.out.println("No file found to read from"); } catch (IOException e) { System.out.println("Unknown IO Exception"); + } catch (NullPointerException | InputMismatchException e) { + System.out.println("Input file format not recognised"); } } @@ -47,6 +63,7 @@ private static void updateToFile() { } public static void main(String[] args) { + updateFromFile(); System.out.println("Hi, I'm Duke. What can I do for you?"); Scanner keyboard = new Scanner(System.in); String message = keyboard.nextLine(); @@ -66,7 +83,7 @@ public static void main(String[] args) { int task_index = Integer.parseInt(message.substring(5)) - 1; Task task = LIST_OF_TASKS.get(task_index); task.markComplete(); - System.out.printf("Marked task %d as complete. %n%s",task_index + 1, task); + System.out.printf("Marked task %d as complete. %n%s%n",task_index + 1, task); } catch (StringIndexOutOfBoundsException e) { System.out.println("Please indicate which task you would like to mark"); } catch (NumberFormatException e) { @@ -89,10 +106,10 @@ public static void main(String[] args) { } }else if (message.toLowerCase().startsWith("deadline")) { int slash_char_pos = message.indexOf("/by"); - if (slash_char_pos < 13) { + if (slash_char_pos < 11) { System.out.println("Deadline tasks require a task name and a deadline specified by /by"); } else { - String task_name = message.substring(9, slash_char_pos); + String task_name = message.substring(9, slash_char_pos - 1); String deadline = message.substring(slash_char_pos + 4); Task this_task = new Task.DeadlineTask(task_name, deadline); LIST_OF_TASKS.add(this_task); @@ -100,10 +117,10 @@ public static void main(String[] args) { } } else if (message.toLowerCase().startsWith(("event"))) { int slash_char_pos = message.indexOf("/at"); - if (slash_char_pos < 10) { + if (slash_char_pos < 8) { System.out.println("Event tasks require a task name and a datetime specified by /at"); } else { - String task_name = message.substring(6, slash_char_pos); + String task_name = message.substring(6, slash_char_pos - 1); String date = message.substring(slash_char_pos + 4); Task this_task = new Task.EventTask(task_name, date); LIST_OF_TASKS.add(this_task); diff --git a/src/main/java/FileHandler.java b/src/main/java/FileHandler.java index b6a93c73f5..d3ee1ec802 100644 --- a/src/main/java/FileHandler.java +++ b/src/main/java/FileHandler.java @@ -26,7 +26,7 @@ public static void writeToFile(String content) throws IOException { public static String readLine(int lineNum) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); - String line = reader.readLine(); + String line = "INIT"; int counter = 0; while(line != null) { counter++; @@ -36,7 +36,7 @@ public static String readLine(int lineNum) throws IOException { } } reader.close(); - return ""; + return null; } public static boolean editLine(String content, int lineNum) throws IOException { diff --git a/src/main/java/Task.java b/src/main/java/Task.java index ce8c560f8c..e7be55912b 100644 --- a/src/main/java/Task.java +++ b/src/main/java/Task.java @@ -11,9 +11,9 @@ public TodoTask(String name) { @Override public String toString() { if (isCompleted()) { - return String.format("[T][Y] %s", getTaskName()); + return String.format("[T][1] %s", getTaskName()); } else { - return String.format("[T][N] %s", getTaskName()); + return String.format("[T][0] %s", getTaskName()); } } } @@ -30,9 +30,9 @@ public DeadlineTask(String name, String date) { @Override public String toString() { if (isCompleted()) { - return String.format("[D][Y] %s| %s", getTaskName(), deadline); + return String.format("[D][1] %s | %s", getTaskName(), deadline); } else { - return String.format("[D][N] %s| %s", getTaskName(), deadline); + return String.format("[D][0] %s | %s", getTaskName(), deadline); } } } @@ -49,9 +49,9 @@ public EventTask(String name, String date) { @Override public String toString() { if (isCompleted()) { - return String.format("[E][Y] %s| %s", getTaskName(), datetime); + return String.format("[E][1] %s | %s", getTaskName(), datetime); } else { - return String.format("[E][N] %s| %s", getTaskName(), datetime); + return String.format("[E][0] %s | %s", getTaskName(), datetime); } } } From a69c99c54eae93c4673b6e223ca38c3580a3cedf Mon Sep 17 00:00:00 2001 From: tin-jy Date: Fri, 2 Sep 2022 01:06:28 +0800 Subject: [PATCH 12/38] Add ability for Duke to verify dates and time --- data/Duke.txt | 10 +- src/main/java/Duke.java | 14 ++- src/main/java/Task.java | 242 ++++++++++++++++++++++++++++++++++++++-- 3 files changed, 252 insertions(+), 14 deletions(-) diff --git a/data/Duke.txt b/data/Duke.txt index 28eed12741..1151ed00dd 100644 --- a/data/Duke.txt +++ b/data/Duke.txt @@ -1 +1,9 @@ -[P][1] BCD | live +[D][0] ABC | 03 Mar 2022 1800 +[T][1] ABC +[D][1] ABC | 03 Mar 2022 1800 +[D][0] blah | 02 Feb 2022 +[D][0] blah | 02 Feb 2022 +[D][0] blah | 02 Feb 2022 +[D][0] blah | 09 Sep 2022 +[D][0] blah | 10 Oct 2022 +[E][0] blah | 31 Oct 2022 diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index dd7257ee28..4f84e59c20 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -19,14 +19,20 @@ private static void updateFromFile() { int index = line.indexOf('|'); String taskName = line.substring(7, index - 1); String dateTime = line.substring(index + 2); + String month = dateTime.substring(3, 6); + int numberMonth = Task.monthToInt(month); + dateTime = dateTime.substring(0, 2) + "-" + numberMonth + "-" + dateTime.substring(7); task = new Task.DeadlineTask(taskName, dateTime); } else if (line.charAt(1) == 'E') { int index = line.indexOf('|'); + String taskName = line.substring(7, index - 1); String dateTime = line.substring(index + 2); - String taskName = line.substring(8, index - 1); - task = new Task.EventTask(taskName, dateTime); - } else if (line.charAt(1) == 'T'){ - String taskName = line.substring(8); + String month = dateTime.substring(3, 6); + int numberMonth = Task.monthToInt(month); + dateTime = dateTime.substring(0, 2) + "-" + numberMonth + "-" + dateTime.substring(7); + task = new Task.DeadlineTask(taskName, dateTime); + } else if (line.charAt(1) == 'T') { + String taskName = line.substring(7); task = new Task.TodoTask(taskName); } else { throw new InputMismatchException(); diff --git a/src/main/java/Task.java b/src/main/java/Task.java index e7be55912b..16123a98a2 100644 --- a/src/main/java/Task.java +++ b/src/main/java/Task.java @@ -1,7 +1,44 @@ +import java.time.DateTimeException; +import java.time.LocalDateTime; +import java.util.InputMismatchException; + public abstract class Task { private final String taskName; private boolean isCompleted; + public static String[] months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; + + public static int monthToInt(String month) { + switch (month) { + case "Jan": + return 1; + case "Feb": + return 2; + case "Mar": + return 3; + case "Apr": + return 4; + case "May": + return 5; + case "Jun": + return 6; + case "Jul": + return 7; + case "Aug": + return 8; + case "Sep": + return 9; + case "Oct": + return 10; + case "Nov": + return 11; + case "Dec": + return 12; + default: + return 0; + } + } + public static class TodoTask extends Task { public TodoTask(String name) { @@ -20,42 +57,229 @@ public String toString() { public static class DeadlineTask extends Task { - private final String deadline; + private final LocalDateTime deadline; + private final boolean hasTime; public DeadlineTask(String name, String date) { super(name); - deadline = date; + int firstIndex; + int secondIndex; + if (date.contains("/")) { + firstIndex = date.indexOf("/"); + secondIndex = date.substring(firstIndex + 1).indexOf("/") + firstIndex + 1; + } else if (date.contains("-")) { + firstIndex = date.indexOf("-"); + secondIndex = date.substring(firstIndex + 1).indexOf("-") + firstIndex + 1; + } else if (date.contains(".")) { + firstIndex = date.indexOf("."); + secondIndex = date.substring(firstIndex + 1).indexOf(".") + firstIndex + 1; + } else { + throw new InputMismatchException(); + } + if (secondIndex == -1) { + throw new InputMismatchException(); + } + int year; + int month; + int day; + boolean hasTime = false; + int hour = 0; + int minute = 0; + if (firstIndex == 1) { + if (secondIndex == 3) { + day = Integer.parseInt(date.substring(0, 1)); + month = Integer.parseInt(date.substring(2, 3)); + year = Integer.parseInt(date.substring(4, 8)); + if (date.length() > 9) { + hasTime = true; + hour = Integer.parseInt(date.substring(9, 11)); + minute = Integer.parseInt(date.substring(11, 13)); + } + } else if (secondIndex == 4) { + day = Integer.parseInt(date.substring(0, 1)); + month = Integer.parseInt(date.substring(2, 4)); + year = Integer.parseInt(date.substring(5, 9)); + if (date.length() > 10) { + hasTime = true; + hour = Integer.parseInt(date.substring(10, 12)); + minute = Integer.parseInt(date.substring(12, 14)); + } + } else { + throw new InputMismatchException(); + } + } else if (firstIndex == 2) { + if (secondIndex == 4) { + day = Integer.parseInt(date.substring(0, 2)); + month = Integer.parseInt(date.substring(3, 4)); + year = Integer.parseInt(date.substring(5, 9)); + if (date.length() > 10) { + hasTime = true; + hour = Integer.parseInt(date.substring(10, 12)); + minute = Integer.parseInt(date.substring(12, 14)); + } + } else if (secondIndex == 5) { + day = Integer.parseInt(date.substring(0, 2)); + month = Integer.parseInt(date.substring(3, 5)); + year = Integer.parseInt(date.substring(6, 10)); + if (date.length() > 11) { + hasTime = true; + hour = Integer.parseInt(date.substring(11, 13)); + minute = Integer.parseInt(date.substring(13, 15)); + } + } else { + throw new InputMismatchException(); + } + } else { + throw new InputMismatchException(); + } + deadline = LocalDateTime.of(year, month, day, hour, minute); + this.hasTime = hasTime; + } @Override public String toString() { + int completed = 0; if (isCompleted()) { - return String.format("[D][1] %s | %s", getTaskName(), deadline); + completed = 1; + } + String wordMonth = months[deadline.getDayOfMonth() - 1]; + String wordDay = String.valueOf(deadline.getMonth().getValue()); + if (deadline.getDayOfMonth() < 10) { + wordDay = "0" + wordDay; + } + String wordMinute = String.valueOf(deadline.getMinute()); + if (deadline.getMinute() == 0) { + wordMinute = "0" + wordMinute; + } + String wordHour = String.valueOf(deadline.getHour()); + if (deadline.getHour() == 0) { + wordHour = "0" + wordHour; + } + if (hasTime) { + return String.format("[D][%d] %s | %s %s %d %s%s ", completed, getTaskName(), + wordDay, wordMonth, deadline.getYear(), + wordHour, wordMinute); } else { - return String.format("[D][0] %s | %s", getTaskName(), deadline); + return String.format("[D][%d] %s | %s %s %d", completed, getTaskName(), + wordDay, wordMonth, deadline.getYear()); } + } } public static class EventTask extends Task { - private final String datetime; + private final LocalDateTime datetime; + private final boolean hasTime; public EventTask(String name, String date) { super(name); - datetime = date; + int firstIndex; + int secondIndex; + if (date.contains("/")) { + firstIndex = date.indexOf("/"); + secondIndex = date.substring(firstIndex + 1).indexOf("/") + firstIndex + 1; + } else if (date.contains("-")) { + firstIndex = date.indexOf("-"); + secondIndex = date.substring(firstIndex + 1).indexOf("-") + firstIndex + 1; + } else if (date.contains(".")) { + firstIndex = date.indexOf("."); + secondIndex = date.substring(firstIndex + 1).indexOf(".") + firstIndex + 1; + } else { + throw new InputMismatchException(); + } + if (secondIndex == -1) { + throw new InputMismatchException(); + } + int year; + int month; + int day; + boolean hasTime = false; + int hour = 0; + int minute = 0; + if (firstIndex == 1) { + if (secondIndex == 3) { + day = Integer.parseInt(date.substring(0, 1)); + month = Integer.parseInt(date.substring(2, 3)); + year = Integer.parseInt(date.substring(4, 8)); + if (date.length() > 9) { + hasTime = true; + hour = Integer.parseInt(date.substring(9, 11)); + minute = Integer.parseInt(date.substring(11, 13)); + } + } else if (secondIndex == 4) { + day = Integer.parseInt(date.substring(0, 1)); + month = Integer.parseInt(date.substring(2, 4)); + year = Integer.parseInt(date.substring(5, 9)); + if (date.length() > 10) { + hasTime = true; + hour = Integer.parseInt(date.substring(10, 12)); + minute = Integer.parseInt(date.substring(12, 14)); + } + } else { + throw new InputMismatchException(); + } + } else if (firstIndex == 2) { + if (secondIndex == 4) { + day = Integer.parseInt(date.substring(0, 2)); + month = Integer.parseInt(date.substring(3, 4)); + year = Integer.parseInt(date.substring(5, 9)); + if (date.length() > 10) { + hasTime = true; + hour = Integer.parseInt(date.substring(10, 12)); + minute = Integer.parseInt(date.substring(12, 14)); + } + } else if (secondIndex == 5) { + day = Integer.parseInt(date.substring(0, 2)); + month = Integer.parseInt(date.substring(3, 5)); + year = Integer.parseInt(date.substring(6, 10)); + if (date.length() > 11) { + hasTime = true; + hour = Integer.parseInt(date.substring(11, 13)); + minute = Integer.parseInt(date.substring(13, 15)); + } + } else { + throw new InputMismatchException(); + } + } else { + throw new InputMismatchException(); + } + datetime = LocalDateTime.of(year, month, day, hour, minute); + this.hasTime = hasTime; + } @Override public String toString() { + int completed = 0; if (isCompleted()) { - return String.format("[E][1] %s | %s", getTaskName(), datetime); + completed = 1; + } + String wordMonth = months[datetime.getMonth().getValue() - 1]; + String wordDay = String.valueOf(datetime.getDayOfMonth()); + if (datetime.getDayOfMonth() < 10) { + wordDay = "0" + wordDay; + } + String wordMinute = String.valueOf(datetime.getMinute()); + if (datetime.getMinute() == 0) { + wordMinute = "0" + wordMinute; + } + String wordHour = String.valueOf(datetime.getHour()); + if (datetime.getHour() == 0) { + wordHour = "0" + wordHour; + } + if (hasTime) { + return String.format("[E][%d] %s | %s %s %d %s%s ", completed, getTaskName(), + wordDay, wordMonth, datetime.getYear(), + wordHour, wordMinute); } else { - return String.format("[E][0] %s | %s", getTaskName(), datetime); + return String.format("[E][%d] %s | %s %s %d", completed, getTaskName(), + wordDay, wordMonth, datetime.getYear()); } + } } - public Task(String name) { taskName = name; isCompleted = false; From 462fb51b89b1fcf30388be5ab9491d9c8b84be64 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Sun, 4 Sep 2022 03:22:50 +0800 Subject: [PATCH 13/38] Add classes Parser, Ui, TaskList to include more OOP --- data/Duke.txt | 10 +- src/main/java/Duke.java | 226 +++++++++------------- src/main/java/FileHandler.java | 68 ------- src/main/java/Parser.java | 342 +++++++++++++++++++++++++++++++++ src/main/java/Storage.java | 127 ++++++++++++ src/main/java/Task.java | 233 ++++------------------ src/main/java/TaskList.java | 71 +++++++ src/main/java/Ui.java | 21 ++ 8 files changed, 686 insertions(+), 412 deletions(-) delete mode 100644 src/main/java/FileHandler.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/data/Duke.txt b/data/Duke.txt index 1151ed00dd..9ddc719aa3 100644 --- a/data/Duke.txt +++ b/data/Duke.txt @@ -1,9 +1 @@ -[D][0] ABC | 03 Mar 2022 1800 -[T][1] ABC -[D][1] ABC | 03 Mar 2022 1800 -[D][0] blah | 02 Feb 2022 -[D][0] blah | 02 Feb 2022 -[D][0] blah | 02 Feb 2022 -[D][0] blah | 09 Sep 2022 -[D][0] blah | 10 Oct 2022 -[E][0] blah | 31 Oct 2022 +[D][0] blab | 02 Mar 2022 1807 diff --git a/src/main/java/Duke.java b/src/main/java/Duke.java index 4f84e59c20..56aa9582c5 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/Duke.java @@ -1,160 +1,106 @@ -import java.io.File; -import java.io.FileNotFoundException; import java.io.IOException; -import java.util.ArrayList; -import java.util.InputMismatchException; +import java.time.DateTimeException; import java.util.Scanner; public class Duke { - private static final ArrayList LIST_OF_TASKS = new ArrayList<>(); + private Storage storage; + private TaskList tasks; + private Ui ui; - private static void updateFromFile() { + public Duke(String filePath) { + ui = new Ui(); + storage = new Storage(filePath); try { - String line = FileHandler.readLine(1); - int lineNum = 1; - while (line != null) { - Task task; - if (line.charAt(1) == 'D') { - int index = line.indexOf('|'); - String taskName = line.substring(7, index - 1); - String dateTime = line.substring(index + 2); - String month = dateTime.substring(3, 6); - int numberMonth = Task.monthToInt(month); - dateTime = dateTime.substring(0, 2) + "-" + numberMonth + "-" + dateTime.substring(7); - task = new Task.DeadlineTask(taskName, dateTime); - } else if (line.charAt(1) == 'E') { - int index = line.indexOf('|'); - String taskName = line.substring(7, index - 1); - String dateTime = line.substring(index + 2); - String month = dateTime.substring(3, 6); - int numberMonth = Task.monthToInt(month); - dateTime = dateTime.substring(0, 2) + "-" + numberMonth + "-" + dateTime.substring(7); - task = new Task.DeadlineTask(taskName, dateTime); - } else if (line.charAt(1) == 'T') { - String taskName = line.substring(7); - task = new Task.TodoTask(taskName); - } else { - throw new InputMismatchException(); - } - if (line.charAt(4) == '1') { - task.markComplete(); - } - LIST_OF_TASKS.add(task); - lineNum++; - line = FileHandler.readLine(lineNum); - } - } catch (FileNotFoundException e) { - System.out.println("No file found to read from"); + tasks = new TaskList(storage.load()); } catch (IOException e) { - System.out.println("Unknown IO Exception"); - } catch (NullPointerException | InputMismatchException e) { - System.out.println("Input file format not recognised"); + ui.showLoadingError(); + tasks = new TaskList(); } } - private static void updateToFile() { - StringBuilder outputFile = new StringBuilder(); - for (Task task : LIST_OF_TASKS) { - outputFile.append(task); - outputFile.append("\n"); - } - try { - FileHandler.writeToFile(outputFile.toString()); - } catch (FileNotFoundException e) { - System.out.println("No file found to write to"); - } catch (IOException e) { - System.out.println("Unknown IO error"); - } - } - - public static void main(String[] args) { - updateFromFile(); - System.out.println("Hi, I'm Duke. What can I do for you?"); - Scanner keyboard = new Scanner(System.in); - String message = keyboard.nextLine(); + public void run() { + System.out.println("Hi, I'm Duke. What may I do for you?"); while (true) { - if (message.equals("bye")) { - System.out.println("Bye! See you next time!"); - break; - } else if (message.toLowerCase().equals("list")) { - StringBuilder output_message = new StringBuilder(); - for (int i = 0; i < LIST_OF_TASKS.size(); i++) { - output_message.append(String.format("%d. %s", i + 1, LIST_OF_TASKS.get(i))); - output_message.append("\n"); - } - System.out.println(output_message); - } else if (message.toLowerCase().startsWith("mark")) { - try { - int task_index = Integer.parseInt(message.substring(5)) - 1; - Task task = LIST_OF_TASKS.get(task_index); - task.markComplete(); - System.out.printf("Marked task %d as complete. %n%s%n",task_index + 1, task); - } catch (StringIndexOutOfBoundsException e) { - System.out.println("Please indicate which task you would like to mark"); - } catch (NumberFormatException e) { - System.out.println("You need to enter a number!"); - } catch (IndexOutOfBoundsException e) { - System.out.printf("You only have %d tasks!%n%n", LIST_OF_TASKS.size()); - } - } else if (message.toLowerCase().startsWith("unmark")) { - try { - int task_index = Integer.parseInt(message.substring(7)) - 1; - Task task = LIST_OF_TASKS.get(task_index); - task.markIncomplete(); - System.out.printf("Marked task %d as incomplete. %n%s%n",task_index + 1, task); - } catch (StringIndexOutOfBoundsException e) { - System.out.println("Please indicate which task you would like to unmark"); - } catch (NumberFormatException e) { - System.out.println("You need to enter a number!"); - } catch (IndexOutOfBoundsException e) { - System.out.printf("You only have %d tasks!%n", LIST_OF_TASKS.size()); - } - }else if (message.toLowerCase().startsWith("deadline")) { - int slash_char_pos = message.indexOf("/by"); - if (slash_char_pos < 11) { - System.out.println("Deadline tasks require a task name and a deadline specified by /by"); + try { + Scanner sc = new Scanner(System.in); + String input = sc.nextLine(); + String parsedInput = Parser.parse(input); + if (parsedInput.equalsIgnoreCase("bye")) { + break; + } else if (parsedInput.equalsIgnoreCase("list")) { + ui.display(tasks.list()); + } else if (parsedInput.toLowerCase().startsWith("mark")) { + int taskNum = Integer.parseInt(parsedInput.substring(4)); + try { + Task task = tasks.mark(taskNum); + ui.display(String.format("I've marked this task as complete:%n%s%n", task)); + } catch (IndexOutOfBoundsException e) { + ui.displayError(e); + } + } else if (parsedInput.toLowerCase().startsWith("unmark")) { + int taskNum = Integer.parseInt(parsedInput.substring(6)); + try { + Task task = tasks.unmark(taskNum); + ui.display(String.format("I've marked this task as incomplete:%n%s%n", task)); + } catch (IndexOutOfBoundsException e) { + ui.displayError(e); + } + } else if (parsedInput.toLowerCase().startsWith("delete")) { + int taskNum = Integer.parseInt(parsedInput.substring(6)); + try { + Task task = tasks.delete(taskNum); + ui.display(String.format("I've deleted this task:%n%s%n", task)); + } catch (IndexOutOfBoundsException e) { + ui.displayError(e); + } + } else if (parsedInput.toLowerCase().startsWith("dwt")) { + String date = parsedInput.substring(3, 11); + String time = parsedInput.substring(11, 15); + String taskName = parsedInput.substring(15); + Task task = new Task.DeadlineTask(taskName, date, time); + tasks.add(task); + ui.display(String.format("Added new deadline task:%n%s%n", task)); + } else if (parsedInput.toLowerCase().startsWith("dnt")) { + String date = parsedInput.substring(3, 11); + String taskName = parsedInput.substring(11); + Task task = new Task.DeadlineTask(taskName, date); + tasks.add(task); + ui.display(String.format("Added new deadline task:%n%s%n", task)); + } else if (parsedInput.toLowerCase().startsWith("ewt")) { + String date = parsedInput.substring(3, 11); + String time = parsedInput.substring(11, 15); + String taskName = parsedInput.substring(15); + Task task = new Task.EventTask(taskName, date, time); + tasks.add(task); + ui.display(String.format("Added new event task:%n%s%n", task)); + } else if (parsedInput.toLowerCase().startsWith("ent")) { + String date = parsedInput.substring(3, 11); + String taskName = parsedInput.substring(11); + Task task = new Task.EventTask(taskName, date); + tasks.add(task); + ui.display(String.format("Added new event task:%n%s%n", task)); + } else if (parsedInput.toLowerCase().startsWith("todo")) { + String taskName = parsedInput.substring(4); + Task task = new Task.TodoTask(taskName); + tasks.add(task); + ui.display(String.format("Added new todo task:%n%s%n", task)); } else { - String task_name = message.substring(9, slash_char_pos - 1); - String deadline = message.substring(slash_char_pos + 4); - Task this_task = new Task.DeadlineTask(task_name, deadline); - LIST_OF_TASKS.add(this_task); - System.out.printf("I've added this task:%n%s%n", this_task); + ui.display("Sorry I don't recognise that command :("); } - } else if (message.toLowerCase().startsWith(("event"))) { - int slash_char_pos = message.indexOf("/at"); - if (slash_char_pos < 8) { - System.out.println("Event tasks require a task name and a datetime specified by /at"); - } else { - String task_name = message.substring(6, slash_char_pos - 1); - String date = message.substring(slash_char_pos + 4); - Task this_task = new Task.EventTask(task_name, date); - LIST_OF_TASKS.add(this_task); - System.out.printf("I've added this task:%n%s%n", this_task); - } - } else if (message.toLowerCase().startsWith(("todo"))) { - String task_name = message.substring(5); - Task this_task = new Task.TodoTask(task_name); - LIST_OF_TASKS.add(this_task); - System.out.printf("I've added this task:%n%s%n", this_task); - } else if (message.toLowerCase().startsWith("delete")) { try { - int task_index = Integer.parseInt(message.substring(7)) - 1; - Task removed = LIST_OF_TASKS.remove(task_index); - System.out.printf("Noted. I've removed this task:%n%s%nNow you have %d tasks in the list%n", - removed, LIST_OF_TASKS.size()); - } catch (StringIndexOutOfBoundsException e) { - System.out.println("Please indicate which task you would like to delete"); - } catch (NumberFormatException e) { - System.out.println("You need to enter a number!"); - } catch (IndexOutOfBoundsException e) { - System.out.printf("You only have %d tasks!%n", LIST_OF_TASKS.size()); + storage.writeToFile(tasks.list()); + } catch (IOException e) { + ui.showWritingError(); } - } else { - System.out.println("Sorry, I don't know what that means :("); + } catch (DateTimeException | IllegalArgumentException e) { + ui.displayError(e); } - updateToFile(); - message = keyboard.nextLine(); } } + + public static void main(String[] args) { + new Duke("data/Duke.txt").run(); + } + } diff --git a/src/main/java/FileHandler.java b/src/main/java/FileHandler.java deleted file mode 100644 index d3ee1ec802..0000000000 --- a/src/main/java/FileHandler.java +++ /dev/null @@ -1,68 +0,0 @@ -import java.io.*; - -public class FileHandler { - - private static final String FILE_NAME = "Duke.txt"; - private static final String RELATIVE_PATH = "data/Duke.txt"; - - public static String readFromFile() throws IOException { - BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); - StringBuilder outputMessage = new StringBuilder(); - String line = reader.readLine(); - while(line != null) { - outputMessage.append(line); - outputMessage.append("\n"); - line = reader.readLine(); - } - reader.close(); - return outputMessage.toString(); - } - - public static void writeToFile(String content) throws IOException { - BufferedWriter writer = new BufferedWriter(new FileWriter(RELATIVE_PATH)); - writer.write(content); - writer.close(); - } - - public static String readLine(int lineNum) throws IOException { - BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); - String line = "INIT"; - int counter = 0; - while(line != null) { - counter++; - line = reader.readLine(); - if (counter == lineNum) { - return line; - } - } - reader.close(); - return null; - } - - public static boolean editLine(String content, int lineNum) throws IOException { - BufferedReader reader = new BufferedReader(new FileReader(RELATIVE_PATH)); - StringBuilder outputMessage = new StringBuilder(); - String line = reader.readLine(); - int counter = 0; - while(line != null) { - counter++; - if (counter == lineNum) { - outputMessage.append(content); - } else { - outputMessage.append(line); - } - outputMessage.append("\n"); - line = reader.readLine(); - } - reader.close(); - writeToFile(outputMessage.toString()); - return lineNum <= counter; - } - - public static void addLine(String content) throws IOException { - String fileContent = readFromFile(); - fileContent += content + "\n"; - writeToFile(fileContent); - } - -} diff --git a/src/main/java/Parser.java b/src/main/java/Parser.java new file mode 100644 index 0000000000..9761637c89 --- /dev/null +++ b/src/main/java/Parser.java @@ -0,0 +1,342 @@ +import java.time.DateTimeException; +import java.time.LocalDate; + +public class Parser { + + public static String removeWhitespace(String input) { + return input.replaceAll(" ", ""); + } + + public static String removeStartingWhitespace(String input) { + if (input.length() == 0) { + return "blank"; + } + if (input.indexOf(' ') == 0) { + if (input.length() == 1) { + return "blank"; + } + return removeStartingWhitespace(input.substring(1)); + } + return input; + } + + public static int countArguments(String input) { + String str = input; + int count = 0; + while(str.length() > 0) { + int index = str.indexOf(' '); + if (index == -1) { + count++; + break; + } else if (index == str.length() - 1) { + break; + } else { + if (index != 0) { + count++; + } + str = str.substring(index + 1); + } + } + return count; + } + + public static String findArgument(String input, int argNum) { + if (argNum > countArguments(input)) { + return "NOT FOUND"; + } + String str = input; + int count = 0; + while (true) { + count++; + int index = str.indexOf(' '); + if (count == argNum) { + if (index == - 1) { + return str; + } else { + return str.substring(0, index); + } + } + while (true) + if (str.charAt(index + 1) == ' ') { + index++; + } else { + break; + } + str = str.substring(index + 1); + + } + } + + public static String parseDate(String date) { + int firstIndex; + int secondIndex; + if (date.contains("/")) { + firstIndex = date.indexOf("/"); + secondIndex = date.substring(firstIndex + 1).indexOf("/") + firstIndex + 1; + } else if (date.contains("-")) { + firstIndex = date.indexOf("-"); + secondIndex = date.substring(firstIndex + 1).indexOf("-") + firstIndex + 1; + } else if (date.contains(".")) { + firstIndex = date.indexOf("."); + secondIndex = date.substring(firstIndex + 1).indexOf(".") + firstIndex + 1; + } else { + throw new DateTimeException("Not a valid date format(1)"); + } + if (secondIndex == -1) { + throw new DateTimeException("Not a valid date format(2)"); + } + int year; + int month; + int day; + if (firstIndex == 1) { + if (secondIndex == 3) { + day = Integer.parseInt(date.substring(0, 1)); + month = Integer.parseInt(date.substring(2, 3)); + year = Integer.parseInt(date.substring(4, 8)); + } else if (secondIndex == 4) { + day = Integer.parseInt(date.substring(0, 1)); + month = Integer.parseInt(date.substring(2, 4)); + year = Integer.parseInt(date.substring(5, 9)); + } else { + throw new DateTimeException("Not a valid date format(3)"); + } + } else if (firstIndex == 2) { + if (secondIndex == 4) { + day = Integer.parseInt(date.substring(0, 2)); + month = Integer.parseInt(date.substring(3, 4)); + year = Integer.parseInt(date.substring(5, 9)); + } else if (secondIndex == 5) { + day = Integer.parseInt(date.substring(0, 2)); + month = Integer.parseInt(date.substring(3, 5)); + year = Integer.parseInt(date.substring(6, 10)); + } else { + throw new DateTimeException("Not a valid date format(4)"); + } + } else { + throw new DateTimeException("Not a valid date format(5)"); + } + try { + LocalDate.of(year, month, day); + } catch (DateTimeException e) { + throw new DateTimeException("No such day exists!"); + } + String wordDay = Integer.toString(day); + String wordMonth = Integer.toString(month); + if (day < 10) { + wordDay = "0" + day; + } + if (month < 10) { + wordMonth = "0" + month; + } + return String.format("%s%s%d", wordDay, wordMonth, year); + } + + public static String parseWordDate(String date) { + if (date.length() != 11) { + throw new DateTimeException("Not recognised!"); + } + String wordDate = date.substring(3, 6); + String numDate; + switch (wordDate) { + case "Jan": + numDate = "01"; + break; + case "Feb": + numDate = "02"; + break; + case "Mar": + numDate = "03"; + break; + case "Apr": + numDate = "04"; + break; + case "May": + numDate = "05"; + break; + case "Jun": + numDate = "06"; + break; + case "Jul": + numDate = "07"; + break; + case "Aug": + numDate = "08"; + break; + case "Sep": + numDate = "09"; + break; + case "Oct": + numDate = "10"; + break; + case "Nov": + numDate = "11"; + break; + case "Dec": + numDate = "12"; + break; + default: + numDate = "00"; + } + return date.substring(0, 2) + numDate + date.substring(7); + } + + public static String intToWordMonth(int m) { + switch (m) { + case 1: + return "Jan"; + case 2: + return "Feb"; + case 3: + return "Mar"; + case 4: + return "Apr"; + case 5: + return "May"; + case 6: + return "Jun"; + case 7: + return "Jul"; + case 8: + return "Aug"; + case 9: + return "Sep"; + case 10: + return "Oct"; + case 11: + return "Nov"; + case 12: + return "Dec"; + default: + return "Nam"; + } + } + + public static String parseTime(String time) { + if (time.length() != 4) { + throw new DateTimeException("Time should be provided as 4 digits as per the 24 hour clock"); + } + try { + int intTime = Integer.parseInt(time); + int hour = intTime / 100; + if (hour > 23) { + throw new DateTimeException("No such time exists!"); + } + int minute = intTime - hour * 100; + if (minute > 59) { + throw new DateTimeException("No such time exists!"); + } + } catch (NumberFormatException e) { + throw new DateTimeException("Please input numbers as time!"); + } + return time; + } + + public static String parse(String input) { + //first remove any whitespace at the start + input = removeStartingWhitespace(input); + if (input.equals("blank")) { + return "blank"; + } + String command = findArgument(input, 1).toLowerCase(); + switch (command) { + case "bye": + if (countArguments(input) != 1) { + throw new IllegalArgumentException("Who is that?"); + } + return "bye"; + case "list": + if (countArguments(input) != 1) { + throw new IllegalArgumentException("Just use 'list'!"); + } + return "list"; + case "mark": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command mark"); + } + input = removeWhitespace(input); + try { + Integer.parseInt(input.substring(4)); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + return input; + case "unmark": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command unmark"); + } + input = removeWhitespace(input); + try { + Integer.parseInt(input.substring(6)); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + return input; + + case "delete": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command delete"); + } + input = removeWhitespace(input); + try { + Integer.parseInt(input.substring(6)); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + return input; + + case "deadline": + { + if (countArguments(input) < 4) { + String message = "To add a deadline task, enter a task name followed by /by and then a deadline"; + throw new IllegalArgumentException(message); + } + if (countArguments(input) > 5) { + throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); + } + if (!findArgument(input, 3).equalsIgnoreCase("/by")) { + throw new IllegalArgumentException("You need to include /by to specify the deadline"); + } + String date = findArgument(input, 4); + date = parseDate(date); + String task_name = findArgument(input, 2); + if (countArguments(input) == 5) { + String time = findArgument(input, 5); + time = parseTime(time); + return String.format("dwt%s%s%s", date, time, task_name); + } else { + return String.format("dnt%s%s", date, task_name); + } + } + case "event": + { + if (countArguments(input) < 4) { + String message = "To add an event task, enter a task name followed by /at and then the event datetime"; + throw new IllegalArgumentException(message); + } + if (countArguments(input) > 5) { + throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); + } + if (!findArgument(input, 3).equalsIgnoreCase("/at")) { + throw new IllegalArgumentException("You need to include /at to specify the datetime"); + } + String date = findArgument(input, 4); + date = parseDate(date); + String task_name = findArgument(input, 2); + if (countArguments(input) == 5) { + String time = findArgument(input, 5); + time = parseTime(time); + return String.format("ewt%s%s%s", date, time, task_name); + } else { + return String.format("ent%s%s", date, task_name); + } + } + case "todo": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command todo"); + } + return removeWhitespace(input); + default: + return "invalid"; + } + } +} \ No newline at end of file diff --git a/src/main/java/Storage.java b/src/main/java/Storage.java new file mode 100644 index 0000000000..fdaa171274 --- /dev/null +++ b/src/main/java/Storage.java @@ -0,0 +1,127 @@ +import java.io.*; +import java.util.ArrayList; +import java.util.InputMismatchException; + +public class Storage { + + private final String filePath; + + public Storage(String filePath) { + this.filePath = filePath; + } + + //read text from entire file + public String readFromFile() throws IOException { + BufferedReader reader = new BufferedReader(new FileReader(filePath)); + StringBuilder outputMessage = new StringBuilder(); + String line = reader.readLine(); + while(line != null) { + outputMessage.append(line); + outputMessage.append("\n"); + line = reader.readLine(); + } + reader.close(); + return outputMessage.toString(); + } + + public void writeToFile(String content) throws IOException { + BufferedWriter writer = new BufferedWriter(new FileWriter(filePath)); + writer.write(content); + writer.close(); + } + + public String readLine(int lineNum) throws IOException { + BufferedReader reader = new BufferedReader(new FileReader(filePath)); + String line = "INIT"; + int counter = 0; + while(line != null) { + counter++; + line = reader.readLine(); + if (counter == lineNum) { + return line; + } + } + reader.close(); + return null; + } + + public boolean editLine(String content, int lineNum) throws IOException { + BufferedReader reader = new BufferedReader(new FileReader(filePath)); + StringBuilder outputMessage = new StringBuilder(); + String line = reader.readLine(); + int counter = 0; + while(line != null) { + counter++; + if (counter == lineNum) { + outputMessage.append(content); + } else { + outputMessage.append(line); + } + outputMessage.append("\n"); + line = reader.readLine(); + } + reader.close(); + writeToFile(outputMessage.toString()); + return lineNum <= counter; + } + + public void addLine(String content) throws IOException { + String fileContent = readFromFile(); + fileContent += content + "\n"; + writeToFile(fileContent); + } + + public ArrayList load() throws IOException { + try { + String line = readLine(1); + int lineNum = 1; + ArrayList listOfTasks = new ArrayList<>(); + while (line != null) { + Task task; + if (line.charAt(1) == 'D') { + int index = line.indexOf('|'); + String taskName = line.substring(7, index - 1); + String date = line.substring(index + 2, index + 13); + date = Parser.parseWordDate(date); + if (line.length() > index + 13) { + String time = line.substring(index + 14); + task = new Task.DeadlineTask(taskName, date, time); + } else { + task = new Task.DeadlineTask(taskName, date); + } + } else if (line.charAt(1) == 'E') { + int index = line.indexOf('|'); + String taskName = line.substring(7, index - 1); + String date = line.substring(index + 2, index + 13); + date = Parser.parseWordDate(date); + if (line.length() > index + 13) { + String time = line.substring(index + 14); + task = new Task.DeadlineTask(taskName, date, time); + } else { + task = new Task.DeadlineTask(taskName, date); + } + } else if (line.charAt(1) == 'T') { + String taskName = line.substring(7); + task = new Task.TodoTask(taskName); + } else { + throw new InputMismatchException(); + } + if (line.charAt(4) == '1') { + task.markComplete(); + } + listOfTasks.add(task); + lineNum++; + line = readLine(lineNum); + } + return listOfTasks; + } catch (FileNotFoundException e) { + System.out.println("No file found to read from"); + } catch (IOException e) { + System.out.println("Unknown IO Exception"); + } catch (NullPointerException | InputMismatchException e) { + System.out.println("Input file format not recognised"); + } + return new ArrayList<>(); + } + +} diff --git a/src/main/java/Task.java b/src/main/java/Task.java index 16123a98a2..fcfac46db7 100644 --- a/src/main/java/Task.java +++ b/src/main/java/Task.java @@ -1,44 +1,9 @@ -import java.time.DateTimeException; import java.time.LocalDateTime; -import java.util.InputMismatchException; public abstract class Task { private final String taskName; private boolean isCompleted; - public static String[] months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; - - public static int monthToInt(String month) { - switch (month) { - case "Jan": - return 1; - case "Feb": - return 2; - case "Mar": - return 3; - case "Apr": - return 4; - case "May": - return 5; - case "Jun": - return 6; - case "Jul": - return 7; - case "Aug": - return 8; - case "Sep": - return 9; - case "Oct": - return 10; - case "Nov": - return 11; - case "Dec": - return 12; - default: - return 0; - } - } - public static class TodoTask extends Task { public TodoTask(String name) { @@ -62,79 +27,22 @@ public static class DeadlineTask extends Task { public DeadlineTask(String name, String date) { super(name); - int firstIndex; - int secondIndex; - if (date.contains("/")) { - firstIndex = date.indexOf("/"); - secondIndex = date.substring(firstIndex + 1).indexOf("/") + firstIndex + 1; - } else if (date.contains("-")) { - firstIndex = date.indexOf("-"); - secondIndex = date.substring(firstIndex + 1).indexOf("-") + firstIndex + 1; - } else if (date.contains(".")) { - firstIndex = date.indexOf("."); - secondIndex = date.substring(firstIndex + 1).indexOf(".") + firstIndex + 1; - } else { - throw new InputMismatchException(); - } - if (secondIndex == -1) { - throw new InputMismatchException(); - } - int year; - int month; - int day; - boolean hasTime = false; - int hour = 0; - int minute = 0; - if (firstIndex == 1) { - if (secondIndex == 3) { - day = Integer.parseInt(date.substring(0, 1)); - month = Integer.parseInt(date.substring(2, 3)); - year = Integer.parseInt(date.substring(4, 8)); - if (date.length() > 9) { - hasTime = true; - hour = Integer.parseInt(date.substring(9, 11)); - minute = Integer.parseInt(date.substring(11, 13)); - } - } else if (secondIndex == 4) { - day = Integer.parseInt(date.substring(0, 1)); - month = Integer.parseInt(date.substring(2, 4)); - year = Integer.parseInt(date.substring(5, 9)); - if (date.length() > 10) { - hasTime = true; - hour = Integer.parseInt(date.substring(10, 12)); - minute = Integer.parseInt(date.substring(12, 14)); - } - } else { - throw new InputMismatchException(); - } - } else if (firstIndex == 2) { - if (secondIndex == 4) { - day = Integer.parseInt(date.substring(0, 2)); - month = Integer.parseInt(date.substring(3, 4)); - year = Integer.parseInt(date.substring(5, 9)); - if (date.length() > 10) { - hasTime = true; - hour = Integer.parseInt(date.substring(10, 12)); - minute = Integer.parseInt(date.substring(12, 14)); - } - } else if (secondIndex == 5) { - day = Integer.parseInt(date.substring(0, 2)); - month = Integer.parseInt(date.substring(3, 5)); - year = Integer.parseInt(date.substring(6, 10)); - if (date.length() > 11) { - hasTime = true; - hour = Integer.parseInt(date.substring(11, 13)); - minute = Integer.parseInt(date.substring(13, 15)); - } - } else { - throw new InputMismatchException(); - } - } else { - throw new InputMismatchException(); - } - deadline = LocalDateTime.of(year, month, day, hour, minute); - this.hasTime = hasTime; + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + deadline = LocalDateTime.of(year, month, day, 0, 0); + hasTime = false; + } + public DeadlineTask(String name, String date, String time) { + super(name); + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + int hour = Integer.parseInt(time.substring(0, 2)); + int minute = Integer.parseInt(time.substring(2, 4)); + deadline = LocalDateTime.of(year, month, day, hour, minute); + hasTime = true; } @Override @@ -143,17 +51,17 @@ public String toString() { if (isCompleted()) { completed = 1; } - String wordMonth = months[deadline.getDayOfMonth() - 1]; - String wordDay = String.valueOf(deadline.getMonth().getValue()); + String wordMonth = Parser.intToWordMonth(deadline.getMonth().getValue()); + String wordDay = String.valueOf(deadline.getDayOfMonth()); if (deadline.getDayOfMonth() < 10) { wordDay = "0" + wordDay; } String wordMinute = String.valueOf(deadline.getMinute()); - if (deadline.getMinute() == 0) { + if (deadline.getMinute() < 10) { wordMinute = "0" + wordMinute; } String wordHour = String.valueOf(deadline.getHour()); - if (deadline.getHour() == 0) { + if (deadline.getHour() < 10) { wordHour = "0" + wordHour; } if (hasTime) { @@ -175,79 +83,22 @@ public static class EventTask extends Task { public EventTask(String name, String date) { super(name); - int firstIndex; - int secondIndex; - if (date.contains("/")) { - firstIndex = date.indexOf("/"); - secondIndex = date.substring(firstIndex + 1).indexOf("/") + firstIndex + 1; - } else if (date.contains("-")) { - firstIndex = date.indexOf("-"); - secondIndex = date.substring(firstIndex + 1).indexOf("-") + firstIndex + 1; - } else if (date.contains(".")) { - firstIndex = date.indexOf("."); - secondIndex = date.substring(firstIndex + 1).indexOf(".") + firstIndex + 1; - } else { - throw new InputMismatchException(); - } - if (secondIndex == -1) { - throw new InputMismatchException(); - } - int year; - int month; - int day; - boolean hasTime = false; - int hour = 0; - int minute = 0; - if (firstIndex == 1) { - if (secondIndex == 3) { - day = Integer.parseInt(date.substring(0, 1)); - month = Integer.parseInt(date.substring(2, 3)); - year = Integer.parseInt(date.substring(4, 8)); - if (date.length() > 9) { - hasTime = true; - hour = Integer.parseInt(date.substring(9, 11)); - minute = Integer.parseInt(date.substring(11, 13)); - } - } else if (secondIndex == 4) { - day = Integer.parseInt(date.substring(0, 1)); - month = Integer.parseInt(date.substring(2, 4)); - year = Integer.parseInt(date.substring(5, 9)); - if (date.length() > 10) { - hasTime = true; - hour = Integer.parseInt(date.substring(10, 12)); - minute = Integer.parseInt(date.substring(12, 14)); - } - } else { - throw new InputMismatchException(); - } - } else if (firstIndex == 2) { - if (secondIndex == 4) { - day = Integer.parseInt(date.substring(0, 2)); - month = Integer.parseInt(date.substring(3, 4)); - year = Integer.parseInt(date.substring(5, 9)); - if (date.length() > 10) { - hasTime = true; - hour = Integer.parseInt(date.substring(10, 12)); - minute = Integer.parseInt(date.substring(12, 14)); - } - } else if (secondIndex == 5) { - day = Integer.parseInt(date.substring(0, 2)); - month = Integer.parseInt(date.substring(3, 5)); - year = Integer.parseInt(date.substring(6, 10)); - if (date.length() > 11) { - hasTime = true; - hour = Integer.parseInt(date.substring(11, 13)); - minute = Integer.parseInt(date.substring(13, 15)); - } - } else { - throw new InputMismatchException(); - } - } else { - throw new InputMismatchException(); - } - datetime = LocalDateTime.of(year, month, day, hour, minute); - this.hasTime = hasTime; + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + datetime = LocalDateTime.of(year, month, day, 0, 0); + hasTime = false; + } + public EventTask(String name, String date, String time) { + super(name); + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + int hour = Integer.parseInt(time.substring(0, 2)); + int minute = Integer.parseInt(time.substring(2, 4)); + datetime = LocalDateTime.of(year, month, day, hour, minute); + hasTime = true; } @Override @@ -256,17 +107,17 @@ public String toString() { if (isCompleted()) { completed = 1; } - String wordMonth = months[datetime.getMonth().getValue() - 1]; + String wordMonth = Parser.intToWordMonth(datetime.getMonth().getValue()); String wordDay = String.valueOf(datetime.getDayOfMonth()); if (datetime.getDayOfMonth() < 10) { wordDay = "0" + wordDay; } String wordMinute = String.valueOf(datetime.getMinute()); - if (datetime.getMinute() == 0) { + if (datetime.getMinute() < 10) { wordMinute = "0" + wordMinute; } String wordHour = String.valueOf(datetime.getHour()); - if (datetime.getHour() == 0) { + if (datetime.getHour() < 10) { wordHour = "0" + wordHour; } if (hasTime) { @@ -277,9 +128,9 @@ public String toString() { return String.format("[E][%d] %s | %s %s %d", completed, getTaskName(), wordDay, wordMonth, datetime.getYear()); } - } } + public Task(String name) { taskName = name; isCompleted = false; @@ -301,12 +152,4 @@ public boolean isCompleted() { return isCompleted; } - @Override - public String toString() { - if (isCompleted) { - return String.format("[X] %s", taskName); - } else { - return String.format("[ ] %s", taskName); - } - } } \ No newline at end of file diff --git a/src/main/java/TaskList.java b/src/main/java/TaskList.java new file mode 100644 index 0000000000..80335651fd --- /dev/null +++ b/src/main/java/TaskList.java @@ -0,0 +1,71 @@ +import java.util.ArrayList; + +public class TaskList { + + private final ArrayList taskList; + + public TaskList(ArrayList taskList) { + this.taskList = taskList; + } + + public TaskList() { + taskList = new ArrayList<>(); + } + + public void add(Task task) { + taskList.add(task); + } + + public String list() { + StringBuilder listOfTasks = new StringBuilder(); + for (Task task : taskList) { + listOfTasks.append(task); + listOfTasks.append("\n"); + } + return listOfTasks.toString(); + } + + public int size() { + return taskList.size(); + } + + public Task mark(int taskNum) throws IndexOutOfBoundsException { + try { + Task task = taskList.get(taskNum - 1); + task.markComplete(); + return task; + } catch (IndexOutOfBoundsException e) { + throw new IndexOutOfBoundsException("No such task!"); + } + } + + public Task unmark(int taskNum) throws IndexOutOfBoundsException { + try { + Task task = taskList.get(taskNum - 1); + task.markIncomplete(); + return task; + } catch (IndexOutOfBoundsException e) { + throw new IndexOutOfBoundsException("No such task!"); + } + } + + public Task delete(int taskNum) throws IndexOutOfBoundsException { + try { + return taskList.remove(taskNum - 1); + } catch (IndexOutOfBoundsException e) { + throw new IndexOutOfBoundsException("No such task!"); + } + } + + +} + + + + + + + + + + diff --git a/src/main/java/Ui.java b/src/main/java/Ui.java new file mode 100644 index 0000000000..091186c52f --- /dev/null +++ b/src/main/java/Ui.java @@ -0,0 +1,21 @@ +import java.util.Scanner; + +public class Ui { + + public void showLoadingError() { + System.out.println("Unable to load from file. Check if the file exists and whether it was formatted properly."); + } + + public void showWritingError() { + System.out.println("Unable to find file to write to"); + } + + public void display(String output) { + System.out.println(output); + } + + public void displayError(Exception e) { + System.out.println(e.getMessage()); + } + +} From 4d4f45dfe2ce8110991bfc9eb24afd5ad8e3e1e4 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Sun, 4 Sep 2022 03:45:07 +0800 Subject: [PATCH 14/38] Place all Duke related Java files into packages --- README.md | 4 ++-- data/Duke.txt | 2 +- src/main/java/duke/Command.java | 5 +++++ src/main/java/{ => duke}/Duke.java | 13 ++++++++----- src/main/java/{ => duke}/Parser.java | 2 ++ src/main/java/{ => duke}/Storage.java | 2 ++ src/main/java/{ => duke}/Task.java | 2 ++ src/main/java/{ => duke}/TaskList.java | 4 ++++ src/main/java/{ => duke}/Ui.java | 7 +++++++ text-ui-test/EXPECTED.TXT | 2 +- 10 files changed, 34 insertions(+), 9 deletions(-) create mode 100644 src/main/java/duke/Command.java rename src/main/java/{ => duke}/Duke.java (95%) rename src/main/java/{ => duke}/Parser.java (99%) rename src/main/java/{ => duke}/Storage.java (99%) rename src/main/java/{ => duke}/Task.java (99%) rename src/main/java/{ => duke}/TaskList.java (93%) rename src/main/java/{ => duke}/Ui.java (79%) diff --git a/README.md b/README.md index 8715d4d915..0f2208ab64 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Duke project template +# duke.Duke project template This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it. @@ -13,7 +13,7 @@ Prerequisites: JDK 11, update Intellij to the most recent version. 1. If there are any further prompts, accept the defaults. 1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).
In the same dialog, set the **Project language level** field to the `SDK default` option. -3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output: +3. After that, locate the `src/main/java/duke.Duke.java` file, right-click it, and choose `Run duke.Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output: ``` Hello from ____ _ diff --git a/data/Duke.txt b/data/Duke.txt index 9ddc719aa3..12a6655198 100644 --- a/data/Duke.txt +++ b/data/Duke.txt @@ -1 +1 @@ -[D][0] blab | 02 Mar 2022 1807 +[D][0] blab | 02 Mar 2022 1807 \ No newline at end of file diff --git a/src/main/java/duke/Command.java b/src/main/java/duke/Command.java new file mode 100644 index 0000000000..25ab26b320 --- /dev/null +++ b/src/main/java/duke/Command.java @@ -0,0 +1,5 @@ +package duke; + +public class Command { + +} diff --git a/src/main/java/Duke.java b/src/main/java/duke/Duke.java similarity index 95% rename from src/main/java/Duke.java rename to src/main/java/duke/Duke.java index 56aa9582c5..7b5d04748b 100644 --- a/src/main/java/Duke.java +++ b/src/main/java/duke/Duke.java @@ -1,3 +1,5 @@ +package duke; + import java.io.IOException; import java.time.DateTimeException; import java.util.Scanner; @@ -13,21 +15,22 @@ public Duke(String filePath) { storage = new Storage(filePath); try { tasks = new TaskList(storage.load()); - } catch (IOException e) { + } catch (Exception e) { ui.showLoadingError(); tasks = new TaskList(); } } public void run() { - System.out.println("Hi, I'm Duke. What may I do for you?"); - while (true) { + ui.showWelcome(); + boolean isExit = false; + while (!isExit) { try { Scanner sc = new Scanner(System.in); String input = sc.nextLine(); String parsedInput = Parser.parse(input); if (parsedInput.equalsIgnoreCase("bye")) { - break; + isExit = true; } else if (parsedInput.equalsIgnoreCase("list")) { ui.display(tasks.list()); } else if (parsedInput.toLowerCase().startsWith("mark")) { @@ -100,7 +103,7 @@ public void run() { } public static void main(String[] args) { - new Duke("data/Duke.txt").run(); + new Duke("data/duke.Duke.txt").run(); } } diff --git a/src/main/java/Parser.java b/src/main/java/duke/Parser.java similarity index 99% rename from src/main/java/Parser.java rename to src/main/java/duke/Parser.java index 9761637c89..0f0347a557 100644 --- a/src/main/java/Parser.java +++ b/src/main/java/duke/Parser.java @@ -1,3 +1,5 @@ +package duke; + import java.time.DateTimeException; import java.time.LocalDate; diff --git a/src/main/java/Storage.java b/src/main/java/duke/Storage.java similarity index 99% rename from src/main/java/Storage.java rename to src/main/java/duke/Storage.java index fdaa171274..43a2c4880a 100644 --- a/src/main/java/Storage.java +++ b/src/main/java/duke/Storage.java @@ -1,3 +1,5 @@ +package duke; + import java.io.*; import java.util.ArrayList; import java.util.InputMismatchException; diff --git a/src/main/java/Task.java b/src/main/java/duke/Task.java similarity index 99% rename from src/main/java/Task.java rename to src/main/java/duke/Task.java index fcfac46db7..0967f11968 100644 --- a/src/main/java/Task.java +++ b/src/main/java/duke/Task.java @@ -1,3 +1,5 @@ +package duke; + import java.time.LocalDateTime; public abstract class Task { diff --git a/src/main/java/TaskList.java b/src/main/java/duke/TaskList.java similarity index 93% rename from src/main/java/TaskList.java rename to src/main/java/duke/TaskList.java index 80335651fd..6362f897d5 100644 --- a/src/main/java/TaskList.java +++ b/src/main/java/duke/TaskList.java @@ -1,3 +1,5 @@ +package duke; + import java.util.ArrayList; public class TaskList { @@ -22,6 +24,8 @@ public String list() { listOfTasks.append(task); listOfTasks.append("\n"); } + int last = listOfTasks.lastIndexOf("\n"); + listOfTasks.deleteCharAt(last); return listOfTasks.toString(); } diff --git a/src/main/java/Ui.java b/src/main/java/duke/Ui.java similarity index 79% rename from src/main/java/Ui.java rename to src/main/java/duke/Ui.java index 091186c52f..ec35c25156 100644 --- a/src/main/java/Ui.java +++ b/src/main/java/duke/Ui.java @@ -1,7 +1,14 @@ +package duke; + import java.util.Scanner; public class Ui { + + public void showWelcome() { + System.out.println("Hi I'm duke.Duke! What may I do for you?"); + } + public void showLoadingError() { System.out.println("Unable to load from file. Check if the file exists and whether it was formatted properly."); } diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index 926b142900..e276b40e3f 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -1,3 +1,3 @@ -Hi, I'm Duke. What can I do for you? +Hi, I'm duke.Duke. What can I do for you? I've added this task: [D][ ] CS2013 (By: 1 September) \ No newline at end of file From 304acb15768548d7b10d1c12da2736f2dd4445c9 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Tue, 6 Sep 2022 23:53:50 +0800 Subject: [PATCH 15/38] Add more packages and classes for organisation --- build.gradle | 1 + src/main/java/duke/Command.java | 5 - src/main/java/duke/Duke.java | 16 +- src/main/java/duke/Storage.java | 15 +- src/main/java/duke/Task.java | 157 ------------------ src/main/java/duke/TaskList.java | 2 + src/main/java/duke/Ui.java | 4 + .../java/duke/command/AddDeadlineCommand.java | 20 +++ .../java/duke/command/AddEventCommand.java | 20 +++ .../java/duke/command/AddTodoCommand.java | 20 +++ src/main/java/duke/command/ByeCommand.java | 21 +++ src/main/java/duke/command/Command.java | 13 ++ src/main/java/duke/command/DeleteCommand.java | 20 +++ src/main/java/duke/command/ListCommand.java | 20 +++ src/main/java/duke/command/MarkCommand.java | 20 +++ src/main/java/duke/command/UnmarkCommand.java | 20 +++ src/main/java/duke/task/DeadlineTask.java | 61 +++++++ src/main/java/duke/task/EventTask.java | 60 +++++++ src/main/java/duke/task/Task.java | 28 ++++ src/main/java/duke/task/TodoTask.java | 19 +++ 20 files changed, 370 insertions(+), 172 deletions(-) delete mode 100644 src/main/java/duke/Command.java delete mode 100644 src/main/java/duke/Task.java create mode 100644 src/main/java/duke/command/AddDeadlineCommand.java create mode 100644 src/main/java/duke/command/AddEventCommand.java create mode 100644 src/main/java/duke/command/AddTodoCommand.java create mode 100644 src/main/java/duke/command/ByeCommand.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/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/task/DeadlineTask.java create mode 100644 src/main/java/duke/task/EventTask.java create mode 100644 src/main/java/duke/task/Task.java create mode 100644 src/main/java/duke/task/TodoTask.java diff --git a/build.gradle b/build.gradle index 885198fcfa..3439ee6da2 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' } diff --git a/src/main/java/duke/Command.java b/src/main/java/duke/Command.java deleted file mode 100644 index 25ab26b320..0000000000 --- a/src/main/java/duke/Command.java +++ /dev/null @@ -1,5 +0,0 @@ -package duke; - -public class Command { - -} diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index 7b5d04748b..229c8526ba 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -1,5 +1,10 @@ package duke; +import duke.task.Task; +import duke.task.TodoTask; +import duke.task.DeadlineTask; +import duke.task.EventTask; + import java.io.IOException; import java.time.DateTimeException; import java.util.Scanner; @@ -61,31 +66,31 @@ public void run() { String date = parsedInput.substring(3, 11); String time = parsedInput.substring(11, 15); String taskName = parsedInput.substring(15); - Task task = new Task.DeadlineTask(taskName, date, time); + Task task = new DeadlineTask(taskName, date, time); tasks.add(task); ui.display(String.format("Added new deadline task:%n%s%n", task)); } else if (parsedInput.toLowerCase().startsWith("dnt")) { String date = parsedInput.substring(3, 11); String taskName = parsedInput.substring(11); - Task task = new Task.DeadlineTask(taskName, date); + Task task = new DeadlineTask(taskName, date); tasks.add(task); ui.display(String.format("Added new deadline task:%n%s%n", task)); } else if (parsedInput.toLowerCase().startsWith("ewt")) { String date = parsedInput.substring(3, 11); String time = parsedInput.substring(11, 15); String taskName = parsedInput.substring(15); - Task task = new Task.EventTask(taskName, date, time); + Task task = new EventTask(taskName, date, time); tasks.add(task); ui.display(String.format("Added new event task:%n%s%n", task)); } else if (parsedInput.toLowerCase().startsWith("ent")) { String date = parsedInput.substring(3, 11); String taskName = parsedInput.substring(11); - Task task = new Task.EventTask(taskName, date); + Task task = new EventTask(taskName, date); tasks.add(task); ui.display(String.format("Added new event task:%n%s%n", task)); } else if (parsedInput.toLowerCase().startsWith("todo")) { String taskName = parsedInput.substring(4); - Task task = new Task.TodoTask(taskName); + Task task = new TodoTask(taskName); tasks.add(task); ui.display(String.format("Added new todo task:%n%s%n", task)); } else { @@ -99,6 +104,7 @@ public void run() { } catch (DateTimeException | IllegalArgumentException e) { ui.displayError(e); } + ui.showGoodbye(); } } diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index 43a2c4880a..f3affb70c6 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -1,5 +1,10 @@ package duke; +import duke.task.Task; +import duke.task.TodoTask; +import duke.task.DeadlineTask; +import duke.task.EventTask; + import java.io.*; import java.util.ArrayList; import java.util.InputMismatchException; @@ -87,9 +92,9 @@ public ArrayList load() throws IOException { date = Parser.parseWordDate(date); if (line.length() > index + 13) { String time = line.substring(index + 14); - task = new Task.DeadlineTask(taskName, date, time); + task = new DeadlineTask(taskName, date, time); } else { - task = new Task.DeadlineTask(taskName, date); + task = new DeadlineTask(taskName, date); } } else if (line.charAt(1) == 'E') { int index = line.indexOf('|'); @@ -98,13 +103,13 @@ public ArrayList load() throws IOException { date = Parser.parseWordDate(date); if (line.length() > index + 13) { String time = line.substring(index + 14); - task = new Task.DeadlineTask(taskName, date, time); + task = new EventTask(taskName, date, time); } else { - task = new Task.DeadlineTask(taskName, date); + task = new EventTask(taskName, date); } } else if (line.charAt(1) == 'T') { String taskName = line.substring(7); - task = new Task.TodoTask(taskName); + task = new TodoTask(taskName); } else { throw new InputMismatchException(); } diff --git a/src/main/java/duke/Task.java b/src/main/java/duke/Task.java deleted file mode 100644 index 0967f11968..0000000000 --- a/src/main/java/duke/Task.java +++ /dev/null @@ -1,157 +0,0 @@ -package duke; - -import java.time.LocalDateTime; - -public abstract class Task { - private final String taskName; - private boolean isCompleted; - - public static class TodoTask extends Task { - - public TodoTask(String name) { - super(name); - } - - @Override - public String toString() { - if (isCompleted()) { - return String.format("[T][1] %s", getTaskName()); - } else { - return String.format("[T][0] %s", getTaskName()); - } - } - } - - public static class DeadlineTask extends Task { - - private final LocalDateTime deadline; - private final boolean hasTime; - - public DeadlineTask(String name, String date) { - super(name); - int day = Integer.parseInt(date.substring(0, 2)); - int month = Integer.parseInt(date.substring(2, 4)); - int year = Integer.parseInt(date.substring(4)); - deadline = LocalDateTime.of(year, month, day, 0, 0); - hasTime = false; - } - - public DeadlineTask(String name, String date, String time) { - super(name); - int day = Integer.parseInt(date.substring(0, 2)); - int month = Integer.parseInt(date.substring(2, 4)); - int year = Integer.parseInt(date.substring(4)); - int hour = Integer.parseInt(time.substring(0, 2)); - int minute = Integer.parseInt(time.substring(2, 4)); - deadline = LocalDateTime.of(year, month, day, hour, minute); - hasTime = true; - } - - @Override - public String toString() { - int completed = 0; - if (isCompleted()) { - completed = 1; - } - String wordMonth = Parser.intToWordMonth(deadline.getMonth().getValue()); - String wordDay = String.valueOf(deadline.getDayOfMonth()); - if (deadline.getDayOfMonth() < 10) { - wordDay = "0" + wordDay; - } - String wordMinute = String.valueOf(deadline.getMinute()); - if (deadline.getMinute() < 10) { - wordMinute = "0" + wordMinute; - } - String wordHour = String.valueOf(deadline.getHour()); - if (deadline.getHour() < 10) { - wordHour = "0" + wordHour; - } - if (hasTime) { - return String.format("[D][%d] %s | %s %s %d %s%s ", completed, getTaskName(), - wordDay, wordMonth, deadline.getYear(), - wordHour, wordMinute); - } else { - return String.format("[D][%d] %s | %s %s %d", completed, getTaskName(), - wordDay, wordMonth, deadline.getYear()); - } - - } - } - - public static class EventTask extends Task { - - private final LocalDateTime datetime; - private final boolean hasTime; - - public EventTask(String name, String date) { - super(name); - int day = Integer.parseInt(date.substring(0, 2)); - int month = Integer.parseInt(date.substring(2, 4)); - int year = Integer.parseInt(date.substring(4)); - datetime = LocalDateTime.of(year, month, day, 0, 0); - hasTime = false; - } - - public EventTask(String name, String date, String time) { - super(name); - int day = Integer.parseInt(date.substring(0, 2)); - int month = Integer.parseInt(date.substring(2, 4)); - int year = Integer.parseInt(date.substring(4)); - int hour = Integer.parseInt(time.substring(0, 2)); - int minute = Integer.parseInt(time.substring(2, 4)); - datetime = LocalDateTime.of(year, month, day, hour, minute); - hasTime = true; - } - - @Override - public String toString() { - int completed = 0; - if (isCompleted()) { - completed = 1; - } - String wordMonth = Parser.intToWordMonth(datetime.getMonth().getValue()); - String wordDay = String.valueOf(datetime.getDayOfMonth()); - if (datetime.getDayOfMonth() < 10) { - wordDay = "0" + wordDay; - } - String wordMinute = String.valueOf(datetime.getMinute()); - if (datetime.getMinute() < 10) { - wordMinute = "0" + wordMinute; - } - String wordHour = String.valueOf(datetime.getHour()); - if (datetime.getHour() < 10) { - wordHour = "0" + wordHour; - } - if (hasTime) { - return String.format("[E][%d] %s | %s %s %d %s%s ", completed, getTaskName(), - wordDay, wordMonth, datetime.getYear(), - wordHour, wordMinute); - } else { - return String.format("[E][%d] %s | %s %s %d", completed, getTaskName(), - wordDay, wordMonth, datetime.getYear()); - } - } - } - - public Task(String name) { - taskName = name; - isCompleted = false; - } - - public String getTaskName() { - return taskName; - } - - public void markComplete() { - isCompleted = true; - } - - public void markIncomplete() { - isCompleted = false; - } - - public boolean isCompleted() { - return isCompleted; - } - -} \ No newline at end of file diff --git a/src/main/java/duke/TaskList.java b/src/main/java/duke/TaskList.java index 6362f897d5..f9711a2cda 100644 --- a/src/main/java/duke/TaskList.java +++ b/src/main/java/duke/TaskList.java @@ -1,5 +1,7 @@ package duke; +import duke.task.Task; + import java.util.ArrayList; public class TaskList { diff --git a/src/main/java/duke/Ui.java b/src/main/java/duke/Ui.java index ec35c25156..76fcfe7ecf 100644 --- a/src/main/java/duke/Ui.java +++ b/src/main/java/duke/Ui.java @@ -9,6 +9,10 @@ public void showWelcome() { System.out.println("Hi I'm duke.Duke! What may I do for you?"); } + public void showGoodbye() { + System.out.println("Bye!"); + } + public void showLoadingError() { System.out.println("Unable to load from file. Check if the file exists and whether it was formatted properly."); } diff --git a/src/main/java/duke/command/AddDeadlineCommand.java b/src/main/java/duke/command/AddDeadlineCommand.java new file mode 100644 index 0000000000..5a941f38f1 --- /dev/null +++ b/src/main/java/duke/command/AddDeadlineCommand.java @@ -0,0 +1,20 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class AddDeadlineCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} \ No newline at end of file diff --git a/src/main/java/duke/command/AddEventCommand.java b/src/main/java/duke/command/AddEventCommand.java new file mode 100644 index 0000000000..51f11dba47 --- /dev/null +++ b/src/main/java/duke/command/AddEventCommand.java @@ -0,0 +1,20 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class AddEventCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} \ No newline at end of file diff --git a/src/main/java/duke/command/AddTodoCommand.java b/src/main/java/duke/command/AddTodoCommand.java new file mode 100644 index 0000000000..96a4f7a483 --- /dev/null +++ b/src/main/java/duke/command/AddTodoCommand.java @@ -0,0 +1,20 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class AddTodoCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} diff --git a/src/main/java/duke/command/ByeCommand.java b/src/main/java/duke/command/ByeCommand.java new file mode 100644 index 0000000000..1e806c90ed --- /dev/null +++ b/src/main/java/duke/command/ByeCommand.java @@ -0,0 +1,21 @@ +package duke.command; + + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public class ByeCommand extends Command { + + @Override + public boolean isExit() { + return true; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} diff --git a/src/main/java/duke/command/Command.java b/src/main/java/duke/command/Command.java new file mode 100644 index 0000000000..09192f0b91 --- /dev/null +++ b/src/main/java/duke/command/Command.java @@ -0,0 +1,13 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class Command { + + public abstract boolean isExit(); + + public abstract void execute(TaskList taskList, Ui ui, Storage storage); + +} diff --git a/src/main/java/duke/command/DeleteCommand.java b/src/main/java/duke/command/DeleteCommand.java new file mode 100644 index 0000000000..c53373723c --- /dev/null +++ b/src/main/java/duke/command/DeleteCommand.java @@ -0,0 +1,20 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class DeleteCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} \ No newline at end of file diff --git a/src/main/java/duke/command/ListCommand.java b/src/main/java/duke/command/ListCommand.java new file mode 100644 index 0000000000..9a8fca9809 --- /dev/null +++ b/src/main/java/duke/command/ListCommand.java @@ -0,0 +1,20 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class ListCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} \ No newline at end of file diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java new file mode 100644 index 0000000000..eb01698c28 --- /dev/null +++ b/src/main/java/duke/command/MarkCommand.java @@ -0,0 +1,20 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class MarkCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java new file mode 100644 index 0000000000..835adcde09 --- /dev/null +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -0,0 +1,20 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public abstract class UnmarkCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} diff --git a/src/main/java/duke/task/DeadlineTask.java b/src/main/java/duke/task/DeadlineTask.java new file mode 100644 index 0000000000..025cd5ad12 --- /dev/null +++ b/src/main/java/duke/task/DeadlineTask.java @@ -0,0 +1,61 @@ +package duke.task; + +import duke.Parser; + +import java.time.LocalDateTime; + +public class DeadlineTask extends Task { + + private final LocalDateTime deadline; + private final boolean hasTime; + + public DeadlineTask(String name, String date) { + super(name); + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + deadline = LocalDateTime.of(year, month, day, 0, 0); + hasTime = false; + } + + public DeadlineTask(String name, String date, String time) { + super(name); + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + int hour = Integer.parseInt(time.substring(0, 2)); + int minute = Integer.parseInt(time.substring(2, 4)); + deadline = LocalDateTime.of(year, month, day, hour, minute); + hasTime = true; + } + + @Override + public String toString() { + int completed = 0; + if (isCompleted()) { + completed = 1; + } + String wordMonth = Parser.intToWordMonth(deadline.getMonth().getValue()); + String wordDay = String.valueOf(deadline.getDayOfMonth()); + if (deadline.getDayOfMonth() < 10) { + wordDay = "0" + wordDay; + } + String wordMinute = String.valueOf(deadline.getMinute()); + if (deadline.getMinute() < 10) { + wordMinute = "0" + wordMinute; + } + String wordHour = String.valueOf(deadline.getHour()); + if (deadline.getHour() < 10) { + wordHour = "0" + wordHour; + } + if (hasTime) { + return String.format("[D][%d] %s | %s %s %d %s%s ", completed, getTaskName(), + wordDay, wordMonth, deadline.getYear(), + wordHour, wordMinute); + } else { + return String.format("[D][%d] %s | %s %s %d", completed, getTaskName(), + wordDay, wordMonth, deadline.getYear()); + } + + } +} \ No newline at end of file diff --git a/src/main/java/duke/task/EventTask.java b/src/main/java/duke/task/EventTask.java new file mode 100644 index 0000000000..ea1cd82399 --- /dev/null +++ b/src/main/java/duke/task/EventTask.java @@ -0,0 +1,60 @@ +package duke.task; + +import duke.Parser; + +import java.time.LocalDateTime; + +public class EventTask extends Task { + + private final LocalDateTime datetime; + private final boolean hasTime; + + public EventTask(String name, String date) { + super(name); + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + datetime = LocalDateTime.of(year, month, day, 0, 0); + hasTime = false; + } + + public EventTask(String name, String date, String time) { + super(name); + int day = Integer.parseInt(date.substring(0, 2)); + int month = Integer.parseInt(date.substring(2, 4)); + int year = Integer.parseInt(date.substring(4)); + int hour = Integer.parseInt(time.substring(0, 2)); + int minute = Integer.parseInt(time.substring(2, 4)); + datetime = LocalDateTime.of(year, month, day, hour, minute); + hasTime = true; + } + + @Override + public String toString() { + int completed = 0; + if (isCompleted()) { + completed = 1; + } + String wordMonth = Parser.intToWordMonth(datetime.getMonth().getValue()); + String wordDay = String.valueOf(datetime.getDayOfMonth()); + if (datetime.getDayOfMonth() < 10) { + wordDay = "0" + wordDay; + } + String wordMinute = String.valueOf(datetime.getMinute()); + if (datetime.getMinute() < 10) { + wordMinute = "0" + wordMinute; + } + String wordHour = String.valueOf(datetime.getHour()); + if (datetime.getHour() < 10) { + wordHour = "0" + wordHour; + } + if (hasTime) { + return String.format("[E][%d] %s | %s %s %d %s%s ", completed, getTaskName(), + wordDay, wordMonth, datetime.getYear(), + wordHour, wordMinute); + } else { + return String.format("[E][%d] %s | %s %s %d", completed, getTaskName(), + wordDay, wordMonth, datetime.getYear()); + } + } +} \ No newline at end of file diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java new file mode 100644 index 0000000000..52ab4ab6a2 --- /dev/null +++ b/src/main/java/duke/task/Task.java @@ -0,0 +1,28 @@ +package duke.task; + +public abstract class Task { + private final String taskName; + private boolean isCompleted; + + public Task(String name) { + taskName = name; + isCompleted = false; + } + + public String getTaskName() { + return taskName; + } + + public void markComplete() { + isCompleted = true; + } + + public void markIncomplete() { + isCompleted = false; + } + + public boolean isCompleted() { + return isCompleted; + } + +} \ No newline at end of file diff --git a/src/main/java/duke/task/TodoTask.java b/src/main/java/duke/task/TodoTask.java new file mode 100644 index 0000000000..5f1bc95115 --- /dev/null +++ b/src/main/java/duke/task/TodoTask.java @@ -0,0 +1,19 @@ +package duke.task; + +import duke.task.Task; + +public class TodoTask extends Task { + + public TodoTask(String name) { + super(name); + } + + @Override + public String toString() { + if (isCompleted()) { + return String.format("[T][1] %s", getTaskName()); + } else { + return String.format("[T][0] %s", getTaskName()); + } + } +} \ No newline at end of file From 609dc798e64e54d1516b9edd8802439de0d2739d Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 01:28:07 +0800 Subject: [PATCH 16/38] Add more classes and error handling --- data/Duke.txt | 3 +- src/main/java/duke/Duke.java | 77 +------ src/main/java/duke/DukeException.java | 9 + src/main/java/duke/Parser.java | 213 +++++++++--------- src/main/java/duke/Ui.java | 4 +- .../java/duke/command/AddDeadlineCommand.java | 26 ++- .../java/duke/command/AddEventCommand.java | 26 ++- .../java/duke/command/AddTodoCommand.java | 21 +- src/main/java/duke/command/ByeCommand.java | 2 +- src/main/java/duke/command/DeleteCommand.java | 22 +- src/main/java/duke/command/ListCommand.java | 4 +- src/main/java/duke/command/MarkCommand.java | 22 +- src/main/java/duke/command/NullCommand.java | 19 ++ src/main/java/duke/command/UnmarkCommand.java | 22 +- .../duke/command/UnrecognisedCommand.java | 19 ++ 15 files changed, 294 insertions(+), 195 deletions(-) create mode 100644 src/main/java/duke/DukeException.java create mode 100644 src/main/java/duke/command/NullCommand.java create mode 100644 src/main/java/duke/command/UnrecognisedCommand.java diff --git a/data/Duke.txt b/data/Duke.txt index 12a6655198..f30952f633 100644 --- a/data/Duke.txt +++ b/data/Duke.txt @@ -1 +1,2 @@ -[D][0] blab | 02 Mar 2022 1807 \ No newline at end of file +[D][0] blab | 02 Mar 2022 1807 +[D][0] CS2103 | 09 Sep 2022 2359 \ No newline at end of file diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index 229c8526ba..47b79dee63 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -4,6 +4,7 @@ import duke.task.TodoTask; import duke.task.DeadlineTask; import duke.task.EventTask; +import duke.command.Command; import java.io.IOException; import java.time.DateTimeException; @@ -33,83 +34,17 @@ public void run() { try { Scanner sc = new Scanner(System.in); String input = sc.nextLine(); - String parsedInput = Parser.parse(input); - if (parsedInput.equalsIgnoreCase("bye")) { - isExit = true; - } else if (parsedInput.equalsIgnoreCase("list")) { - ui.display(tasks.list()); - } else if (parsedInput.toLowerCase().startsWith("mark")) { - int taskNum = Integer.parseInt(parsedInput.substring(4)); - try { - Task task = tasks.mark(taskNum); - ui.display(String.format("I've marked this task as complete:%n%s%n", task)); - } catch (IndexOutOfBoundsException e) { - ui.displayError(e); - } - } else if (parsedInput.toLowerCase().startsWith("unmark")) { - int taskNum = Integer.parseInt(parsedInput.substring(6)); - try { - Task task = tasks.unmark(taskNum); - ui.display(String.format("I've marked this task as incomplete:%n%s%n", task)); - } catch (IndexOutOfBoundsException e) { - ui.displayError(e); - } - } else if (parsedInput.toLowerCase().startsWith("delete")) { - int taskNum = Integer.parseInt(parsedInput.substring(6)); - try { - Task task = tasks.delete(taskNum); - ui.display(String.format("I've deleted this task:%n%s%n", task)); - } catch (IndexOutOfBoundsException e) { - ui.displayError(e); - } - } else if (parsedInput.toLowerCase().startsWith("dwt")) { - String date = parsedInput.substring(3, 11); - String time = parsedInput.substring(11, 15); - String taskName = parsedInput.substring(15); - Task task = new DeadlineTask(taskName, date, time); - tasks.add(task); - ui.display(String.format("Added new deadline task:%n%s%n", task)); - } else if (parsedInput.toLowerCase().startsWith("dnt")) { - String date = parsedInput.substring(3, 11); - String taskName = parsedInput.substring(11); - Task task = new DeadlineTask(taskName, date); - tasks.add(task); - ui.display(String.format("Added new deadline task:%n%s%n", task)); - } else if (parsedInput.toLowerCase().startsWith("ewt")) { - String date = parsedInput.substring(3, 11); - String time = parsedInput.substring(11, 15); - String taskName = parsedInput.substring(15); - Task task = new EventTask(taskName, date, time); - tasks.add(task); - ui.display(String.format("Added new event task:%n%s%n", task)); - } else if (parsedInput.toLowerCase().startsWith("ent")) { - String date = parsedInput.substring(3, 11); - String taskName = parsedInput.substring(11); - Task task = new EventTask(taskName, date); - tasks.add(task); - ui.display(String.format("Added new event task:%n%s%n", task)); - } else if (parsedInput.toLowerCase().startsWith("todo")) { - String taskName = parsedInput.substring(4); - Task task = new TodoTask(taskName); - tasks.add(task); - ui.display(String.format("Added new todo task:%n%s%n", task)); - } else { - ui.display("Sorry I don't recognise that command :("); - } - try { - storage.writeToFile(tasks.list()); - } catch (IOException e) { - ui.showWritingError(); - } - } catch (DateTimeException | IllegalArgumentException e) { + Command command = Parser.parse(input); + command.execute(tasks, ui, storage); + isExit = command.isExit(); + } catch (DukeException e) { ui.displayError(e); } - ui.showGoodbye(); } } public static void main(String[] args) { - new Duke("data/duke.Duke.txt").run(); + new Duke("data/Duke.txt").run(); } } diff --git a/src/main/java/duke/DukeException.java b/src/main/java/duke/DukeException.java new file mode 100644 index 0000000000..cb9a57e7ea --- /dev/null +++ b/src/main/java/duke/DukeException.java @@ -0,0 +1,9 @@ +package duke; + +public class DukeException extends RuntimeException { + + public DukeException(String message) { + super(message); + } + +} diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index 0f0347a557..68adf82c2d 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -1,5 +1,9 @@ package duke; +import duke.command.*; +import duke.task.DeadlineTask; +import duke.task.TodoTask; + import java.time.DateTimeException; import java.time.LocalDate; @@ -82,10 +86,10 @@ public static String parseDate(String date) { firstIndex = date.indexOf("."); secondIndex = date.substring(firstIndex + 1).indexOf(".") + firstIndex + 1; } else { - throw new DateTimeException("Not a valid date format(1)"); + throw new DateTimeException("Not a valid date format"); } if (secondIndex == -1) { - throw new DateTimeException("Not a valid date format(2)"); + throw new DateTimeException("Not a valid date format"); } int year; int month; @@ -100,7 +104,7 @@ public static String parseDate(String date) { month = Integer.parseInt(date.substring(2, 4)); year = Integer.parseInt(date.substring(5, 9)); } else { - throw new DateTimeException("Not a valid date format(3)"); + throw new DateTimeException("Not a valid date format"); } } else if (firstIndex == 2) { if (secondIndex == 4) { @@ -112,10 +116,10 @@ public static String parseDate(String date) { month = Integer.parseInt(date.substring(3, 5)); year = Integer.parseInt(date.substring(6, 10)); } else { - throw new DateTimeException("Not a valid date format(4)"); + throw new DateTimeException("Not a valid date format"); } } else { - throw new DateTimeException("Not a valid date format(5)"); + throw new DateTimeException("Not a valid date format"); } try { LocalDate.of(year, month, day); @@ -233,112 +237,113 @@ public static String parseTime(String time) { return time; } - public static String parse(String input) { + public static Command parse(String input) { //first remove any whitespace at the start input = removeStartingWhitespace(input); if (input.equals("blank")) { - return "blank"; + return new NullCommand(); } - String command = findArgument(input, 1).toLowerCase(); - switch (command) { - case "bye": - if (countArguments(input) != 1) { - throw new IllegalArgumentException("Who is that?"); - } - return "bye"; - case "list": - if (countArguments(input) != 1) { - throw new IllegalArgumentException("Just use 'list'!"); - } - return "list"; - case "mark": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command mark"); - } - input = removeWhitespace(input); - try { - Integer.parseInt(input.substring(4)); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Must input a number!"); - } - return input; - case "unmark": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command unmark"); - } - input = removeWhitespace(input); - try { - Integer.parseInt(input.substring(6)); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Must input a number!"); - } - return input; - - case "delete": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command delete"); - } - input = removeWhitespace(input); - try { - Integer.parseInt(input.substring(6)); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Must input a number!"); - } - return input; - - case "deadline": - { - if (countArguments(input) < 4) { - String message = "To add a deadline task, enter a task name followed by /by and then a deadline"; - throw new IllegalArgumentException(message); - } - if (countArguments(input) > 5) { - throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); - } - if (!findArgument(input, 3).equalsIgnoreCase("/by")) { - throw new IllegalArgumentException("You need to include /by to specify the deadline"); - } - String date = findArgument(input, 4); - date = parseDate(date); - String task_name = findArgument(input, 2); - if (countArguments(input) == 5) { - String time = findArgument(input, 5); - time = parseTime(time); - return String.format("dwt%s%s%s", date, time, task_name); - } else { - return String.format("dnt%s%s", date, task_name); - } - } - case "event": - { - if (countArguments(input) < 4) { - String message = "To add an event task, enter a task name followed by /at and then the event datetime"; - throw new IllegalArgumentException(message); - } - if (countArguments(input) > 5) { - throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); - } - if (!findArgument(input, 3).equalsIgnoreCase("/at")) { - throw new IllegalArgumentException("You need to include /at to specify the datetime"); + try { + String command = findArgument(input, 1).toLowerCase(); + switch (command) { + case "bye": + if (countArguments(input) != 1) { + throw new IllegalArgumentException("Who is that?"); + } + return new ByeCommand(); + case "list": + if (countArguments(input) != 1) { + throw new IllegalArgumentException("Just use 'list'!"); + } + return new ListCommand(); + case "mark": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command mark"); + } + try { + input = (removeWhitespace(input)); + int taskNum = Integer.parseInt(input.substring(4)); + return new MarkCommand(taskNum); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + case "unmark": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command unmark"); + } + try { + input = (removeWhitespace(input)); + int taskNum = Integer.parseInt(input.substring(6)); + return new UnmarkCommand(taskNum); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + case "delete": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command delete"); + } + try { + input = (removeWhitespace(input)); + int taskNum = Integer.parseInt(input.substring(6)); + return new DeleteCommand(taskNum); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + case "deadline": { + if (countArguments(input) < 4) { + String message = "To add a deadline task, enter a task name followed by /by and then a deadline"; + throw new IllegalArgumentException(message); + } + if (countArguments(input) > 5) { + throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); + } + if (!findArgument(input, 3).equalsIgnoreCase("/by")) { + throw new IllegalArgumentException("You need to include /by to specify the deadline"); + } + String taskName = findArgument(input, 2); + String date = findArgument(input, 4); + date = parseDate(date); + if (countArguments(input) == 5) { + String time = findArgument(input, 5); + time = parseTime(time); + return new AddDeadlineCommand(taskName, date, time); + } else { + return new AddDeadlineCommand(taskName, date); + } } - String date = findArgument(input, 4); - date = parseDate(date); - String task_name = findArgument(input, 2); - if (countArguments(input) == 5) { - String time = findArgument(input, 5); - time = parseTime(time); - return String.format("ewt%s%s%s", date, time, task_name); - } else { - return String.format("ent%s%s", date, task_name); + case "event": { + if (countArguments(input) < 4) { + String message = "To add an event task, enter a task name followed by /at and then the event datetime"; + throw new IllegalArgumentException(message); + } + if (countArguments(input) > 5) { + throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); + } + if (!findArgument(input, 3).equalsIgnoreCase("/at")) { + throw new IllegalArgumentException("You need to include /at to specify the datetime"); + } + String taskName = findArgument(input, 2); + String date = findArgument(input, 4); + date = parseDate(date); + if (countArguments(input) == 5) { + String time = findArgument(input, 5); + time = parseTime(time); + return new AddEventCommand(taskName, date, time); + } else { + return new AddEventCommand(taskName, date); + } } + case "todo": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command todo"); + } + String taskName = findArgument(input, 2); + return new AddTodoCommand(taskName); + default: + return new UnrecognisedCommand(); } - case "todo": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command todo"); - } - return removeWhitespace(input); - default: - return "invalid"; + } catch (DateTimeException | IllegalArgumentException e) { + throw new DukeException(e.getMessage()); } } } \ No newline at end of file diff --git a/src/main/java/duke/Ui.java b/src/main/java/duke/Ui.java index 76fcfe7ecf..4231c0025c 100644 --- a/src/main/java/duke/Ui.java +++ b/src/main/java/duke/Ui.java @@ -6,7 +6,7 @@ public class Ui { public void showWelcome() { - System.out.println("Hi I'm duke.Duke! What may I do for you?"); + System.out.println("Hi I'm Duke! What may I do for you?"); } public void showGoodbye() { @@ -18,7 +18,7 @@ public void showLoadingError() { } public void showWritingError() { - System.out.println("Unable to find file to write to"); + System.out.println("Unable to write to file. Check if the file exists."); } public void display(String output) { diff --git a/src/main/java/duke/command/AddDeadlineCommand.java b/src/main/java/duke/command/AddDeadlineCommand.java index 5a941f38f1..c4899fd581 100644 --- a/src/main/java/duke/command/AddDeadlineCommand.java +++ b/src/main/java/duke/command/AddDeadlineCommand.java @@ -1,20 +1,40 @@ package duke.command; +import duke.DukeException; import duke.Storage; import duke.TaskList; import duke.Ui; +import duke.task.Task; +import duke.task.DeadlineTask; -public abstract class AddDeadlineCommand extends Command { +import java.io.IOException; + +public class AddDeadlineCommand extends Command { + + private final Task deadlineTask; + + public AddDeadlineCommand(String taskName, String date, String time) { + deadlineTask = new DeadlineTask(taskName, date, time); + } + + public AddDeadlineCommand(String taskName, String date) { + deadlineTask = new DeadlineTask(taskName, date); + } @Override public boolean isExit() { return false; } - @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + try { + taskList.add(deadlineTask); + storage.writeToFile(taskList.list()); + ui.display(String.format("Added new deadline task:%n%s%n", deadlineTask)); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } } } \ No newline at end of file diff --git a/src/main/java/duke/command/AddEventCommand.java b/src/main/java/duke/command/AddEventCommand.java index 51f11dba47..1cabf6fb4c 100644 --- a/src/main/java/duke/command/AddEventCommand.java +++ b/src/main/java/duke/command/AddEventCommand.java @@ -1,20 +1,40 @@ package duke.command; +import duke.DukeException; import duke.Storage; import duke.TaskList; import duke.Ui; +import duke.task.EventTask; +import duke.task.Task; -public abstract class AddEventCommand extends Command { +import java.io.IOException; + +public class AddEventCommand extends Command { + + private final Task eventTask; + + public AddEventCommand(String taskName, String date, String time) { + eventTask = new EventTask(taskName, date, time); + } + + public AddEventCommand(String taskName, String date) { + eventTask = new EventTask(taskName, date); + } @Override public boolean isExit() { return false; } - @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + try { + taskList.add(eventTask); + storage.writeToFile(taskList.list()); + ui.display(String.format("Added new event task:%n%s%n", eventTask)); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } } } \ No newline at end of file diff --git a/src/main/java/duke/command/AddTodoCommand.java b/src/main/java/duke/command/AddTodoCommand.java index 96a4f7a483..13476fceff 100644 --- a/src/main/java/duke/command/AddTodoCommand.java +++ b/src/main/java/duke/command/AddTodoCommand.java @@ -1,10 +1,21 @@ package duke.command; +import duke.DukeException; import duke.Storage; import duke.TaskList; import duke.Ui; +import duke.task.Task; +import duke.task.TodoTask; -public abstract class AddTodoCommand extends Command { +import java.io.IOException; + +public class AddTodoCommand extends Command { + + private final Task todoTask; + + public AddTodoCommand(String taskName) { + todoTask = new TodoTask(taskName); + } @Override public boolean isExit() { @@ -14,7 +25,13 @@ public boolean isExit() { @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + try { + taskList.add(todoTask); + storage.writeToFile(taskList.list()); + ui.display(String.format("Added new todo task:%n%s%n", todoTask)); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } } } diff --git a/src/main/java/duke/command/ByeCommand.java b/src/main/java/duke/command/ByeCommand.java index 1e806c90ed..2e4517898c 100644 --- a/src/main/java/duke/command/ByeCommand.java +++ b/src/main/java/duke/command/ByeCommand.java @@ -15,7 +15,7 @@ public boolean isExit() { @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + ui.showGoodbye(); } } diff --git a/src/main/java/duke/command/DeleteCommand.java b/src/main/java/duke/command/DeleteCommand.java index c53373723c..72d7b693da 100644 --- a/src/main/java/duke/command/DeleteCommand.java +++ b/src/main/java/duke/command/DeleteCommand.java @@ -1,10 +1,20 @@ package duke.command; +import duke.DukeException; import duke.Storage; import duke.TaskList; import duke.Ui; +import duke.task.Task; -public abstract class DeleteCommand extends Command { +import java.io.IOException; + +public class DeleteCommand extends Command { + + private final int taskNum; + + public DeleteCommand(int taskNum) { + this.taskNum = taskNum; + } @Override public boolean isExit() { @@ -14,7 +24,15 @@ public boolean isExit() { @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + try { + Task task = taskList.delete(taskNum); + storage.writeToFile(taskList.list()); + ui.display(String.format("I've deleted this task:%n%s%n", task)); + } catch (IndexOutOfBoundsException e) { + throw new DukeException("No such task!"); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } } } \ No newline at end of file diff --git a/src/main/java/duke/command/ListCommand.java b/src/main/java/duke/command/ListCommand.java index 9a8fca9809..f5603e1720 100644 --- a/src/main/java/duke/command/ListCommand.java +++ b/src/main/java/duke/command/ListCommand.java @@ -4,7 +4,7 @@ import duke.TaskList; import duke.Ui; -public abstract class ListCommand extends Command { +public class ListCommand extends Command { @Override public boolean isExit() { @@ -14,7 +14,7 @@ public boolean isExit() { @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + ui.display(taskList.list()); } } \ No newline at end of file diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java index eb01698c28..8a05fc601c 100644 --- a/src/main/java/duke/command/MarkCommand.java +++ b/src/main/java/duke/command/MarkCommand.java @@ -1,10 +1,20 @@ package duke.command; +import duke.DukeException; import duke.Storage; import duke.TaskList; import duke.Ui; +import duke.task.Task; -public abstract class MarkCommand extends Command { +import java.io.IOException; + +public class MarkCommand extends Command { + + private final int taskNum; + + public MarkCommand(int taskNum) { + this.taskNum = taskNum; + } @Override public boolean isExit() { @@ -14,7 +24,15 @@ public boolean isExit() { @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + try { + Task task = taskList.mark(taskNum); + storage.writeToFile(taskList.list()); + ui.display(String.format("I've marked this task as complete:%n%s%n", task)); + } catch (IndexOutOfBoundsException e) { + throw new DukeException("No such task!"); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } } } diff --git a/src/main/java/duke/command/NullCommand.java b/src/main/java/duke/command/NullCommand.java new file mode 100644 index 0000000000..b5c459ec8f --- /dev/null +++ b/src/main/java/duke/command/NullCommand.java @@ -0,0 +1,19 @@ +package duke.command; + +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +public class NullCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + + } + +} diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index 835adcde09..8d593bef49 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -1,10 +1,20 @@ package duke.command; +import duke.DukeException; import duke.Storage; import duke.TaskList; import duke.Ui; +import duke.task.Task; -public abstract class UnmarkCommand extends Command { +import java.io.IOException; + +public class UnmarkCommand extends Command { + + private final int taskNum; + + public UnmarkCommand(int taskNum) { + this.taskNum = taskNum; + } @Override public boolean isExit() { @@ -14,7 +24,15 @@ public boolean isExit() { @Override public void execute(TaskList taskList, Ui ui, Storage storage) { - + try { + Task task = taskList.mark(taskNum); + storage.writeToFile(taskList.list()); + ui.display(String.format("I've marked this task as complete:%n%s%n", task)); + } catch (IndexOutOfBoundsException e) { + throw new DukeException("No such task!"); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } } } diff --git a/src/main/java/duke/command/UnrecognisedCommand.java b/src/main/java/duke/command/UnrecognisedCommand.java new file mode 100644 index 0000000000..8ca2f40531 --- /dev/null +++ b/src/main/java/duke/command/UnrecognisedCommand.java @@ -0,0 +1,19 @@ +package duke.command; + +import duke.TaskList; +import duke.Ui; +import duke.Storage; + +public class UnrecognisedCommand extends Command { + + @Override + public boolean isExit() { + return false; + } + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + ui.display("Sorry, I don't recognise that command :("); + } + +} From fe3f213b9a7048fb8a5ce04534bb04491a5e0776 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 01:45:32 +0800 Subject: [PATCH 17/38] Add JUnit tests for public methods in some classes --- src/main/java/duke/task/DeadlineTask.java | 2 +- src/test/java/duke/task/DeadlineTaskTest.java | 16 ++++++++++++++++ src/test/java/duke/task/TodoTaskTest.java | 16 ++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/test/java/duke/task/DeadlineTaskTest.java create mode 100644 src/test/java/duke/task/TodoTaskTest.java diff --git a/src/main/java/duke/task/DeadlineTask.java b/src/main/java/duke/task/DeadlineTask.java index 025cd5ad12..c8bd054231 100644 --- a/src/main/java/duke/task/DeadlineTask.java +++ b/src/main/java/duke/task/DeadlineTask.java @@ -49,7 +49,7 @@ public String toString() { wordHour = "0" + wordHour; } if (hasTime) { - return String.format("[D][%d] %s | %s %s %d %s%s ", completed, getTaskName(), + return String.format("[D][%d] %s | %s %s %d %s%s", completed, getTaskName(), wordDay, wordMonth, deadline.getYear(), wordHour, wordMinute); } else { diff --git a/src/test/java/duke/task/DeadlineTaskTest.java b/src/test/java/duke/task/DeadlineTaskTest.java new file mode 100644 index 0000000000..568ea4c775 --- /dev/null +++ b/src/test/java/duke/task/DeadlineTaskTest.java @@ -0,0 +1,16 @@ +package duke.task; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class DeadlineTaskTest { + + @Test + public void toStringTest() { + String actual = new DeadlineTask("CS2103", "16092022", "2359").toString(); + String expected = "[D][0] CS2103 | 16 Sep 2022 2359"; + assertEquals(expected, actual); + } + +} diff --git a/src/test/java/duke/task/TodoTaskTest.java b/src/test/java/duke/task/TodoTaskTest.java new file mode 100644 index 0000000000..0176c1774d --- /dev/null +++ b/src/test/java/duke/task/TodoTaskTest.java @@ -0,0 +1,16 @@ +package duke.task; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class TodoTaskTest { + + @Test + public void toStringTest() { + String actual = "[T][0] CS2103"; + String expected = (new TodoTask("CS2103")).toString(); + assertEquals(expected, actual); + } + +} From 86fba2c7f872adbd85e616cfc65f91550e9a47a0 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 02:36:04 +0800 Subject: [PATCH 18/38] Update dependencies in build.gradle --- build.gradle | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 3439ee6da2..f09ec7b5e0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,15 @@ plugins { id 'java' id 'application' - id 'checkstyle' + id 'org.openjfx.javafxplugin' version '0.0.10' id 'com.github.johnrengelman.shadow' version '5.1.0' } +javafx { + version = "18.0.2" + modules = [ 'javafx.controls' ] +} + repositories { mavenCentral() } @@ -12,6 +17,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 { @@ -29,7 +49,7 @@ test { } application { - mainClassName = "seedu.duke.Duke" + mainClassName = "duke.Duke" } shadowJar { From 982ba6dded3faaee163058d0a67aa07622b70ffd Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 03:02:16 +0800 Subject: [PATCH 19/38] Add JavaDocs --- src/main/java/duke/Duke.java | 18 +++++---- src/main/java/duke/DukeException.java | 8 ++++ src/main/java/duke/Parser.java | 38 +++++++++++++++---- src/main/java/duke/Storage.java | 43 ++++++++++++++++++++- src/main/java/duke/TaskList.java | 46 +++++++++++++++++++++++ src/main/java/duke/task/DeadlineTask.java | 34 ++++++++++++++--- src/main/java/duke/task/EventTask.java | 33 +++++++++++++--- src/main/java/duke/task/Task.java | 34 ++++++++++++++--- src/main/java/duke/task/TodoTask.java | 23 +++++++++--- 9 files changed, 239 insertions(+), 38 deletions(-) diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index 47b79dee63..7aebcf29a0 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -1,21 +1,22 @@ package duke; -import duke.task.Task; -import duke.task.TodoTask; -import duke.task.DeadlineTask; -import duke.task.EventTask; import duke.command.Command; - -import java.io.IOException; -import java.time.DateTimeException; import java.util.Scanner; +/** + * Represents a ChatBot named Duke. Duke can help you track your tasks. + */ public class Duke { private Storage storage; private TaskList tasks; private Ui ui; + /** + * Creates a new ChatBot that you can interact with. + * + * @param filePath Path to the file where data of your tasks will be locally stored. + */ public Duke(String filePath) { ui = new Ui(); storage = new Storage(filePath); @@ -27,6 +28,9 @@ public Duke(String filePath) { } } + /** + * Start the conversation with Duke. + */ public void run() { ui.showWelcome(); boolean isExit = false; diff --git a/src/main/java/duke/DukeException.java b/src/main/java/duke/DukeException.java index cb9a57e7ea..35b9eaf6da 100644 --- a/src/main/java/duke/DukeException.java +++ b/src/main/java/duke/DukeException.java @@ -1,7 +1,15 @@ package duke; +/** + * Represents a Duke related exception. + */ public class DukeException extends RuntimeException { + /** + * Creates a new Duke related exception with an error message. + * + * @param message Error message to be displayed to the user. + */ public DukeException(String message) { super(message); } diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index 68adf82c2d..53840ac779 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -7,13 +7,16 @@ import java.time.DateTimeException; import java.time.LocalDate; +/** + * Used to interpret user inputs and match them to available commands. + */ public class Parser { - public static String removeWhitespace(String input) { + private static String removeWhitespace(String input) { return input.replaceAll(" ", ""); } - public static String removeStartingWhitespace(String input) { + private static String removeStartingWhitespace(String input) { if (input.length() == 0) { return "blank"; } @@ -26,7 +29,7 @@ public static String removeStartingWhitespace(String input) { return input; } - public static int countArguments(String input) { + private static int countArguments(String input) { String str = input; int count = 0; while(str.length() > 0) { @@ -46,7 +49,7 @@ public static int countArguments(String input) { return count; } - public static String findArgument(String input, int argNum) { + private static String findArgument(String input, int argNum) { if (argNum > countArguments(input)) { return "NOT FOUND"; } @@ -73,7 +76,7 @@ public static String findArgument(String input, int argNum) { } } - public static String parseDate(String date) { + private static String parseDate(String date) { int firstIndex; int secondIndex; if (date.contains("/")) { @@ -137,6 +140,13 @@ public static String parseDate(String date) { return String.format("%s%s%d", wordDay, wordMonth, year); } + /** + * Converts a date from word format to ddmmyyyy format. + * e.g. 31 Jan 2022 will be converted to 31012022 + * + * @param date Date to be converted into ddmmyy format. date should be in the format of e.g. 25 Mar 2019 + * @return The converted date in ddmmyyyy format. + */ public static String parseWordDate(String date) { if (date.length() != 11) { throw new DateTimeException("Not recognised!"); @@ -186,6 +196,13 @@ public static String parseWordDate(String date) { return date.substring(0, 2) + numDate + date.substring(7); } + /** + * Converts an integer between 1-12 to a 3-letter representation of the month. + * e.g. 5 will be converted to May, 12 will be converted to Dec. + * + * @param m Integer representation of a month, ranging from 1-12. + * @return A 3-letter word representation of the month. + */ public static String intToWordMonth(int m) { switch (m) { case 1: @@ -217,7 +234,7 @@ public static String intToWordMonth(int m) { } } - public static String parseTime(String time) { + private static String parseTime(String time) { if (time.length() != 4) { throw new DateTimeException("Time should be provided as 4 digits as per the 24 hour clock"); } @@ -237,7 +254,14 @@ public static String parseTime(String time) { return time; } - public static Command parse(String input) { + /** + * Takes in a string input from the user and converts it to a command recognised by Duke. + * + * @param input String input from the user. + * @return A command that can be executed by Duke. + * @throws DukeException if the user's desired command cannot be properly performed. + */ + public static Command parse(String input) throws DukeException { //first remove any whitespace at the start input = removeStartingWhitespace(input); if (input.equals("blank")) { diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index f3affb70c6..9ae39c04ec 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -9,6 +9,9 @@ import java.util.ArrayList; import java.util.InputMismatchException; +/** + * Used to read and write data between Duke and a local file. + */ public class Storage { private final String filePath; @@ -17,7 +20,12 @@ public Storage(String filePath) { this.filePath = filePath; } - //read text from entire file + /** + * Reads from an entire text file. + * + * @return The contents of the text file as a single string. + * @throws IOException if the file cannot be located or read from. + */ public String readFromFile() throws IOException { BufferedReader reader = new BufferedReader(new FileReader(filePath)); StringBuilder outputMessage = new StringBuilder(); @@ -31,12 +39,25 @@ public String readFromFile() throws IOException { return outputMessage.toString(); } + /** + * Replaces the file's content with an input string. + * + * @param content Contents used to overwrite the file. + * @throws IOException if the file cannot be located or written to. + */ public void writeToFile(String content) throws IOException { BufferedWriter writer = new BufferedWriter(new FileWriter(filePath)); writer.write(content); writer.close(); } + /** + * Reads a single line from the file. + * + * @param lineNum The line number to read from. The first line is line 1. + * @return The contents of the specified line. + * @throws IOException if the file cannot be located or read from. + */ public String readLine(int lineNum) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(filePath)); String line = "INIT"; @@ -52,6 +73,14 @@ public String readLine(int lineNum) throws IOException { return null; } + /** + * Overwrites a single line in the file with the provided contents. + * + * @param content The new content to overwrite the line. + * @param lineNum The line number to overwrite. + * @return true if the line exists, false otherwise. + * @throws IOException if the file cannot be located, read from or written to. + */ public boolean editLine(String content, int lineNum) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(filePath)); StringBuilder outputMessage = new StringBuilder(); @@ -72,12 +101,24 @@ public boolean editLine(String content, int lineNum) throws IOException { return lineNum <= counter; } + /** + * Adds a new line with contents to the end of the file. + * + * @param content Contents to be added to the end of the file. + * @throws IOException if the file cannot be located, read from or written to. + */ public void addLine(String content) throws IOException { String fileContent = readFromFile(); fileContent += content + "\n"; writeToFile(fileContent); } + /** + * Load up a list of tasks from the file into Duke when he starts up. + * + * @return An ArrayList of tasks specified by the file. + * @throws IOException if the file cannot be located or read from. + */ public ArrayList load() throws IOException { try { String line = readLine(1); diff --git a/src/main/java/duke/TaskList.java b/src/main/java/duke/TaskList.java index f9711a2cda..5e32334db7 100644 --- a/src/main/java/duke/TaskList.java +++ b/src/main/java/duke/TaskList.java @@ -4,22 +4,42 @@ import java.util.ArrayList; +/** + * Represents a list of tasks. + */ public class TaskList { private final ArrayList taskList; + /** + * Creates a list of tasks with existing tasks. + * @param taskList A list of tasks to initialise with. + */ public TaskList(ArrayList taskList) { this.taskList = taskList; } + /** + * Creates an empty list of tasks. + */ public TaskList() { taskList = new ArrayList<>(); } + /** + * Adds a new task to the end of the list. + * + * @param task The task to be added. + */ public void add(Task task) { taskList.add(task); } + /** + * Lists out all the tasks in the list, line by line, as a single string. + * + * @return A line by line string representation of every task in the list. + */ public String list() { StringBuilder listOfTasks = new StringBuilder(); for (Task task : taskList) { @@ -31,10 +51,22 @@ public String list() { return listOfTasks.toString(); } + /** + * Returns the number of tasks in the list. + * + * @return The number of tasks in the list. + */ public int size() { return taskList.size(); } + /** + * Marks a specified task in the list as complete. + * + * @param taskNum The task to be marked. The first task is task 1. + * @return The task that was marked. + * @throws IndexOutOfBoundsException if taskNum is not a valid task number. + */ public Task mark(int taskNum) throws IndexOutOfBoundsException { try { Task task = taskList.get(taskNum - 1); @@ -45,6 +77,13 @@ public Task mark(int taskNum) throws IndexOutOfBoundsException { } } + /** + * Marks a specified task in the list as incomplete. + * + * @param taskNum The task to be marked. The first task is task 1. + * @return The task that was marked. + * @throws IndexOutOfBoundsException if taskNum is not a valid task number. + */ public Task unmark(int taskNum) throws IndexOutOfBoundsException { try { Task task = taskList.get(taskNum - 1); @@ -55,6 +94,13 @@ public Task unmark(int taskNum) throws IndexOutOfBoundsException { } } + /** + * Deletes a specified task from the list. + * + * @param taskNum The task to be deleted. The first task is task 1. + * @return The task that was deleted. + * @throws IndexOutOfBoundsException if taskNum is not a valid task number. + */ public Task delete(int taskNum) throws IndexOutOfBoundsException { try { return taskList.remove(taskNum - 1); diff --git a/src/main/java/duke/task/DeadlineTask.java b/src/main/java/duke/task/DeadlineTask.java index c8bd054231..75d8b8c9e7 100644 --- a/src/main/java/duke/task/DeadlineTask.java +++ b/src/main/java/duke/task/DeadlineTask.java @@ -4,13 +4,23 @@ import java.time.LocalDateTime; +/** + * Represents a task that is to be completed by a deadline. + */ + public class DeadlineTask extends Task { private final LocalDateTime deadline; private final boolean hasTime; - public DeadlineTask(String name, String date) { - super(name); + /** + * Creates a new task with a description and a deadline. + * + * @param description Task that needs to be done. + * @param date Date which task should be done by. + */ + public DeadlineTask(String description, String date) { + super(description); int day = Integer.parseInt(date.substring(0, 2)); int month = Integer.parseInt(date.substring(2, 4)); int year = Integer.parseInt(date.substring(4)); @@ -18,8 +28,15 @@ public DeadlineTask(String name, String date) { hasTime = false; } - public DeadlineTask(String name, String date, String time) { - super(name); + /** + * Creates a new task with a description and a deadline. + * + * @param description Task that needs to be done. + * @param date Date which task should be done by, in ddmmyyyy format. + * @param time Time which task should be done by in 24-hour format. + */ + public DeadlineTask(String description, String date, String time) { + super(description); int day = Integer.parseInt(date.substring(0, 2)); int month = Integer.parseInt(date.substring(2, 4)); int year = Integer.parseInt(date.substring(4)); @@ -29,6 +46,11 @@ public DeadlineTask(String name, String date, String time) { hasTime = true; } + /** + * Returns a string representation of the task. + * + * @return String representation of the task. + */ @Override public String toString() { int completed = 0; @@ -49,11 +71,11 @@ public String toString() { wordHour = "0" + wordHour; } if (hasTime) { - return String.format("[D][%d] %s | %s %s %d %s%s", completed, getTaskName(), + return String.format("[D][%d] %s | %s %s %d %s%s", completed, getTaskDescription(), wordDay, wordMonth, deadline.getYear(), wordHour, wordMinute); } else { - return String.format("[D][%d] %s | %s %s %d", completed, getTaskName(), + return String.format("[D][%d] %s | %s %s %d", completed, getTaskDescription(), wordDay, wordMonth, deadline.getYear()); } diff --git a/src/main/java/duke/task/EventTask.java b/src/main/java/duke/task/EventTask.java index ea1cd82399..d4d7e5ef43 100644 --- a/src/main/java/duke/task/EventTask.java +++ b/src/main/java/duke/task/EventTask.java @@ -4,13 +4,22 @@ import java.time.LocalDateTime; +/** + * Represents a task that will occur at a certain time. + */ public class EventTask extends Task { private final LocalDateTime datetime; private final boolean hasTime; - public EventTask(String name, String date) { - super(name); + /** + * Creates a new task that will occur at a certain time. + * + * @param description Task that needs to be done. + * @param date Date on which task will occur. + */ + public EventTask(String description, String date) { + super(description); int day = Integer.parseInt(date.substring(0, 2)); int month = Integer.parseInt(date.substring(2, 4)); int year = Integer.parseInt(date.substring(4)); @@ -18,8 +27,15 @@ public EventTask(String name, String date) { hasTime = false; } - public EventTask(String name, String date, String time) { - super(name); + /** + * Creates a new task that will occur at a certain time. + * + * @param description Task that needs to be done. + * @param date Date on which task will occur. + * @param time Time at which task will occur. + */ + public EventTask(String description, String date, String time) { + super(description); int day = Integer.parseInt(date.substring(0, 2)); int month = Integer.parseInt(date.substring(2, 4)); int year = Integer.parseInt(date.substring(4)); @@ -29,6 +45,11 @@ public EventTask(String name, String date, String time) { hasTime = true; } + /** + * Returns a string representation of the task. + * + * @return String representation of the task. + */ @Override public String toString() { int completed = 0; @@ -49,11 +70,11 @@ public String toString() { wordHour = "0" + wordHour; } if (hasTime) { - return String.format("[E][%d] %s | %s %s %d %s%s ", completed, getTaskName(), + return String.format("[E][%d] %s | %s %s %d %s%s ", completed, getTaskDescription(), wordDay, wordMonth, datetime.getYear(), wordHour, wordMinute); } else { - return String.format("[E][%d] %s | %s %s %d", completed, getTaskName(), + return String.format("[E][%d] %s | %s %s %d", completed, getTaskDescription(), wordDay, wordMonth, datetime.getYear()); } } diff --git a/src/main/java/duke/task/Task.java b/src/main/java/duke/task/Task.java index 52ab4ab6a2..7c94778fc2 100644 --- a/src/main/java/duke/task/Task.java +++ b/src/main/java/duke/task/Task.java @@ -1,26 +1,50 @@ package duke.task; +/** + * Represents a task. + */ public abstract class Task { - private final String taskName; + private final String taskDescription; private boolean isCompleted; - public Task(String name) { - taskName = name; + /** + * Creates a new task with a description. + * + * @param description Task that needs to be done. + */ + public Task(String description) { + taskDescription = description; isCompleted = false; } - public String getTaskName() { - return taskName; + /** + * Returns the task description. + * + * @return The task description. + */ + public String getTaskDescription() { + return taskDescription; } + /** + * Marks the task as complete. + */ public void markComplete() { isCompleted = true; } + /** + * Marks the task as incomplete. + */ public void markIncomplete() { isCompleted = false; } + /** + * Returns whether the task has been completed + * + * @return true if the task is completed, false otherwise. + */ public boolean isCompleted() { return isCompleted; } diff --git a/src/main/java/duke/task/TodoTask.java b/src/main/java/duke/task/TodoTask.java index 5f1bc95115..c17cfcc51f 100644 --- a/src/main/java/duke/task/TodoTask.java +++ b/src/main/java/duke/task/TodoTask.java @@ -1,19 +1,30 @@ package duke.task; -import duke.task.Task; - +/** + * Represents a task without a date or time. + */ public class TodoTask extends Task { - public TodoTask(String name) { - super(name); + /** + * Creates a new task without a date or time. + * + * @param description Task that needs to be done. + */ + public TodoTask(String description) { + super(description); } + /** + * Returns a string representation of the task. + * + * @return String representation of the task. + */ @Override public String toString() { if (isCompleted()) { - return String.format("[T][1] %s", getTaskName()); + return String.format("[T][1] %s", getTaskDescription()); } else { - return String.format("[T][0] %s", getTaskName()); + return String.format("[T][0] %s", getTaskDescription()); } } } \ No newline at end of file From 7338f3754ccae2a19d05ee32157bce67ad273425 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 03:16:47 +0800 Subject: [PATCH 20/38] Correct style issues to adhere to coding standards --- src/main/java/duke/Duke.java | 6 - src/main/java/duke/Parser.java | 328 +++++++++--------- src/main/java/duke/Storage.java | 11 +- src/main/java/duke/Ui.java | 2 - .../java/duke/command/AddDeadlineCommand.java | 2 +- src/main/java/duke/command/ByeCommand.java | 1 - .../duke/command/UnrecognisedCommand.java | 2 +- src/main/java/duke/task/TodoTask.java | 2 - 8 files changed, 178 insertions(+), 176 deletions(-) diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index 47b79dee63..736ddfc9e1 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -1,13 +1,7 @@ package duke; -import duke.task.Task; -import duke.task.TodoTask; -import duke.task.DeadlineTask; -import duke.task.EventTask; import duke.command.Command; -import java.io.IOException; -import java.time.DateTimeException; import java.util.Scanner; public class Duke { diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index 68adf82c2d..45eb18848c 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -1,8 +1,16 @@ package duke; -import duke.command.*; -import duke.task.DeadlineTask; -import duke.task.TodoTask; +import duke.command.AddDeadlineCommand; +import duke.command.AddEventCommand; +import duke.command.AddTodoCommand; +import duke.command.ByeCommand; +import duke.command.Command; +import duke.command.DeleteCommand; +import duke.command.ListCommand; +import duke.command.MarkCommand; +import duke.command.NullCommand; +import duke.command.UnmarkCommand; +import duke.command.UnrecognisedCommand; import java.time.DateTimeException; import java.time.LocalDate; @@ -144,76 +152,76 @@ public static String parseWordDate(String date) { String wordDate = date.substring(3, 6); String numDate; switch (wordDate) { - case "Jan": - numDate = "01"; - break; - case "Feb": - numDate = "02"; - break; - case "Mar": - numDate = "03"; - break; - case "Apr": - numDate = "04"; - break; - case "May": - numDate = "05"; - break; - case "Jun": - numDate = "06"; - break; - case "Jul": - numDate = "07"; - break; - case "Aug": - numDate = "08"; - break; - case "Sep": - numDate = "09"; - break; - case "Oct": - numDate = "10"; - break; - case "Nov": - numDate = "11"; - break; - case "Dec": - numDate = "12"; - break; - default: - numDate = "00"; + case "Jan": + numDate = "01"; + break; + case "Feb": + numDate = "02"; + break; + case "Mar": + numDate = "03"; + break; + case "Apr": + numDate = "04"; + break; + case "May": + numDate = "05"; + break; + case "Jun": + numDate = "06"; + break; + case "Jul": + numDate = "07"; + break; + case "Aug": + numDate = "08"; + break; + case "Sep": + numDate = "09"; + break; + case "Oct": + numDate = "10"; + break; + case "Nov": + numDate = "11"; + break; + case "Dec": + numDate = "12"; + break; + default: + numDate = "00"; } return date.substring(0, 2) + numDate + date.substring(7); } public static String intToWordMonth(int m) { switch (m) { - case 1: - return "Jan"; - case 2: - return "Feb"; - case 3: - return "Mar"; - case 4: - return "Apr"; - case 5: - return "May"; - case 6: - return "Jun"; - case 7: - return "Jul"; - case 8: - return "Aug"; - case 9: - return "Sep"; - case 10: - return "Oct"; - case 11: - return "Nov"; - case 12: - return "Dec"; - default: - return "Nam"; + case 1: + return "Jan"; + case 2: + return "Feb"; + case 3: + return "Mar"; + case 4: + return "Apr"; + case 5: + return "May"; + case 6: + return "Jun"; + case 7: + return "Jul"; + case 8: + return "Aug"; + case 9: + return "Sep"; + case 10: + return "Oct"; + case 11: + return "Nov"; + case 12: + return "Dec"; + default: + return "Nam"; } } @@ -246,101 +254,101 @@ public static Command parse(String input) { try { String command = findArgument(input, 1).toLowerCase(); switch (command) { - case "bye": - if (countArguments(input) != 1) { - throw new IllegalArgumentException("Who is that?"); - } - return new ByeCommand(); - case "list": - if (countArguments(input) != 1) { - throw new IllegalArgumentException("Just use 'list'!"); - } - return new ListCommand(); - case "mark": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command mark"); - } - try { - input = (removeWhitespace(input)); - int taskNum = Integer.parseInt(input.substring(4)); - return new MarkCommand(taskNum); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Must input a number!"); - } - case "unmark": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command unmark"); - } - try { - input = (removeWhitespace(input)); - int taskNum = Integer.parseInt(input.substring(6)); - return new UnmarkCommand(taskNum); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Must input a number!"); - } - case "delete": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command delete"); - } - try { - input = (removeWhitespace(input)); - int taskNum = Integer.parseInt(input.substring(6)); - return new DeleteCommand(taskNum); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Must input a number!"); - } - case "deadline": { - if (countArguments(input) < 4) { - String message = "To add a deadline task, enter a task name followed by /by and then a deadline"; - throw new IllegalArgumentException(message); - } - if (countArguments(input) > 5) { - throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); - } - if (!findArgument(input, 3).equalsIgnoreCase("/by")) { - throw new IllegalArgumentException("You need to include /by to specify the deadline"); - } - String taskName = findArgument(input, 2); - String date = findArgument(input, 4); - date = parseDate(date); - if (countArguments(input) == 5) { - String time = findArgument(input, 5); - time = parseTime(time); - return new AddDeadlineCommand(taskName, date, time); - } else { - return new AddDeadlineCommand(taskName, date); - } + case "bye": + if (countArguments(input) != 1) { + throw new IllegalArgumentException("Who is that?"); + } + return new ByeCommand(); + case "list": + if (countArguments(input) != 1) { + throw new IllegalArgumentException("Just use 'list'!"); + } + return new ListCommand(); + case "mark": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command mark"); + } + try { + input = (removeWhitespace(input)); + int taskNum = Integer.parseInt(input.substring(4)); + return new MarkCommand(taskNum); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); } - case "event": { - if (countArguments(input) < 4) { - String message = "To add an event task, enter a task name followed by /at and then the event datetime"; - throw new IllegalArgumentException(message); - } - if (countArguments(input) > 5) { - throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); - } - if (!findArgument(input, 3).equalsIgnoreCase("/at")) { - throw new IllegalArgumentException("You need to include /at to specify the datetime"); - } - String taskName = findArgument(input, 2); - String date = findArgument(input, 4); - date = parseDate(date); - if (countArguments(input) == 5) { - String time = findArgument(input, 5); - time = parseTime(time); - return new AddEventCommand(taskName, date, time); - } else { - return new AddEventCommand(taskName, date); - } + case "unmark": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command unmark"); } - case "todo": - if (countArguments(input) != 2) { - throw new IllegalArgumentException("Incorrect number of arguments for command todo"); - } - String taskName = findArgument(input, 2); - return new AddTodoCommand(taskName); - default: - return new UnrecognisedCommand(); + try { + input = (removeWhitespace(input)); + int taskNum = Integer.parseInt(input.substring(6)); + return new UnmarkCommand(taskNum); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + case "delete": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command delete"); + } + try { + input = (removeWhitespace(input)); + int taskNum = Integer.parseInt(input.substring(6)); + return new DeleteCommand(taskNum); + } catch (NumberFormatException e) { + throw new IllegalArgumentException("Must input a number!"); + } + case "deadline": { + if (countArguments(input) < 4) { + String message = "To add a deadline task, enter a task name followed by /by and then a deadline"; + throw new IllegalArgumentException(message); + } + if (countArguments(input) > 5) { + throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); + } + if (!findArgument(input, 3).equalsIgnoreCase("/by")) { + throw new IllegalArgumentException("You need to include /by to specify the deadline"); + } + String taskName = findArgument(input, 2); + String date = findArgument(input, 4); + date = parseDate(date); + if (countArguments(input) == 5) { + String time = findArgument(input, 5); + time = parseTime(time); + return new AddDeadlineCommand(taskName, date, time); + } else { + return new AddDeadlineCommand(taskName, date); + } + } + case "event": { + if (countArguments(input) < 4) { + String message = "To add an event task, enter a task name followed by /at and then the event datetime"; + throw new IllegalArgumentException(message); + } + if (countArguments(input) > 5) { + throw new IllegalArgumentException("Incorrect number of arguments for command deadline"); + } + if (!findArgument(input, 3).equalsIgnoreCase("/at")) { + throw new IllegalArgumentException("You need to include /at to specify the datetime"); + } + String taskName = findArgument(input, 2); + String date = findArgument(input, 4); + date = parseDate(date); + if (countArguments(input) == 5) { + String time = findArgument(input, 5); + time = parseTime(time); + return new AddEventCommand(taskName, date, time); + } else { + return new AddEventCommand(taskName, date); + } + } + case "todo": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Incorrect number of arguments for command todo"); + } + String taskName = findArgument(input, 2); + return new AddTodoCommand(taskName); + default: + return new UnrecognisedCommand(); } } catch (DateTimeException | IllegalArgumentException e) { throw new DukeException(e.getMessage()); diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index f3affb70c6..9ba966492f 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -1,11 +1,16 @@ package duke; -import duke.task.Task; -import duke.task.TodoTask; import duke.task.DeadlineTask; import duke.task.EventTask; +import duke.task.Task; +import duke.task.TodoTask; -import java.io.*; +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.IOException; import java.util.ArrayList; import java.util.InputMismatchException; diff --git a/src/main/java/duke/Ui.java b/src/main/java/duke/Ui.java index 4231c0025c..8be8e43545 100644 --- a/src/main/java/duke/Ui.java +++ b/src/main/java/duke/Ui.java @@ -1,7 +1,5 @@ package duke; -import java.util.Scanner; - public class Ui { diff --git a/src/main/java/duke/command/AddDeadlineCommand.java b/src/main/java/duke/command/AddDeadlineCommand.java index c4899fd581..b2421d894d 100644 --- a/src/main/java/duke/command/AddDeadlineCommand.java +++ b/src/main/java/duke/command/AddDeadlineCommand.java @@ -4,8 +4,8 @@ import duke.Storage; import duke.TaskList; import duke.Ui; -import duke.task.Task; import duke.task.DeadlineTask; +import duke.task.Task; import java.io.IOException; diff --git a/src/main/java/duke/command/ByeCommand.java b/src/main/java/duke/command/ByeCommand.java index 2e4517898c..1471bd8e5a 100644 --- a/src/main/java/duke/command/ByeCommand.java +++ b/src/main/java/duke/command/ByeCommand.java @@ -1,6 +1,5 @@ package duke.command; - import duke.Storage; import duke.TaskList; import duke.Ui; diff --git a/src/main/java/duke/command/UnrecognisedCommand.java b/src/main/java/duke/command/UnrecognisedCommand.java index 8ca2f40531..018737ea70 100644 --- a/src/main/java/duke/command/UnrecognisedCommand.java +++ b/src/main/java/duke/command/UnrecognisedCommand.java @@ -1,8 +1,8 @@ package duke.command; +import duke.Storage; import duke.TaskList; import duke.Ui; -import duke.Storage; public class UnrecognisedCommand extends Command { diff --git a/src/main/java/duke/task/TodoTask.java b/src/main/java/duke/task/TodoTask.java index 5f1bc95115..85f98b2461 100644 --- a/src/main/java/duke/task/TodoTask.java +++ b/src/main/java/duke/task/TodoTask.java @@ -1,7 +1,5 @@ package duke.task; -import duke.task.Task; - public class TodoTask extends Task { public TodoTask(String name) { From aef9014bacc32914c15b79b2e090a66be5db5d09 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 03:32:44 +0800 Subject: [PATCH 21/38] Add ability to search for tasks using keywords --- src/main/java/duke/Parser.java | 7 ++++- src/main/java/duke/TaskList.java | 9 +++++++ src/main/java/duke/command/FindCommand.java | 29 +++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/main/java/duke/command/FindCommand.java diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index 68adf82c2d..4ec99c8e77 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -238,7 +238,6 @@ public static String parseTime(String time) { } public static Command parse(String input) { - //first remove any whitespace at the start input = removeStartingWhitespace(input); if (input.equals("blank")) { return new NullCommand(); @@ -339,6 +338,12 @@ public static Command parse(String input) { } String taskName = findArgument(input, 2); return new AddTodoCommand(taskName); + case "find": + if (countArguments(input) != 2) { + throw new IllegalArgumentException("Please enter only 1 keyword!"); + } + String keyword = findArgument(input, 2); + return new FindCommand(keyword); default: return new UnrecognisedCommand(); } diff --git a/src/main/java/duke/TaskList.java b/src/main/java/duke/TaskList.java index f9711a2cda..35332b6a9b 100644 --- a/src/main/java/duke/TaskList.java +++ b/src/main/java/duke/TaskList.java @@ -63,6 +63,15 @@ public Task delete(int taskNum) throws IndexOutOfBoundsException { } } + public TaskList filter(String keyword) { + TaskList filteredTaskList = new TaskList(); + for (Task task : taskList) { + if (task.getTaskName().contains(keyword)) { + filteredTaskList.add(task); + } + } + return filteredTaskList; + } } diff --git a/src/main/java/duke/command/FindCommand.java b/src/main/java/duke/command/FindCommand.java new file mode 100644 index 0000000000..28ba039844 --- /dev/null +++ b/src/main/java/duke/command/FindCommand.java @@ -0,0 +1,29 @@ +package duke.command; + +import duke.DukeException; +import duke.Storage; +import duke.TaskList; +import duke.Ui; + +import java.io.IOException; + +public class FindCommand extends Command { + + private final String keyword; + + public FindCommand(String keyword) { + this.keyword = keyword; + } + + @Override + public boolean isExit() { + return false; + } + + @Override + public void execute(TaskList taskList, Ui ui, Storage storage) { + TaskList filteredTaskList = taskList.filter(keyword); + String output = taskList.list(); + ui.display(output); + } +} From 3bda679d8cc54d0ac8a8ba473f70be9ff1d7165e Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 04:13:08 +0800 Subject: [PATCH 22/38] Add checkstyle.xml and suppressions.xml for checkstyle --- build.gradle | 5 + config/checkstyle/checkstyle.xml | 429 +++++++++++++++++++++++++++++ config/checkstyle/suppressions.xml | 10 + 3 files changed, 444 insertions(+) create mode 100644 config/checkstyle/checkstyle.xml create mode 100644 config/checkstyle/suppressions.xml diff --git a/build.gradle b/build.gradle index f09ec7b5e0..a4e036144e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,15 @@ plugins { id 'java' id 'application' + id 'checkstyle' id 'org.openjfx.javafxplugin' version '0.0.10' id 'com.github.johnrengelman.shadow' version '5.1.0' } +checkstyle { + toolVersion = '10.2' +} + javafx { version = "18.0.2" modules = [ 'javafx.controls' ] diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000000..e8ee76467b --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,429 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml new file mode 100644 index 0000000000..135ea49ee0 --- /dev/null +++ b/config/checkstyle/suppressions.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file From a2c803577e6fd8ed0b468c46d63518bdc0037b75 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 04:30:18 +0800 Subject: [PATCH 23/38] Fix a bug with the find command --- src/main/java/duke/Parser.java | 4 ++-- src/main/java/duke/TaskList.java | 2 +- src/main/java/duke/command/FindCommand.java | 2 +- text-ui-test/EXPECTED.TXT | 4 ++-- text-ui-test/input.txt | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index df766f35dd..caf81010ef 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -377,8 +377,8 @@ public static Command parse(String input) throws DukeException { } String keyword = findArgument(input, 2); return new FindCommand(keyword); - default: - return new UnrecognisedCommand(); + default: + return new UnrecognisedCommand(); } } catch (DateTimeException | IllegalArgumentException e) { throw new DukeException(e.getMessage()); diff --git a/src/main/java/duke/TaskList.java b/src/main/java/duke/TaskList.java index f5c151a82e..f871153482 100644 --- a/src/main/java/duke/TaskList.java +++ b/src/main/java/duke/TaskList.java @@ -112,7 +112,7 @@ public Task delete(int taskNum) throws IndexOutOfBoundsException { public TaskList filter(String keyword) { TaskList filteredTaskList = new TaskList(); for (Task task : taskList) { - if (task.getTaskName().contains(keyword)) { + if (task.getTaskDescription().contains(keyword)) { filteredTaskList.add(task); } } diff --git a/src/main/java/duke/command/FindCommand.java b/src/main/java/duke/command/FindCommand.java index 28ba039844..a80f17f4ab 100644 --- a/src/main/java/duke/command/FindCommand.java +++ b/src/main/java/duke/command/FindCommand.java @@ -23,7 +23,7 @@ public boolean isExit() { @Override public void execute(TaskList taskList, Ui ui, Storage storage) { TaskList filteredTaskList = taskList.filter(keyword); - String output = taskList.list(); + String output = filteredTaskList.list(); ui.display(output); } } diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index e276b40e3f..07a5ebe553 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -1,3 +1,3 @@ -Hi, I'm duke.Duke. What can I do for you? +Hi, I'm Duke. What can I do for you? I've added this task: -[D][ ] CS2013 (By: 1 September) \ No newline at end of file +[D][0] CS2013 (By: 1 September) \ No newline at end of file diff --git a/text-ui-test/input.txt b/text-ui-test/input.txt index 860dc34351..950de8aba9 100644 --- a/text-ui-test/input.txt +++ b/text-ui-test/input.txt @@ -1,3 +1,3 @@ -deadline CS2013 /by 1 September +deadline CS2013 /by 01-01-2020 list mark 1 \ No newline at end of file From 674156566e44cfe5a476c300b6472c9f9e9f3668 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 04:34:26 +0800 Subject: [PATCH 24/38] Add test cases --- text-ui-test/EXPECTED.TXT | 2 +- text-ui-test/input.txt | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index 07a5ebe553..e38592c578 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -1,3 +1,3 @@ Hi, I'm Duke. What can I do for you? I've added this task: -[D][0] CS2013 (By: 1 September) \ No newline at end of file +[D][0] CS2013 | 16 Sep 2022 2359 \ No newline at end of file diff --git a/text-ui-test/input.txt b/text-ui-test/input.txt index 950de8aba9..252034b69a 100644 --- a/text-ui-test/input.txt +++ b/text-ui-test/input.txt @@ -1,3 +1 @@ -deadline CS2013 /by 01-01-2020 -list -mark 1 \ No newline at end of file +deadline CS2103 /by 16-09-2022 2359 \ No newline at end of file From ce8111d25765902163ec0b083bc35893891a9ad9 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Wed, 7 Sep 2022 22:01:20 +0800 Subject: [PATCH 25/38] Create JAR file --- data/Duke.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/Duke.txt b/data/Duke.txt index f30952f633..2f62d5d1a5 100644 --- a/data/Duke.txt +++ b/data/Duke.txt @@ -1,2 +1,3 @@ -[D][0] blab | 02 Mar 2022 1807 -[D][0] CS2103 | 09 Sep 2022 2359 \ No newline at end of file +[D][1] blab | 02 Mar 2022 1807 +[D][1] CS2103 | 09 Sep 2022 2359 +[E][0] PARTY | 01 Jan 2023 \ No newline at end of file From 217e318ff4fbcc471580b547ed70b7e38fe16538 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Thu, 8 Sep 2022 23:28:00 +0800 Subject: [PATCH 26/38] Add a basic GUI for Duke --- src/main/java/duke/DialogBox.java | 2 ++ src/main/java/duke/Launcher.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/MainWindow.fxml | 0 5 files changed, 4 insertions(+) create mode 100644 src/main/java/duke/DialogBox.java create mode 100644 src/main/java/duke/Launcher.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/MainWindow.fxml diff --git a/src/main/java/duke/DialogBox.java b/src/main/java/duke/DialogBox.java new file mode 100644 index 0000000000..87444b0c20 --- /dev/null +++ b/src/main/java/duke/DialogBox.java @@ -0,0 +1,2 @@ +package duke;public class DialogBox { +} diff --git a/src/main/java/duke/Launcher.java b/src/main/java/duke/Launcher.java new file mode 100644 index 0000000000..ed21d608b5 --- /dev/null +++ b/src/main/java/duke/Launcher.java @@ -0,0 +1,2 @@ +package duke;public class Launcher { +} 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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H%{G^p4;m|<5)uGxpgXV1%ulYg$Sk2J2MhO|4_k%QeG>2&+- zJ9fK0YwdW!f@z~w7cccb8OK&~w8&wmI7tm|&UEc=U`*(aIVAD0CJZengaA4{k?KMA0o| zJejhu#!54yC9v_Fji>aMU^k>ihCrT>#8tVzilh? znWYv|mTPzcN%zZ_U&tq){Dbc^&ghk}Dvs65-cSw?hw}Wz8JAoZxh)-P>y_9=p3#W8 zMFCz7Z3$FNK%jRp3e`+WW1&i3=9rVdC6jl|DmOi+vL8zQ(k}qMJsK_zh+#*nz0TBb zC}Zm#>f@ll0Faj8tnYyaxC!kouvwwa_4@QwcKThpd$h+e2SHw&3W_L9!oAV1XBw(9 z&|y#jU@4V&VTAm#5!vS1m;!=Vh1c(E1b8+&WBqG+q=}7$Md3I3t!{6Gcpxg)46hBFNCciprK>-R_kl5=3pw`^qY*1}395 z>@<9_q)8H$+|69|48`$&yq(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/MainWindow.fxml b/src/main/resources/view/MainWindow.fxml new file mode 100644 index 0000000000..e69de29bb2 From 7554d3d1ce659defcca2662f6468fa51325f5810 Mon Sep 17 00:00:00 2001 From: tin-jy Date: Fri, 9 Sep 2022 00:41:46 +0800 Subject: [PATCH 27/38] Fully implement GUI and allow Duke to respond to commands --- src/main/java/duke/DialogBox.java | 63 ++++++++++++++++++- src/main/java/duke/Duke.java | 45 +++++++++++-- src/main/java/duke/Launcher.java | 16 ++++- src/main/java/duke/Main.java | 31 +++++++++ src/main/java/duke/MainWindow.java | 52 +++++++++++++++ .../java/duke/command/AddDeadlineCommand.java | 11 ++++ .../java/duke/command/AddEventCommand.java | 11 ++++ .../java/duke/command/AddTodoCommand.java | 11 ++++ src/main/java/duke/command/ByeCommand.java | 8 ++- src/main/java/duke/command/Command.java | 2 + src/main/java/duke/command/DeleteCommand.java | 13 ++++ src/main/java/duke/command/FindCommand.java | 9 ++- src/main/java/duke/command/ListCommand.java | 5 ++ src/main/java/duke/command/MarkCommand.java | 13 ++++ src/main/java/duke/command/NullCommand.java | 5 +- src/main/java/duke/command/UnmarkCommand.java | 13 ++++ .../duke/command/UnrecognisedCommand.java | 5 ++ src/main/resources/view/DialogBox.fxml | 16 +++++ src/main/resources/view/MainWindow.fxml | 19 ++++++ text-ui-test/EXPECTED.TXT | 20 +++++- text-ui-test/input.txt | 10 ++- 21 files changed, 361 insertions(+), 17 deletions(-) create mode 100644 src/main/java/duke/Main.java create mode 100644 src/main/java/duke/MainWindow.java create mode 100644 src/main/resources/view/DialogBox.fxml diff --git a/src/main/java/duke/DialogBox.java b/src/main/java/duke/DialogBox.java index 87444b0c20..d183f8252b 100644 --- a/src/main/java/duke/DialogBox.java +++ b/src/main/java/duke/DialogBox.java @@ -1,2 +1,61 @@ -package duke;public class DialogBox { -} +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 81f05775e6..02de8dde76 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -1,6 +1,19 @@ package duke; import duke.command.Command; +import javafx.application.Application; +import javafx.fxml.FXML; +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.image.Image; +import javafx.scene.image.ImageView; +import javafx.scene.layout.AnchorPane; +import javafx.scene.layout.Region; +import javafx.scene.layout.VBox; +import javafx.stage.Stage; import java.util.Scanner; @@ -13,6 +26,19 @@ public class Duke { private TaskList tasks; private Ui ui; + ScrollPane scrollPane; + VBox dialogContainer; + TextField userInput; + Button sendButton; + Scene scene; + + private Image user = new Image(this.getClass().getResourceAsStream("/images/DaUser.png")); + private Image duke = new Image(this.getClass().getResourceAsStream("/images/DaDuke.png")); + + public static void main(String[] args) { + new Duke("data/Duke.txt").run(); + } + /** * Creates a new ChatBot that you can interact with. * @@ -29,6 +55,21 @@ public Duke(String filePath) { } } + public Duke() {} + + /** + * 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) { + try { + Command command = Parser.parse(input); + return command.execute(tasks, storage); + } catch (DukeException e) { + return e.getMessage(); + } + } + /** * Start the conversation with Duke. */ @@ -48,8 +89,4 @@ public void run() { } } - public static void main(String[] args) { - new Duke("data/Duke.txt").run(); - } - } diff --git a/src/main/java/duke/Launcher.java b/src/main/java/duke/Launcher.java index ed21d608b5..942fc2a4c0 100644 --- a/src/main/java/duke/Launcher.java +++ b/src/main/java/duke/Launcher.java @@ -1,2 +1,14 @@ -package duke;public class Launcher { -} +package 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); + } + +} \ No newline at end of file diff --git a/src/main/java/duke/Main.java b/src/main/java/duke/Main.java new file mode 100644 index 0000000000..59ae50a45c --- /dev/null +++ b/src/main/java/duke/Main.java @@ -0,0 +1,31 @@ +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(); + } + } +} \ No newline at end of file diff --git a/src/main/java/duke/MainWindow.java b/src/main/java/duke/MainWindow.java new file mode 100644 index 0000000000..5e6c9d6140 --- /dev/null +++ b/src/main/java/duke/MainWindow.java @@ -0,0 +1,52 @@ +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/command/AddDeadlineCommand.java b/src/main/java/duke/command/AddDeadlineCommand.java index b2421d894d..32dd3273ca 100644 --- a/src/main/java/duke/command/AddDeadlineCommand.java +++ b/src/main/java/duke/command/AddDeadlineCommand.java @@ -37,4 +37,15 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { } } + @Override + public String execute(TaskList taskList, Storage storage) { + try { + taskList.add(deadlineTask); + storage.writeToFile(taskList.list()); + return String.format("I've added a new deadline task:%n%s%n", deadlineTask); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } + } + } \ No newline at end of file diff --git a/src/main/java/duke/command/AddEventCommand.java b/src/main/java/duke/command/AddEventCommand.java index 1cabf6fb4c..807771af28 100644 --- a/src/main/java/duke/command/AddEventCommand.java +++ b/src/main/java/duke/command/AddEventCommand.java @@ -37,4 +37,15 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { } } + @Override + public String execute(TaskList taskList, Storage storage) { + try { + taskList.add(eventTask); + storage.writeToFile(taskList.list()); + return String.format("I've added a new event task:%n%s%n", eventTask); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } + } + } \ No newline at end of file diff --git a/src/main/java/duke/command/AddTodoCommand.java b/src/main/java/duke/command/AddTodoCommand.java index 13476fceff..e68f5ba4e8 100644 --- a/src/main/java/duke/command/AddTodoCommand.java +++ b/src/main/java/duke/command/AddTodoCommand.java @@ -34,4 +34,15 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { } } + @Override + public String execute(TaskList taskList, Storage storage) { + try { + taskList.add(todoTask); + storage.writeToFile(taskList.list()); + return String.format("I've added a new todo task:%n%s%n", todoTask); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } + } + } diff --git a/src/main/java/duke/command/ByeCommand.java b/src/main/java/duke/command/ByeCommand.java index 1471bd8e5a..79a0114177 100644 --- a/src/main/java/duke/command/ByeCommand.java +++ b/src/main/java/duke/command/ByeCommand.java @@ -13,8 +13,14 @@ public boolean isExit() { @Override - public void execute(TaskList taskList, Ui ui, Storage storage) { + public void execute(TaskList taskList, Ui ui, Storage storage) { ui.showGoodbye(); } + @Override + public String execute(TaskList taskList, Storage storage) { + return "You can't leave!"; + } + + } diff --git a/src/main/java/duke/command/Command.java b/src/main/java/duke/command/Command.java index 09192f0b91..7ebd6603c8 100644 --- a/src/main/java/duke/command/Command.java +++ b/src/main/java/duke/command/Command.java @@ -10,4 +10,6 @@ public abstract class Command { public abstract void execute(TaskList taskList, Ui ui, Storage storage); + public abstract String execute(TaskList taskList, Storage storage); + } diff --git a/src/main/java/duke/command/DeleteCommand.java b/src/main/java/duke/command/DeleteCommand.java index 72d7b693da..21034523cd 100644 --- a/src/main/java/duke/command/DeleteCommand.java +++ b/src/main/java/duke/command/DeleteCommand.java @@ -35,4 +35,17 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { } } + @Override + public String execute(TaskList taskList, Storage storage) { + try { + Task task = taskList.delete(taskNum); + storage.writeToFile(taskList.list()); + return String.format("I've deleted this task:%n%s%n", task); + } catch (IndexOutOfBoundsException e) { + throw new DukeException("No such task!"); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } + } + } \ No newline at end of file diff --git a/src/main/java/duke/command/FindCommand.java b/src/main/java/duke/command/FindCommand.java index a80f17f4ab..02cf2bd752 100644 --- a/src/main/java/duke/command/FindCommand.java +++ b/src/main/java/duke/command/FindCommand.java @@ -1,12 +1,9 @@ package duke.command; -import duke.DukeException; import duke.Storage; import duke.TaskList; import duke.Ui; -import java.io.IOException; - public class FindCommand extends Command { private final String keyword; @@ -26,4 +23,10 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { String output = filteredTaskList.list(); ui.display(output); } + + @Override + public String execute(TaskList taskList, Storage storage) { + TaskList filteredTaskList = taskList.filter(keyword); + return filteredTaskList.list(); + } } diff --git a/src/main/java/duke/command/ListCommand.java b/src/main/java/duke/command/ListCommand.java index f5603e1720..f622199a85 100644 --- a/src/main/java/duke/command/ListCommand.java +++ b/src/main/java/duke/command/ListCommand.java @@ -17,4 +17,9 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { ui.display(taskList.list()); } + @Override + public String execute(TaskList taskList, Storage storage) { + return taskList.list(); + } + } \ No newline at end of file diff --git a/src/main/java/duke/command/MarkCommand.java b/src/main/java/duke/command/MarkCommand.java index 8a05fc601c..6ff079ad26 100644 --- a/src/main/java/duke/command/MarkCommand.java +++ b/src/main/java/duke/command/MarkCommand.java @@ -35,4 +35,17 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { } } + @Override + public String execute(TaskList taskList, Storage storage) { + try { + Task task = taskList.mark(taskNum); + storage.writeToFile(taskList.list()); + return String.format("I've marked this task as complete:%n%s%n", task); + } catch (IndexOutOfBoundsException e) { + throw new DukeException("No such task!"); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } + } + } diff --git a/src/main/java/duke/command/NullCommand.java b/src/main/java/duke/command/NullCommand.java index b5c459ec8f..fc49aff357 100644 --- a/src/main/java/duke/command/NullCommand.java +++ b/src/main/java/duke/command/NullCommand.java @@ -12,8 +12,11 @@ public boolean isExit() { } @Override - public void execute(TaskList taskList, Ui ui, Storage storage) { + public void execute(TaskList taskList, Ui ui, Storage storage) {} + @Override + public String execute(TaskList taskList, Storage storage) { + return "?"; } } diff --git a/src/main/java/duke/command/UnmarkCommand.java b/src/main/java/duke/command/UnmarkCommand.java index 8d593bef49..7a5b6e04eb 100644 --- a/src/main/java/duke/command/UnmarkCommand.java +++ b/src/main/java/duke/command/UnmarkCommand.java @@ -35,4 +35,17 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { } } + @Override + public String execute(TaskList taskList, Storage storage) { + try { + Task task = taskList.mark(taskNum); + storage.writeToFile(taskList.list()); + return String.format("I've marked this task as incomplete:%n%s%n", task); + } catch (IndexOutOfBoundsException e) { + throw new DukeException("No such task!"); + } catch (IOException e) { + throw new DukeException("Could not write to file"); + } + } + } diff --git a/src/main/java/duke/command/UnrecognisedCommand.java b/src/main/java/duke/command/UnrecognisedCommand.java index 018737ea70..101ac3ae49 100644 --- a/src/main/java/duke/command/UnrecognisedCommand.java +++ b/src/main/java/duke/command/UnrecognisedCommand.java @@ -16,4 +16,9 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { ui.display("Sorry, I don't recognise that command :("); } + @Override + public String execute(TaskList taskList, Storage storage) { + return "Sorry, I don't know what that means :("; + } + } 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 index e69de29bb2..832f84382e 100644 --- a/src/main/resources/view/MainWindow.fxml +++ b/src/main/resources/view/MainWindow.fxml @@ -0,0 +1,19 @@ + + + + + + + + + + + +