forked from AY2425S1-CS2103T-W10-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 pull request AY2425S1-CS2103T-W10-2#186 from Vangmay/update-dev…
…eloper-guide Developer Guide - Add general entity commands
- Loading branch information
Showing
5 changed files
with
102 additions
and
66 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
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,60 @@ | ||
@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 ":xyzCommandParser" as CommandParser LOGIC_COLOR | ||
participant "e:XYZCommand" as XYZCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("xyz") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("xyz") | ||
|
||
create CommandParser | ||
activate AddressBookParser | ||
AddressBookParser -> CommandParser | ||
activate CommandParser | ||
AddressBookParser <-- CommandParser | ||
deactivate CommandParser | ||
|
||
|
||
|
||
AddressBookParser -> CommandParser : parse("xyz") | ||
activate CommandParser | ||
|
||
|
||
create XYZCommand | ||
CommandParser -> XYZCommand | ||
activate XYZCommand | ||
|
||
note right of XYZCommand: XYZCommand = \nFindEntityCommand, \nAddEntityCommand, \nDeleteEntityCommand, \nEditEntityCommand, \nClearEntityCommand, \nListEntityCommand | ||
|
||
XYZCommand --> CommandParser | ||
CommandParser --> AddressBookParser | ||
deactivate CommandParser | ||
deactivate XYZCommand | ||
|
||
AddressBookParser --> LogicManager : e | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> XYZCommand : execute(e) | ||
activate XYZCommand | ||
|
||
create CommandResult | ||
XYZCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> XYZCommand | ||
deactivate CommandResult | ||
|
||
XYZCommand --> LogicManager : r | ||
deactivate XYZCommand | ||
|
||
[<--LogicManager : Model | ||
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.
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