forked from AY2324S2-CS2103T-T12-2/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AY2324S2-CS2103T-T12-2:master' into master
- Loading branch information
Showing
33 changed files
with
1,019 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
run: ./gradlew check coverage | ||
|
||
- name: Upload coverage reports to Codecov | ||
if: runner.os == 'Linux' | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: AidenLYT/tp |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
sprite $rake [16x16/8] { | ||
0000000000000000 | ||
0000000jj0000000 | ||
0000000jj0000000 | ||
0005555jj5555000 | ||
000jjeejjeejj000 | ||
000jj00jj00jj000 | ||
000jj00jj00jj000 | ||
0000000000000000 | ||
} | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User enters "addbystep"; | ||
repeat :User enters name; | ||
:process name; | ||
repeat while (Name is valid?) is (no) | ||
repeat :User enters number; | ||
:process number; | ||
repeat while (Number is valid?) is (no) | ||
repeat :User enters email; | ||
:process email; | ||
repeat while (Email is valid?) is (no) | ||
repeat :User enters address; | ||
:process address; | ||
repeat while (address are valid?) is (no) | ||
:display the end message; | ||
:User enters a command; | ||
|
||
if(Is it the copy command?) then (yes) | ||
:copy command to clipboard; | ||
else (no) | ||
:display the end message; | ||
endif | ||
:User executes "addbystep" command; | ||
:Get all the necessary inputs from user<$rake>; | ||
:User types the the "cp" command; | ||
:Command is copied to the clipboard of the user; | ||
:User closes the window; | ||
|
||
|
||
stop | ||
|
||
|
||
@enduml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":DuplicateCommandParser" as DuplicateCommandParser LOGIC_COLOR | ||
participant "rc:DuplicateCommand" as DuplicateCommand LOGIC_COLOR | ||
participant "rs:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("duplicate n/Alex Yeoh...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("duplicate n/Alex Yeoh...") | ||
activate AddressBookParser | ||
|
||
create DuplicateCommandParser | ||
AddressBookParser -> DuplicateCommandParser | ||
activate DuplicateCommandParser | ||
|
||
DuplicateCommandParser --> AddressBookParser | ||
deactivate DuplicateCommandParser | ||
|
||
AddressBookParser -> DuplicateCommandParser : parse("n/Alex Yeoh ...") | ||
activate DuplicateCommandParser | ||
|
||
create DuplicateCommand | ||
DuplicateCommandParser -> DuplicateCommand | ||
activate DuplicateCommand | ||
|
||
DuplicateCommand --> DuplicateCommandParser : | ||
deactivate DuplicateCommand | ||
|
||
DuplicateCommandParser --> AddressBookParser : rc | ||
deactivate DuplicateCommandParser | ||
DuplicateCommandParser -[hidden]-> AddressBookParser | ||
destroy DuplicateCommandParser | ||
|
||
AddressBookParser --> LogicManager : rc | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> DuplicateCommand : execute(m) | ||
activate DuplicateCommand | ||
|
||
DuplicateCommand -> Model : addDuplicatePerson(Person) | ||
activate Model | ||
|
||
Model --> DuplicateCommand | ||
deactivate Model | ||
|
||
DuplicateCommand -> Model : commitAddressBook() | ||
activate Model | ||
|
||
Model --> DuplicateCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
DuplicateCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DuplicateCommand | ||
deactivate CommandResult | ||
|
||
DuplicateCommand --> LogicManager : rs | ||
deactivate DuplicateCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":OverwriteCommandParser" as OverwriteCommandParser LOGIC_COLOR | ||
participant "rc:OverwriteCommand" as OverwriteCommand LOGIC_COLOR | ||
participant "rs:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("Overwrite 1 n/Alex Yeoh...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("Overwrite 1 n/Alex Yeoh...") | ||
activate AddressBookParser | ||
|
||
create OverwriteCommandParser | ||
AddressBookParser -> OverwriteCommandParser | ||
activate OverwriteCommandParser | ||
|
||
OverwriteCommandParser --> AddressBookParser | ||
deactivate OverwriteCommandParser | ||
|
||
AddressBookParser -> OverwriteCommandParser : parse("1 n/Alex Yeoh ...") | ||
activate OverwriteCommandParser | ||
|
||
create OverwriteCommand | ||
OverwriteCommandParser -> OverwriteCommand | ||
activate OverwriteCommand | ||
|
||
OverwriteCommand --> OverwriteCommandParser : | ||
deactivate OverwriteCommand | ||
|
||
OverwriteCommandParser --> AddressBookParser : rc | ||
deactivate OverwriteCommandParser | ||
OverwriteCommandParser -[hidden]-> AddressBookParser | ||
destroy OverwriteCommandParser | ||
|
||
AddressBookParser --> LogicManager : rc | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> OverwriteCommand : execute(m) | ||
activate OverwriteCommand | ||
|
||
OverwriteCommand -> Model : setDuplicatePerson(Person) | ||
activate Model | ||
|
||
Model --> OverwriteCommand | ||
deactivate Model | ||
|
||
OverwriteCommand -> Model : commitAddressBook() | ||
activate Model | ||
|
||
Model --> OverwriteCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
OverwriteCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> OverwriteCommand | ||
deactivate CommandResult | ||
|
||
OverwriteCommand --> LogicManager : rs | ||
deactivate OverwriteCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:AddCommandHelper prompts user for input; | ||
|
||
repeat | ||
:User enters input; | ||
:Input is checked by AddCommandHelper; | ||
if () then ([Input is invalid]) | ||
:Show error message and prompt user for same input field; | ||
elseif () then ([Prompt user for next input]) | ||
else ([Last input field needed from user?]) | ||
|
||
|
||
|
||
|
||
stop | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
.../java/seedu/address/AddCommandHelper.java → ...seedu/address/logic/AddCommandHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package seedu.address; | ||
package seedu.address.logic; | ||
|
||
|
||
import java.util.HashSet; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.