Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. @startuml
  2.  
  3. skinparam ClassAttributeIconSize 0
  4.  
  5. hide circle
  6. hide empty member
  7.  
  8. main -> "<u>context</u>\n<u>:Context</u>" : <<create>>
  9. "<u>context</u>\n<u>:Context</u>" -> "<u>the_beginning_of_the_day</u>\n<u>:TheBeginningOfTheDay</u>" : <<create>>
  10. "<u>context</u>\n<u>:Context</u>" -> "<u>the_end_of_the_day</u>\n<u>:TheEndOfTheDay</u>" : <<create>>
  11. "<u>context</u>\n<u>:Context</u>" -> "<u>context</u>\n<u>:Context</u>" : state = the_beginning_of_the_day
  12.  
  13. group state:the_beginning_of_the_day
  14. main -> "<u>context</u>\n<u>:Context</u>" : context.action()
  15. "<u>context</u>\n<u>:Context</u>" -> "<u>the_beginning_of_the_day</u>\n<u>:TheBeginningOfTheDay</u>" : the_beginning_of_the_day.action()
  16. main -> "<u>context</u>\n<u>:Context</u>" : context.greeting()
  17. "<u>context</u>\n<u>:Context</u>" -> "<u>the_beginning_of_the_day</u>\n<u>:TheBeginningOfTheDay</u>" : the_beginning_of_the_day.greeting()
  18. end
  19.  
  20. main -> "<u>context</u>\n<u>:Context</u>" : context.change_state()
  21. "<u>context</u>\n<u>:Context</u>" -> "<u>context</u>\n<u>:Context</u>" : state = the_end_of_the_day
  22.  
  23. group state:the_end_of_the_day
  24. main -> "<u>context</u>\n<u>:Context</u>" : context.greeting()
  25. "<u>context</u>\n<u>:Context</u>" -> "<u>the_end_of_the_day</u>\n<u>:TheEndOfTheDay</u>" : the_end_of_the_day.greeting()
  26. main -> "<u>context</u>\n<u>:Context</u>" : context.action()
  27. "<u>context</u>\n<u>:Context</u>" -> "<u>the_end_of_the_day</u>\n<u>:TheEndOfTheDay</u>" : the_end_of_the_day.action()
  28. end
  29.  
  30. @enduml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement