strategy.txt 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @startuml
  2. /' STRATEGY '/
  3. class Context
  4. interface Strategy {
  5. + execute()
  6. }
  7. class ConcreteStrategyA {
  8. + execute()
  9. }
  10. class ConcreteStrategyB {
  11. + execute()
  12. }
  13. hide empty members
  14. Context o-- Strategy
  15. Strategy <|-- ConcreteStrategyA
  16. Strategy <|-- ConcreteStrategyB
  17. note as N1
  18. <b><color:royalBlue>Strategy</color></b>
  19. <b>Type:</b> Behavioral
  20. Définit un algorithme, le rend
  21. interchangeable et indépendant du client.
  22. end note
  23. @enduml@startuml
  24. /' STRATEGY '/
  25. class Context
  26. interface Strategy {
  27. + execute()
  28. }
  29. class ConcreteStrategyA {
  30. + execute()
  31. }
  32. class ConcreteStrategyB {
  33. + execute()
  34. }
  35. hide empty members
  36. Context o-- Strategy
  37. Strategy <|-- ConcreteStrategyA
  38. Strategy <|-- ConcreteStrategyB
  39. note as N1
  40. <b><color:royalBlue>Strategy</color></b>
  41. <b>Type:</b> Behavioral
  42. Définit un algorithme, le rend
  43. interchangeable et indépendant du client.
  44. end note
  45. @enduml