forked from AY2122S2-CS2103T-T12-4/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.
- Loading branch information
Showing
134 changed files
with
2,594 additions
and
547 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
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
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
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,9 @@ | ||
@startuml | ||
(*) --> "DeleteTask command executed" | ||
if "Delete task successful" then | ||
-left->[true] "Message display: Deleted Task: Index" | ||
-> (*) | ||
else | ||
-right->[false] "throw CommandException" | ||
-->(*) | ||
@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,9 @@ | ||
@startuml | ||
(*) --> "EditTask command executed" | ||
if "Edit task successful" then | ||
-left->[true] "Message display: Update Task: 'Index'" | ||
-> (*) | ||
else | ||
-right->[false] "throw CommandException" | ||
-->(*) | ||
@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,32 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant "d:DeleteCommand" as DeleteCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":AddressBook" as AddressBook MODEL_COLOR | ||
participant ":TaskList" as TaskList MODEL_COLOR | ||
end box | ||
|
||
|
||
[-> DeleteCommand : execute() | ||
activate DeleteCommand | ||
|
||
DeleteCommand -> Model : deletePerson(target) | ||
activate Model | ||
|
||
Model -> AddressBook : removePerson(target) | ||
activate AddressBook | ||
|
||
AddressBook --> Model | ||
deactivate AddressBook | ||
|
||
Model -> TaskList : removePerson(target) | ||
activate TaskList | ||
|
||
TaskList --> Model | ||
deactivate TaskList | ||
@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,69 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":DeleteTaskCommandParser" as DeleteTaskCommandParser LOGIC_COLOR | ||
participant ":DeleteTaskCommand" as DeleteTaskCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("deletet 1") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("deletet 1") | ||
activate AddressBookParser | ||
|
||
create DeleteTaskCommandParser | ||
AddressBookParser -> DeleteTaskCommandParser : DeleteTaskCommandParser() | ||
activate DeleteTaskCommandParser | ||
|
||
DeleteTaskCommandParser --> AddressBookParser | ||
deactivate DeleteTaskCommandParser | ||
|
||
AddressBookParser -> DeleteTaskCommandParser : parse("1") | ||
activate DeleteTaskCommandParser | ||
|
||
create DeleteTaskCommand | ||
DeleteTaskCommandParser -> DeleteTaskCommand : DeleteTaskCommand(1) | ||
activate DeleteTaskCommand | ||
|
||
DeleteTaskCommand --> DeleteTaskCommandParser | ||
deactivate DeleteTaskCommand | ||
|
||
DeleteTaskCommandParser --> AddressBookParser | ||
deactivate DeleteTaskCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
DeleteTaskCommandParser -[hidden]-> AddressBookParser | ||
destroy DeleteTaskCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> DeleteTaskCommand : execute() | ||
activate DeleteTaskCommand | ||
|
||
DeleteTaskCommand -> Model : deleteTask(1) | ||
activate Model | ||
|
||
Model --> DeleteTaskCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
DeleteTaskCommand -> CommandResult : CommandResult(...) | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteTaskCommand | ||
deactivate CommandResult | ||
|
||
DeleteTaskCommand --> LogicManager : result | ||
deactivate DeleteTaskCommand | ||
|
||
[<--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,111 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":EditTaskCommandParser" as EditTaskCommandParser LOGIC_COLOR | ||
participant "ParserUtil" as ParserUtil LOGIC_COLOR | ||
participant "editTaskDescriptor:EditTaskDescriptor" as EditTaskDescriptor LOGIC_COLOR | ||
participant ":EditTaskCommand" as EditTaskCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
-> LogicManager : parseCommand("editt ...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("editt ...") | ||
activate AddressBookParser | ||
|
||
create EditTaskCommandParser | ||
AddressBookParser -> EditTaskCommandParser : EditTaskCommandParser() | ||
activate EditTaskCommandParser | ||
|
||
EditTaskCommandParser --> AddressBookParser | ||
deactivate EditTaskCommandParser | ||
|
||
AddressBookParser -> EditTaskCommandParser : parse(...) | ||
activate EditTaskCommandParser | ||
|
||
EditTaskCommandParser -> ParserUtil : parseIndex(...) | ||
activate ParserUtil | ||
|
||
ParserUtil -> EditTaskCommandParser : index | ||
deactivate ParserUtil | ||
|
||
create EditTaskDescriptor | ||
EditTaskCommandParser -> EditTaskDescriptor : EditTaskDescriptor() | ||
activate EditTaskDescriptor | ||
|
||
EditTaskDescriptor --> EditTaskCommandParser | ||
deactivate EditTaskDescriptor | ||
|
||
opt Task name present | ||
EditTaskCommandParser -> EditTaskDescriptor : setName(...) | ||
activate EditTaskDescriptor | ||
EditTaskDescriptor --> EditTaskCommandParser | ||
deactivate EditTaskDescriptor | ||
end | ||
|
||
opt DateTime present | ||
EditTaskCommandParser -> EditTaskDescriptor : setDate(...) | ||
activate EditTaskDescriptor | ||
EditTaskDescriptor --> EditTaskCommandParser | ||
deactivate EditTaskDescriptor | ||
end | ||
|
||
opt Tags present | ||
EditTaskCommandParser -> ParserUtil : parseTags(...) | ||
activate ParserUtil | ||
ParserUtil --> EditTaskCommandParser : Tags | ||
deactivate ParserUtil | ||
EditTaskCommandParser -> EditTaskDescriptor : setTags(...) | ||
activate EditTaskDescriptor | ||
EditTaskDescriptor --> EditTaskCommandParser | ||
deactivate EditTaskDescriptor | ||
end | ||
|
||
create EditTaskCommand | ||
EditTaskCommandParser -> EditTaskCommand : EditTaskCommand(index, editTaskDescriptor) | ||
activate EditTaskCommand | ||
|
||
EditTaskCommand --> EditTaskCommandParser | ||
deactivate EditTaskCommand | ||
|
||
EditTaskCommandParser --> AddressBookParser | ||
deactivate EditTaskCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditTaskCommandParser -[hidden]-> AddressBookParser | ||
destroy EditTaskCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> EditTaskCommand : execute() | ||
activate EditTaskCommand | ||
|
||
EditTaskCommand -> Model : setTask(...) | ||
activate Model | ||
|
||
Model --> EditTaskCommand | ||
EditTaskCommand -> Model : updateFilteredTaskList(...) | ||
Model --> EditTaskCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
EditTaskCommand -> CommandResult : CommandResult(...) | ||
activate CommandResult | ||
|
||
CommandResult --> EditTaskCommand | ||
deactivate CommandResult | ||
|
||
EditTaskCommand --> LogicManager : result | ||
deactivate EditTaskCommand | ||
|
||
[<--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
Oops, something went wrong.