Advertisement
Guest User

RE01

a guest
Oct 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. # Use case 1: Manage Provided Vehicles
  2.  
  3.  
  4. ### Description
  5.  
  6. Actors who provide vehicles for others to rent, such as the clients or the company itself, called "Providers" from now on (as seen in the [actors hierarchy diagram](UseCases)), should be able to manage their list of vehicles, as well as single vehicle's specifications. These operations being the addition and removal of vehicles from their personal list, state a vehicle as ready, or not, for rental, and tweak of rental specifications of a given vehicle, such as changing the rental price or the available rental period.
  7.  
  8.  
  9. ### Actors
  10.  
  11. #### Primary Actor
  12.  
  13. * Provider
  14.  
  15. #### Stakeholders
  16.  
  17. * **TBD**
  18.  
  19.  
  20. ### Pre-conditions
  21.  
  22. The user is registered on a provider account, this is, Company or Client.
  23.  
  24.  
  25. ### Success guarantees
  26.  
  27. The information of the vehicles or of their list changes.
  28.  
  29.  
  30. ### Steps
  31.  
  32. 1. The provider requests the management of the vehicles.
  33. 2. The system asks what the provider wishes to do.
  34.  
  35. From now on three paths could be taken, each one of them is described below.
  36.  
  37. ##### Addition of a vehicle
  38.  
  39. 3. The provider chooses to add a vehicle to their personal list.
  40. 4. The system asks for the type of vehicle.
  41. 1. The user chooses passenger vehicle.
  42. 1. The system asks for the quantity of seats.
  43. 2. The user inserts the quantity of seats.
  44. 2. The user chooses commercial vehicle.
  45. 1. The system asks for the max volume and weight.
  46. 2. The user inserts the max volume and weight.
  47. 3. The system asks if the vehicle is refrigerated.
  48. 4. The user inserts if the vehicle is refrigerated.
  49. 5. The system validates the vehicle and adds it to the provider's personal list.
  50.  
  51. ##### Removal of a vehicle
  52.  
  53. 3. The provider chooses to remove a vehicle from their personal list.
  54. 4. The system shows the list of vehicle and requests a vehicle to remove.
  55. 5. The provider chooses the vehicle.
  56. 6. The system removes the vehicle from the provider's personal list.
  57.  
  58. ##### Edit vehicle preferences
  59.  
  60. 3. The provider chooses to edit a vehicle preferences.
  61. 4. The system shows the list of vehicles and requests one.
  62. 5. The provider chooses a vehicle.
  63. 6. The system asks if the provider wants to change its rental conditions, allowed rental schedule or rental price.
  64. 1. The provider chooses to change the vehicle's rental conditions.
  65. 1. The vehicle is not up to rent.
  66. 1. The provider sets it up to rent.
  67. 2. The vehicle is up to rent.
  68. 1. The providers removes it from up to rent.
  69. 2. The provider chooses to change its rental schedule.
  70. 1. The system requests a new schedule.
  71. 2. The provider inserts the new schedule.
  72. 3. The provider chooses to change its rental price.
  73. 1. The system requests a new price.
  74. 2. The providers inserts the new price.
  75. 7. The system validates the new specification and updates the vehicle's condition.
  76.  
  77. **Note: ** If the specific vehicle has contracts made at the time of edition, these contracts stay up, only future rentals will be affected.
  78.  
  79.  
  80. ### Variations
  81.  
  82. The provider wishes to cancel the use case.
  83. > The use case is aborted.
  84.  
  85. ##### Addition of a vehicle
  86.  
  87. 4.1.2. The input quantity is incorrect.
  88. > The system requests for the quantity of seats once again (step 4.1.1.).
  89.  
  90. 4.2.2. The input is incorrect.
  91. > The system requests new max volume and weight (step 4.2.1.).
  92.  
  93. 4.2.4 The input is incorrect.
  94. > The system asks again if the vehicle is refrigerated (step 4.2.3.).
  95.  
  96. 5 . The vehicle is invalid.
  97. > The addition is aborted and the system asks what the provider wishes to do (step 2.).
  98.  
  99. ##### Removal of a vehicle
  100.  
  101. 5 . The vehicle is invalid or requested cancellation.
  102. > The removal is aborted and the system asks what the provider wishes to do (step 2.).
  103.  
  104. ##### Edit vehicle preferences
  105.  
  106. 5 . The vehicle is invalid.
  107. > The system shows the list of vehicles and requests one (step 4.).
  108.  
  109. 5.2.2. The schedule is invalid.
  110. > The system requests a new schedule (step 5.2.1.).
  111.  
  112. 5.3.2. The price is invalid.
  113. > The system requests a new price (step 5.3.1.).
  114.  
  115. 5.6. The new specifications are invalid.
  116. > The edition is aborted and the system asks what the provider wishes to do (step 2.).
  117.  
  118.  
  119. ### Issues
  120.  
  121. * What are the parameters of the rental schedule?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement