forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from AY2324S1-CS2103T-T10-3/Branch-v1.4
Updated Branch v1.4 to master
- Loading branch information
Showing
16 changed files
with
602 additions
and
272 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
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
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,70 @@ | ||
@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 ":FindCommandParser" as FindCommandParser LOGIC_COLOR | ||
participant "d:FindPersonCommand" as FindPersonCommand 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("find n/Alex John") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("find n/Alex John") | ||
activate AddressBookParser | ||
|
||
create FindCommandParser | ||
AddressBookParser -> FindCommandParser | ||
activate FindCommandParser | ||
|
||
FindCommandParser --> AddressBookParser | ||
deactivate FindCommandParser | ||
|
||
AddressBookParser -> FindCommandParser : parse("n/Alex John") | ||
activate FindCommandParser | ||
|
||
create FindPersonCommand | ||
FindCommandParser -> FindPersonCommand | ||
activate FindPersonCommand | ||
|
||
FindPersonCommand --> FindCommandParser : d | ||
deactivate FindPersonCommand | ||
|
||
FindCommandParser --> AddressBookParser : d | ||
deactivate FindCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FindCommandParser -[hidden]-> AddressBookParser | ||
destroy FindCommandParser | ||
|
||
AddressBookParser --> LogicManager : d | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FindPersonCommand : execute() | ||
activate FindPersonCommand | ||
|
||
FindPersonCommand -> Model : updateFilteredPersonList(NameContainsKeywordsPredicate) | ||
activate Model | ||
|
||
Model --> FindPersonCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindPersonCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> FindPersonCommand | ||
deactivate CommandResult | ||
|
||
FindPersonCommand --> LogicManager : result | ||
deactivate FindPersonCommand | ||
|
||
[<--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,72 @@ | ||
@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 ":ListGroupCommandParser" as ListGroupCommandParser LOGIC_COLOR | ||
participant "c:ListGroupCommand" as ListGroupCommand 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("listgroup") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("listgroup") | ||
activate AddressBookParser | ||
|
||
create ListGroupCommandParser | ||
AddressBookParser -> ListGroupCommandParser | ||
activate ListGroupCommandParser | ||
|
||
ListGroupCommandParser --> AddressBookParser | ||
deactivate ListGroupCommandParser | ||
|
||
AddressBookParser -> ListGroupCommandParser : parse("listgroup") | ||
activate ListGroupCommandParser | ||
|
||
create ListGroupCommand | ||
ListGroupCommandParser -> ListGroupCommand | ||
activate ListGroupCommand | ||
|
||
ListGroupCommand --> ListGroupCommandParser : c | ||
deactivate ListGroupCommand | ||
|
||
ListGroupCommandParser --> AddressBookParser : c | ||
deactivate ListGroupCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ListGroupCommandParser -[hidden]-> AddressBookParser | ||
destroy ListGroupCommandParser | ||
|
||
AddressBookParser --> LogicManager : c | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> ListGroupCommand : execute() | ||
activate ListGroupCommand | ||
|
||
ListGroupCommand -> Model : getFilteredGroupList() | ||
activate Model | ||
|
||
Model --> ListGroupCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
ListGroupCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ListGroupCommand | ||
deactivate CommandResult | ||
|
||
ListGroupCommand --> LogicManager : result | ||
deactivate ListGroupCommand | ||
|
||
[<--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,29 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:User wants to list the times of a group or contact; | ||
:User runs the "listtime" command; | ||
if () then ([Invalid command format]) | ||
:ProjectPRO throws an error; | ||
else (["listtime g/GROUPNAME" or "listtime n/NAME"]) | ||
:ProjectPRO checks if User is listing time of a group or contact; | ||
if () then (["listtime g/GROUPNAME"]) | ||
:ProjectPRO checks if group exists; | ||
if () then ([Group exists]) | ||
: ProjectPRO lists times of specified group; | ||
else([Else]) | ||
: ProjectPRO throws an error; | ||
endif | ||
else(["listtime n/NAME"]) | ||
: ProjectPRO checks if contact exists; | ||
if () then ([Contact exists]) | ||
: ProjectPRO lists times of specified contact; | ||
else([Else]) | ||
: ProjectPRO throws an error; | ||
endif | ||
endif | ||
endif | ||
stop | ||
|
||
@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
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
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
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