forked from nus-cs2103-AY2324S2/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 #222 from 0liverkong/update-DG
Add sequence diagram for add_app
- Loading branch information
Showing
5 changed files
with
201 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
@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 ":AddApplicationCommandParser" as AddApplicationCommandParser LOGIC_COLOR | ||
participant "c:AddApplicationCommand" as AddApplicationCommand LOGIC_COLOR | ||
participant "a:Application" as Application LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("add_app e/example@gmail.com ti/job") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("add_app e/example@gmail.com ti/job") | ||
activate AddressBookParser | ||
|
||
create AddApplicationCommandParser | ||
AddressBookParser -> AddApplicationCommandParser | ||
activate AddApplicationCommandParser | ||
|
||
AddApplicationCommandParser --> AddressBookParser | ||
deactivate AddApplicationCommandParser | ||
|
||
AddressBookParser -> AddApplicationCommandParser : parse("e/example@gmail.com ti/job") | ||
activate AddApplicationCommandParser | ||
|
||
create AddApplicationCommand | ||
AddApplicationCommandParser -> AddApplicationCommand | ||
activate AddApplicationCommand | ||
|
||
AddApplicationCommand --> AddApplicationCommandParser : c | ||
deactivate AddApplicationCommand | ||
|
||
AddApplicationCommandParser --> AddressBookParser : c | ||
deactivate AddApplicationCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
AddApplicationCommandParser -[hidden]-> AddressBookParser | ||
destroy AddApplicationCommandParser | ||
|
||
AddressBookParser --> LogicManager : c | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AddApplicationCommand : execute(m) | ||
activate AddApplicationCommand | ||
|
||
AddApplicationCommand -> AddApplicationCommand : findPersonMatchingEmail() | ||
activate AddApplicationCommand | ||
|
||
AddApplicationCommand --> AddApplicationCommand : p | ||
deactivate AddApplicationCommand | ||
|
||
AddApplicationCommand -> AddApplicationCommand : findJobMatchingTitle() | ||
activate AddApplicationCommand | ||
|
||
AddApplicationCommand --> AddApplicationCommand : j | ||
deactivate AddApplicationCommand | ||
|
||
create Application | ||
AddApplicationCommand -> Application : Application(p, j, PRESCREEN) | ||
activate Application | ||
|
||
Application --> AddApplicationCommand : a | ||
deactivate Application | ||
|
||
AddApplicationCommand -> Model : addApplication(a) | ||
activate Model | ||
|
||
Model --> AddApplicationCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
AddApplicationCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> AddApplicationCommand | ||
deactivate CommandResult | ||
|
||
AddApplicationCommand --> LogicManager : r | ||
deactivate AddApplicationCommand | ||
|
||
[<--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,103 @@ | ||
@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 ":TagCommandParser" as TagCommandParser LOGIC_COLOR | ||
participant ":ParserUtil" as ParserUtil LOGIC_COLOR | ||
participant "c:TagCommand" as TagCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Person" as Person MODEL_COLOR | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("tag 1 t/INTERNAL") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("tag 1 t/INTERNAL") | ||
activate AddressBookParser | ||
|
||
create TagCommandParser | ||
AddressBookParser -> TagCommandParser | ||
activate TagCommandParser | ||
|
||
TagCommandParser --> AddressBookParser | ||
deactivate TagCommandParser | ||
|
||
AddressBookParser -> TagCommandParser : parse("1 t/INTERNAL") | ||
activate TagCommandParser | ||
|
||
TagCommandParser -> ParserUtil : parseIndex("1") | ||
activate ParserUtil | ||
|
||
ParserUtil -> TagCommandParser : index | ||
deactivate ParserUtil | ||
|
||
TagCommandParser -> ParserUtil : parseTags("t/INTERNAL") | ||
activate ParserUtil | ||
|
||
ParserUtil -> TagCommandParser : tags | ||
deactivate ParserUtil | ||
|
||
create TagCommand | ||
TagCommandParser -> TagCommand | ||
activate TagCommand | ||
|
||
TagCommand --> TagCommandParser : c | ||
deactivate TagCommand | ||
|
||
TagCommandParser --> AddressBookParser : c | ||
deactivate TagCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
TagCommandParser -[hidden]-> AddressBookParser | ||
destroy TagCommandParser | ||
|
||
AddressBookParser --> LogicManager : c | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> TagCommand : execute(m) | ||
activate TagCommand | ||
|
||
create Person | ||
TagCommand -> Person | ||
activate Person | ||
|
||
Person --> TagCommand | ||
deactivate Person | ||
|
||
TagCommand -> Model : setPerson() | ||
activate Model | ||
|
||
Model --> TagCommand | ||
deactivate Model | ||
|
||
TagCommand -> Model : updateFilteredPersonList() | ||
activate Model | ||
|
||
Model --> TagCommand | ||
deactivate Model | ||
|
||
TagCommand -> Model : replaceApplications() | ||
activate Model | ||
|
||
Model --> TagCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
TagCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> TagCommand | ||
deactivate CommandResult | ||
|
||
TagCommand --> LogicManager : r | ||
deactivate TagCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@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.