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.
- Loading branch information
Showing
5 changed files
with
204 additions
and
2 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,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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
@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 ":SlotsLeftCommandParser" as SlotsLeftCommandParser LOGIC_COLOR | ||
participant "s:SlotsLeftCommand" as SlotsLeftCommand 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("slots_left 2") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("slots_left 2") | ||
activate AddressBookParser | ||
|
||
create SlotsLeftCommandParser | ||
AddressBookParser -> SlotsLeftCommandParser | ||
activate SlotsLeftCommandParser | ||
|
||
SlotsLeftCommandParser --> AddressBookParser | ||
deactivate SlotsLeftCommandParser | ||
|
||
AddressBookParser -> SlotsLeftCommandParser : parse("2") | ||
activate SlotsLeftCommandParser | ||
|
||
create SlotsLeftCommand | ||
SlotsLeftCommandParser -> SlotsLeftCommand | ||
activate SlotsLeftCommand | ||
|
||
SlotsLeftCommand --> SlotsLeftCommandParser : | ||
deactivate SlotsLeftCommand | ||
|
||
SlotsLeftCommandParser --> AddressBookParser : s | ||
deactivate SlotsLeftCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
SlotsLeftCommandParser -[hidden]-> AddressBookParser | ||
destroy SlotsLeftCommandParser | ||
|
||
AddressBookParser --> LogicManager : s | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> SlotsLeftCommand : execute(m) | ||
activate SlotsLeftCommand | ||
|
||
SlotsLeftCommand -> ModelManager : getFilteredJobList() | ||
activate ModelManager | ||
|
||
ModelManager -> FilteredList : get(2) | ||
activate FilteredList | ||
|
||
FilteredList --> ModelManager : Job | ||
deactivate FilteredList | ||
|
||
ModelManager --> SlotsLeftCommand : Job | ||
deactivate ModelManager | ||
|
||
SlotsLeftCommand -> ModelManager : countRemainingVacancy(Job) | ||
activate ModelManager | ||
|
||
ModelManager --> SlotsLeftCommand : vacancy left | ||
deactivate ModelManager | ||
|
||
create CommandResult | ||
SlotsLeftCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> SlotsLeftCommand | ||
deactivate CommandResult | ||
|
||
SlotsLeftCommand --> LogicManager : r | ||
deactivate SlotsLeftCommand | ||
|
||
[<--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.