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 #57 from ejnan/update-developerguide
Update Developer Guide to include Help Command
- Loading branch information
Showing
6 changed files
with
192 additions
and
25 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,31 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor LOGIC_COLOR | ||
skinparam classBackgroundColor LOGIC_COLOR | ||
|
||
Package Logic as LogicPackage <<Rectangle>>{ | ||
Class "<<interface>>\nCommand" as Command | ||
Class "<<interface>>\nParser" as Parser | ||
Class "<<interface>>\nLogic" as Logic | ||
Class LogicManager | ||
Class HelpCommand | ||
Class CommandResult | ||
|
||
Logic -down-> Parser | ||
Logic -down-> Command | ||
Logic -right-> CommandResult | ||
LogicManager .up.|> Logic | ||
LogicManager -down-> Parser | ||
LogicManager -down-> Command | ||
|
||
HelpCommand .up.|> Command | ||
HelpCommand -right-> CommandResult | ||
|
||
Parser -[hidden]down-> HelpCommand | ||
} | ||
|
||
Class HiddenOutside #FFFFFF | ||
HiddenOutside .down.> Logic | ||
|
||
@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,66 @@ | ||
@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 "h:HelpCommand" as HelpCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box UI UI_COLOR_T1 | ||
participant ":MainWindow" as MainWindow UI_COLOR | ||
participant ":ResultDisplay" as ResultDisplay UI_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("help") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("help") | ||
activate AddressBookParser | ||
|
||
create HelpCommand | ||
AddressBookParser -> HelpCommand | ||
activate HelpCommand | ||
|
||
HelpCommand --> AddressBookParser | ||
deactivate HelpCommand | ||
|
||
AddressBookParser --> LogicManager : h | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> HelpCommand : execute() | ||
activate HelpCommand | ||
|
||
create CommandResult | ||
HelpCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> HelpCommand | ||
deactivate CommandResult | ||
|
||
HelpCommand --> LogicManager : r | ||
deactivate HelpCommand | ||
|
||
LogicManager -> MainWindow : executeCommand("help") | ||
activate MainWindow | ||
|
||
MainWindow -> MainWindow : handleHelp() | ||
activate MainWindow | ||
|
||
MainWindow -> ResultDisplay : setFeedbackToUser(HelpCommand.SHOWING_HELP_MESSAGE) | ||
activate ResultDisplay | ||
|
||
ResultDisplay --> MainWindow | ||
deactivate ResultDisplay | ||
|
||
MainWindow --> MainWindow | ||
deactivate MainWindow | ||
|
||
MainWindow --> LogicManager : r | ||
deactivate MainWindow | ||
|
||
[<--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.