forked from AY2324S2-CS2103T-F12-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 'master' into branch-UGv14
- Loading branch information
Showing
32 changed files
with
1,296 additions
and
113 deletions.
There are no files selected for viewing
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
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,29 +1,41 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":FilterArticleCommandParser" as FilterArticleCommandParser LOGIC_COLOR | ||
participant ":FilterArticleCommand" as FilterArticleCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":ArticleFilter" as ArticleFilter MODEL_COLOR | ||
end box | ||
|
||
[-> SetArticleCommandParser : parse | ||
activate SetArticleCommandParser | ||
SetArticleCommandParser -> SetArticleCommand : SetArticleCommand() | ||
activate SetArticleCommand | ||
SetArticleCommand --> SetArticleCommandParser | ||
deactivate SetArticleCommand | ||
[<-- SetArticleCommandParser | ||
deactivate SetArticleCommandParser | ||
[-> SetArticleCommand : executes | ||
activate SetArticleCommand | ||
SetArticleCommand -> Model : getFilter | ||
[-> FilterArticleCommandParser : parse | ||
activate FilterArticleCommandParser | ||
|
||
FilterArticleCommandParser -> FilterArticleCommand : FilterArticleCommand() | ||
activate FilterArticleCommand | ||
|
||
FilterArticleCommand --> FilterArticleCommandParser | ||
deactivate FilterArticleCommand | ||
|
||
[<-- FilterArticleCommandParser | ||
deactivate FilterArticleCommandParser | ||
|
||
[-> FilterArticleCommand : executes | ||
activate FilterArticleCommand | ||
|
||
FilterArticleCommand -> Model : getFilter | ||
activate Model | ||
Model --> SetArticleCommand | ||
deactivate Model | ||
SetArticleCommand -> ArticleFilter: updateFilter | ||
Model --> FilterArticleCommand | ||
FilterArticleCommand -> ArticleFilter: updateFilter | ||
activate ArticleFilter | ||
ArticleFilter --> SetArticleCommand | ||
ArticleFilter --> FilterArticleCommand | ||
deactivate ArticleFilter | ||
SetArticleCommand -> Model:updateFilteredArticleList | ||
activate Model | ||
FilterArticleCommand -> Model:updateFilteredArticleList | ||
deactivate Model | ||
[<-- SetArticleCommand | ||
[<-- FilterArticleCommand | ||
deactivate | ||
@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,17 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
|
||
autonumber | ||
|
||
{User} -> ArticleCard : Click | ||
Activate ArticleCard | ||
|
||
ArticleCard -> Model : getLink() | ||
Activate Model | ||
Model --> ArticleCard : return link | ||
deactivate Model | ||
|
||
ArticleCard -> ArticleCard : openBrowser(link) | ||
[<-- ArticleCard : open webpage | ||
deactivate ArticleCard | ||
@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,62 @@ | ||
@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 ":LookupCommandParser" as LookupCommandParser LOGIC_COLOR | ||
participant "s:LookupCommand" as LookupCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute("lookup n/") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("lookup 1") | ||
activate AddressBookParser | ||
|
||
create LookupCommandParser | ||
AddressBookParser -> LookupCommandParser : LookupCommandParser() | ||
activate LookupCommandParser | ||
|
||
LookupCommandParser --> AddressBookParser | ||
deactivate LookupCommandParser | ||
|
||
AddressBookParser -> LookupCommandParser : parse("1") | ||
activate LookupCommandParser | ||
|
||
create LookupCommand | ||
LookupCommandParser -> LookupCommand : LookupCommand("1") | ||
activate LookupCommand | ||
|
||
LookupCommand --> LookupCommandParser | ||
deactivate LookupCommand | ||
|
||
LookupCommandParser --> AddressBookParser : s | ||
deactivate LookupCommandParser | ||
LookupCommandParser -[hidden]-> AddressBookParser : s | ||
destroy LookupCommandParser | ||
|
||
AddressBookParser --> LogicManager : s | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> LookupCommand : execute() | ||
activate LookupCommand | ||
|
||
LookupCommand -> Model : lookupPerson(PersonAtIndex) | ||
activate Model | ||
|
||
Model --> LookupCommand | ||
deactivate Model | ||
|
||
LookupCommand --> LogicManager : commandResult | ||
deactivate LookupCommand | ||
LookupCommand -[hidden]-> LogicManager : commandResult | ||
destroy LookupCommand | ||
|
||
[<--LogicManager : commandResult | ||
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,32 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":ModelManager" as ModelManager MODEL_COLOR | ||
participant ":ArticleWithinPersonPredicate" as ArticleWithinPersonPredicate MODEL_COLOR | ||
end box | ||
|
||
[-> Model : lookupPerson(PersonAtIndex) | ||
activate Model | ||
|
||
Model -> ModelManager : lookupPerson(PersonAtIndex) | ||
activate ModelManager | ||
|
||
create ArticleWithinPersonPredicate | ||
ModelManager -> ArticleWithinPersonPredicate : ArticleWithinPersonPredicate(PersonAtIndex) | ||
activate ArticleWithinPersonPredicate | ||
|
||
ArticleWithinPersonPredicate --> ModelManager : ArticleWithinPersonPredicate | ||
deactivate ArticleWithinPersonPredicate | ||
|
||
ModelManager -> ModelManager : updateFilteredArticleList(predicate) | ||
|
||
ModelManager --> Model : | ||
deactivate ModelManager | ||
|
||
[<-- Model : | ||
deactivate Model | ||
|
||
@enduml |
Oops, something went wrong.