Advertisement
Arham-4

Black-Box SSD for Find Static Route UC

Apr 12th, 2023 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. @startuml
  2. actor Traveler
  3. actor "Google Directions API" as Directions
  4. actor "Google Maps API" as Maps
  5.  
  6. box Front-End
  7. participant ":System\nAndroid Cell Phone" as Android
  8. end box
  9.  
  10. box Back-End
  11. participant ":System\nBack-End Server" as Server
  12. end box
  13.  
  14. loop while sd1
  15. ref over Traveler, Server : sd1: View Pollutant Map
  16.  
  17. Traveler -> Android : selectNavMode(navMode)
  18. Android -->> Traveler : display nav input view
  19.  
  20. opt if user wants to origin from location other than current location
  21. loop while user entering origin
  22. Traveler -> Android : updateOriginTextBox(input)
  23. Android -> Maps : requestLocations(originTextBox)
  24. Maps -->> Android : originLocations
  25. Android -->> Traveler : showPossibleLocations(originLocations)
  26. break
  27. Traveler -> Android : selectOrigin(originLocation)
  28. end
  29. end
  30. end
  31.  
  32. loop while user entering destination
  33. Traveler -> Android : updateDestinationTextBox(input)
  34. Android -> Maps : requestLocations(destinationTextBox)
  35. Maps -->> Android : destinationLocations
  36. Android -->> Traveler : showPossibleLocations(destinationLocations)
  37. break
  38. Traveler -> Android : selectDestination(destinationLocation)
  39. end
  40. end
  41.  
  42. Traveler -> Android : provideEndpoints(origin, destination)
  43. Android -> Server : requestRoute(origin, destination, navMode, preferences)
  44. Server -> Directions : requestNavRoutes(navMode)
  45. Directions -->> Server : fastRoute
  46. Server -> Server : getPollutants(location)
  47.  
  48. Server -> Server : calculateSafestRoute(origin, destination, fastRoute)
  49. Server -->> Android : fastRoute, safeRoute, hasPollution
  50.  
  51. opt if hasPollution
  52. Android ->> Traveler : showLessSafeWarning
  53. end
  54.  
  55. Android -->> Traveler : showRoutesView(fastRoute, safeRoute)
  56.  
  57. opt if user selects more info
  58. Traveler -> Android : askRouteDetails
  59. Android -->> Traveler : showRouteDetails(directions, hazards, duration, tolls)
  60. end
  61.  
  62. opt if user clears route
  63. Traveler -> Android : clearRoute
  64. Android -->> Traveler : showMapView
  65. end
  66. end
  67. @enduml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement