forked from nus-cs2103-AY2122S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #180 from IceWizard4902/branch-update-VinhDG
Update Developer Guide for Vinh
- Loading branch information
Showing
3 changed files
with
105 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,69 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":ClearCommandParser" as ClearCommandParser LOGIC_COLOR | ||
participant "c:ClearCommand" as ClearCommand 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("clear -e 1-10") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("clear -e 1-10") | ||
activate AddressBookParser | ||
|
||
create ClearCommandParser | ||
AddressBookParser -> ClearCommandParser | ||
activate ClearCommandParser | ||
|
||
ClearCommandParser --> AddressBookParser | ||
deactivate ClearCommandParser | ||
|
||
AddressBookParser -> ClearCommandParser : parse("-e 1-10") | ||
activate ClearCommandParser | ||
|
||
create ClearCommand | ||
ClearCommandParser -> ClearCommand | ||
activate ClearCommand | ||
|
||
ClearCommand --> ClearCommandParser : c | ||
deactivate ClearCommand | ||
|
||
ClearCommandParser --> AddressBookParser : c | ||
deactivate ClearCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ClearCommandParser -[hidden]-> AddressBookParser | ||
destroy ClearCommandParser | ||
|
||
AddressBookParser --> LogicManager : c | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> ClearCommand : execute() | ||
activate ClearCommand | ||
|
||
loop i decrements from 10 to 1 | ||
ClearCommand -> Model : deleteEvent(i) | ||
activate Model | ||
Model --> ClearCommand | ||
deactivate Model | ||
end | ||
create CommandResult | ||
ClearCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ClearCommand | ||
deactivate CommandResult | ||
|
||
ClearCommand --> LogicManager : result | ||
deactivate ClearCommand | ||
|
||
[<--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.