forked from nus-cs2113-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #178 from IanFH/docs2
Created Sequence Diagram for `recommendCommand` and `askOccasion()`. …
- Loading branch information
Showing
9 changed files
with
242 additions
and
48 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
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.
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,33 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
!include Ian-style.puml | ||
|
||
box Logic LOGIC_COLOUR | ||
participant ":Parser" as Parser LOGIC_COLOUR_T1 | ||
participant "a:RecommendCommand" as RecommendCommand LOGIC_COLOUR_T1 | ||
participant "b:Flower" as Flower LOGIC_COLOUR_T1 | ||
|
||
box Ui UI_COLOUR | ||
participant ":Ui" as Ui UI_COLOUR_T1 | ||
|
||
activate RecommendCommand | ||
|
||
loop !isValidFormat && !isValidOccasion | ||
RecommendCommand -> Ui : printAskOccasion() | ||
|
||
activate Ui | ||
Ui --> RecommendCommand : input | ||
deactivate Ui | ||
|
||
RecommendCommand -> Parser : parseOccasion(input) | ||
activate Parser | ||
Parser --> RecommendCommand : isValidFormat | ||
deactivate Parser | ||
|
||
RecommendCommand -> Flower : isValidOccasion() | ||
activate Flower | ||
Flower --> RecommendCommand :isValidOccasion | ||
deactivate Flower | ||
|
||
end | ||
@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,42 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
!include Ian-style.puml | ||
|
||
actor "user" as user | ||
participant ":Florizz" as Florizz | ||
box Logic LOGIC_COLOUR | ||
participant ":Parser" as Parser LOGIC_COLOUR_T1 | ||
participant "a:RecommendCommand" as RecommendCommand LOGIC_COLOUR_T1 | ||
|
||
[-> Florizz : execute("recommend") | ||
activate Florizz | ||
|
||
Florizz -> Parser : parse("recommend") | ||
activate Parser | ||
|
||
create RecommendCommand | ||
Parser -> RecommendCommand : RecommendCommand("rose") | ||
activate RecommendCommand | ||
|
||
RecommendCommand --> Parser : a | ||
deactivate RecommendCommand | ||
|
||
Parser --> Florizz : a | ||
deactivate Parser | ||
|
||
Florizz -> RecommendCommand : execute() | ||
activate RecommendCommand | ||
|
||
RecommendCommand -> RecommendCommand: askOccasion(...) | ||
RecommendCommand -> RecommendCommand: askColour(...) | ||
RecommendCommand -> RecommendCommand: askBouquetName(...) | ||
RecommendCommand -> RecommendCommand: askSize(...); | ||
RecommendCommand -> RecommendCommand: addRandomFlowers(...) | ||
RecommendCommand -> RecommendCommand: askSaveBouquet(...); | ||
|
||
RecommendCommand --> Florizz | ||
deactivate RecommendCommand | ||
|
||
<--Florizz | ||
deactivate Florizz | ||
@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.
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