forked from AY2425S1-CS2103T-F15-4/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-F15-4#141 from tingxuanp/add-uml-…
…diagram Add Find Command UML Diagram
- Loading branch information
Showing
1 changed file
with
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@startuml | ||
|
||
hide circle | ||
skinparam classAttributeIconSize 0 | ||
skinparam classMethodAttributeIconSize 0 | ||
hide empty methods | ||
|
||
|
||
Class "<<interface>>\nModel" as Model | ||
Class "{abstract}\nCommand" as Command | ||
Class "{abstract}\nFindCommand" as FindCommand | ||
Command : CommandResult execute(Model model) {abstract} | ||
|
||
|
||
Model <.left. FindCommand | ||
Class FindXYZCommand extends FindCommand | ||
Class FindCommand extends Command | ||
Class "{abstract}\nPredicate<T>" as Predicate { | ||
+ boolean test(T t) {abstract} | ||
} | ||
Class "{abstract}\nTraitContainsKeywordPredicate<T>" as TraitContainsKeywordPredicate | ||
Class "XYZContainsKeywordsPredicate" as XYZContainsKeywordPredicate | ||
Class TraitContainsKeywordPredicate implements Predicate | ||
Class XYZContainsKeywordPredicate extends TraitContainsKeywordPredicate | ||
|
||
TraitContainsKeywordPredicate.up.>Predicate | ||
FindXYZCommand -right-> XYZContainsKeywordPredicate | ||
|
||
hide FindCommand fields | ||
hide Model fields | ||
hide TraitContainsKeywordPredicate fields | ||
hide FindXYZCommand fields | ||
hide XYZContainsKeywordPredicate fields | ||
|
||
|
||
|
||
@enduml |