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 branch 'master' of https://github.com/AY2324S2-CS2103T-W08-1/tp …
…into docs/user-guide
- Loading branch information
Showing
34 changed files
with
1,101 additions
and
227 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.
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,113 @@ | ||
@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 ":EditJobCommandParser" as EditJobCommandParser LOGIC_COLOR | ||
participant "e:EditJobCommand" as EditJobCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":ModelManager" as ModelManager MODEL_COLOR | ||
participant ":FilteredList<Job>" as FilteredList MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("edit_job 2 ti/Data Analyst") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("edit_job 2 ti/Data Analyst") | ||
activate AddressBookParser | ||
|
||
create EditJobCommandParser | ||
AddressBookParser -> EditJobCommandParser | ||
activate EditJobCommandParser | ||
|
||
EditJobCommandParser --> AddressBookParser | ||
deactivate EditJobCommandParser | ||
|
||
AddressBookParser -> EditJobCommandParser : parse("2 ti/Data Analyst") | ||
activate EditJobCommandParser | ||
|
||
create EditJobCommand | ||
EditJobCommandParser -> EditJobCommand | ||
activate EditJobCommand | ||
|
||
EditJobCommand --> EditJobCommandParser : e | ||
deactivate EditJobCommand | ||
|
||
EditJobCommandParser -> EditJobCommand | ||
activate EditJobCommand | ||
|
||
EditJobCommand --> EditJobCommandParser : editJobDescriptor | ||
deactivate EditJobCommand | ||
|
||
EditJobCommandParser --> AddressBookParser : e, editJobDescriptor | ||
deactivate EditJobCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditJobCommandParser -[hidden]-> AddressBookParser | ||
destroy EditJobCommandParser | ||
|
||
AddressBookParser --> LogicManager : e, editJobDescriptor | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> EditJobCommand : execute(m) | ||
activate EditJobCommand | ||
|
||
EditJobCommand -> ModelManager: getFilteredJobList() | ||
activate ModelManager | ||
|
||
ModelManager --> EditJobCommand | ||
deactivate ModelManager | ||
|
||
EditJobCommand -> FilteredList: get(2) | ||
activate FilteredList | ||
|
||
FilteredList --> EditJobCommand: Job | ||
deactivate FilteredList | ||
|
||
EditJobCommand -> EditJobCommand : createEditedJob(Job, editJobDescriptor) | ||
activate EditJobCommand | ||
|
||
EditJobCommand --> EditJobCommand : editedJob | ||
deactivate EditJobCommand | ||
|
||
EditJobCommand -> ModelManager | ||
activate ModelManager | ||
|
||
ModelManager -> FilteredList : setJob(Job, editedJob) | ||
activate FilteredList | ||
|
||
FilteredList --> ModelManager | ||
deactivate FilteredList | ||
|
||
ModelManager --> EditJobCommand | ||
deactivate ModelManager | ||
|
||
EditJobCommand -> ModelManager : updateFilteredJobList(x -> true) | ||
activate ModelManager | ||
|
||
ModelManager --> EditJobCommand | ||
deactivate ModelManager | ||
|
||
EditJobCommand -> ModelManager : replaceApplications(Job, editedJob) | ||
activate ModelManager | ||
|
||
ModelManager --> EditJobCommand | ||
deactivate ModelManager | ||
|
||
create CommandResult | ||
EditJobCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> EditJobCommand | ||
deactivate CommandResult | ||
|
||
EditJobCommand --> LogicManager : r | ||
deactivate EditJobCommand | ||
|
||
[<--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,69 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor MODEL_COLOR | ||
skinparam classBackgroundColor MODEL_COLOR | ||
|
||
Package Model as ModelPackage <<Rectangle>>{ | ||
|
||
Class AddressBook | ||
|
||
Class UniquePersonList | ||
|
||
Class Person | ||
Class Name | ||
Class Phone | ||
Class Email | ||
Class Country | ||
Class Comment | ||
Class Tag | ||
|
||
Class UniqueApplicationList | ||
|
||
Class Application | ||
Class Status | ||
|
||
Class UniqueJobList | ||
|
||
Class Job | ||
Class Title | ||
Class Description | ||
Class Vacancy | ||
|
||
Class I #FFFFFF | ||
} | ||
AddressBook *--> "1" UniquePersonList | ||
UniquePersonList --> "~* all" Person | ||
Person *--> "1" Name | ||
Person *--> "1" Phone | ||
Person *--> "1" Email | ||
Person *--> "1" Country | ||
Person *--> "1" Comment | ||
Person *--> "*" Tag | ||
|
||
Person -[hidden]right--> I | ||
|
||
Name -[hidden]right-> Phone | ||
Phone -[hidden]right-> Country | ||
Country -[hidden]right-> Email | ||
|
||
AddressBook *--> "1" UniqueApplicationList | ||
UniqueApplicationList --> "~* all" Application | ||
Application *--> "1" Status | ||
|
||
AddressBook *--> "1" UniqueJobList | ||
UniqueJobList --> "~* all" Job | ||
Job *--> "1" Title | ||
Job *--> "1" Description | ||
Job *--> "1" Vacancy | ||
|
||
Job -[hidden]down--> I | ||
|
||
Title -[hidden]right-> Description | ||
Description -[hidden]right-> Vacancy | ||
|
||
Job - Person: < applies | ||
(Person, Job) .. Application | ||
|
||
|
||
@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
Oops, something went wrong.