Skip to content

Commit

Permalink
Merge pull request AY2425S1-CS2103T-F15-4#141 from tingxuanp/add-uml-…
Browse files Browse the repository at this point in the history
…diagram

Add Find Command UML Diagram
  • Loading branch information
DanzaSeah authored Oct 24, 2024
2 parents 8e61409 + 922ba73 commit d506613
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/diagrams/FindCommandClass.puml
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) &#123;abstract&#125;


Model <.left. FindCommand
Class FindXYZCommand extends FindCommand
Class FindCommand extends Command
Class "{abstract}\nPredicate<T>" as Predicate {
+ boolean test(T t) &#123;abstract&#125;
}
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

0 comments on commit d506613

Please sign in to comment.