-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add puml files for tutorial class diagrams
Two class diagrams in 'Add Remark Command' tutorial don't have corresponding .puml files. Furthermore, the diagrams have some errors. Let's correct the errors, and also add the missing .puml files. Also, let's rename the files to more suitable names.
- Loading branch information
damithc
committed
Sep 11, 2023
1 parent
07778d9
commit 517b785
Showing
7 changed files
with
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@startuml | ||
hide circle | ||
skinparam classAttributeIconSize 0 | ||
|
||
Class "<<interface>>\nParser" as Parser | ||
Class RemarkCommandParser { | ||
+parse(): RemarkCommand | ||
} | ||
Class ParserException | ||
|
||
RemarkCommandParser .up.|> Parser | ||
Parser .right.> ParserException: throws > | ||
RemarkCommandParser .right.> ParserException: throws > | ||
@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,19 @@ | ||
@startuml | ||
hide circle | ||
skinparam classAttributeIconSize 0 | ||
|
||
Class "{abstract}\nCommand" as Command { | ||
+execute(Model): CommandResult | ||
} | ||
Class RemarkCommand { | ||
+COMMAND_WORD: String | ||
+MESSAGE_USAGE: String | ||
+MESSAGE_NOT_IMPLEMENTED_YET: String | ||
+execute(Model): CommandResult | ||
} | ||
Class CommandException | ||
|
||
RemarkCommand -up-|> Command | ||
Command ..> CommandException: throws > | ||
RemarkCommand .right.> CommandException: throws > | ||
@enduml |
Binary file not shown.
Binary file not shown.
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