Skip to content

Commit 1276c04

Browse files
author
Jean Kao
authored
remove Unknown from Delivery Robot
Replaced 'unknown' state with new 'non_contactable' along with associated event types in the transitions. Note: event types included 'located' and 'missing' but this isn't in the transitions table. If they are to be included then need to add 'missing' vehicle state and modify event type to 'not_located'.
1 parent 0fc51dc commit 1276c04

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

modes/delivery-robots.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ Valid delivery vehicle states are
164164
- `reserved`
165165
- `on_trip`
166166
- `stopped`
167-
- `elsewhere`
168-
- `unknown`
167+
- `non_contactable`
168+
- `elsewhere`
169169

170170
See [Vehicle States][vehicle-states] for descriptions.
171171

@@ -224,45 +224,45 @@ This is the list of `vehicle_state` and `event_type` pairings that constitute th
224224
| `available` | `elsewhere` | N/A | `leave_jurisdiction` | The vehicle has left jurisdictional boundaries while available for-hire |
225225
| `available` | `non_operational` | N/A | `service_end` | The vehicle has gone out of service (is unavailable for-hire) |
226226
| `available` | `reserved` | `reserved` | `reserve` | The vehicle was reserved by a customer |
227-
| `available` | `unknown` | N/A | `comms_lost` | The vehicle has gone out of comms while available for-use |
227+
| `available` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while available for-use |
228228
| `elsewhere` | `available` | N/A | `enter_jurisdiction` | The vehicle has entered jurisdictional boundaries while available for-hire |
229229
| `elsewhere` | `non_operational` | N/A | `enter_jurisdiction` | The vehicle has entered jurisdictional boundaries while not operating commercially |
230230
| `elsewhere` | `on_trip` | `on_trip` | `enter_jurisdiction` | The vehicle has entered jurisdictional boundaries while on a trip |
231231
| `elsewhere` | `reserved` | N/A | `enter_jurisdiction` | The vehicle has entered jurisdictional boundaries while reserved by a customer |
232-
| `elsewhere` | `unknown` | N/A | `comms_lost` | The vehicle has gone out of comms while outside of jurisdictional boundaries |
232+
| `elsewhere` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while outside of jurisdictional boundaries |
233233
| `non_operational` | `available` | N/A | `service_start` | The vehicle has gone into service (is available for-hire) |
234234
| `non_operational` | `elsewhere` | N/A | `leave_jurisdiction` | The vehicle has left jurisdictional boundaries while not operating commercially |
235235
| `non_operational` | `removed` | N/A | `decommissioned` | The vehicle has been removed from the Provider's fleet |
236236
| `non_operational` | `removed` | N/A | `maintenance_start` | The vehicle has entered the depot for maintenance |
237-
| `non_operational` | `unknown` | N/A | `comms_lost` | The vehicle has gone out of comms while not operating commercially |
237+
| `non_operational` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while not operating commercially |
238238
| `on_trip` | `elsewhere` | N/A | `leave_jurisdiction` | The vehicle has left jurisdictional boundaries while on a trip |
239239
| `on_trip` | `stopped` | `stopped` | `trip_pause` | The vehicle has paused while on a trip |
240240
| `on_trip` | `stopped` | `stopped` | `order_pick_up` | The vehicle has stopped while on a trip to pick up an order |
241-
| `on_trip` | `unknown` | N/A | `comms_lost` | The vehicle has gone out of comms while on a trip to pick up the order |
241+
| `on_trip` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while on a trip to pick up the order |
242242
| `removed` | `non_operational` | N/A | `maintenance_end` | The vehicle has left the depot |
243243
| `removed` | `non_operational` | N/A | `recommissioned` | The vehicle has been re-added to the Provider's fleet after being previously `decommissioned` |
244-
| `removed` | `unknown` | N/A | `comms_lost` | The vehicle has gone out of comms while removed |
244+
| `removed` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while removed |
245245
| `reserved` | `available` | N/A | `driver_cancellation` | The driver has canceled the reservation |
246246
| `reserved` | `available` | N/A | `customer_cancellation` | The customer has canceled the reservation |
247247
| `reserved` | `available` | N/A | `provider_cancellation` | The provider has canceled the reservation |
248248
| `reserved` | `elsewhere` | N/A | `leave_jurisdiction` | The vehicle has left the jurisdiction while in a reservation |
249249
| `reserved` | `stopped` | `stopped` | `reserve_stop` | The vehicle has stopped to pickup reservation |
250-
| `reserved` | `unknown` | N/A | `comms_lost` | The vehicle has gone of comms while being reserved by a customer |
250+
| `reserved` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone of comms while being reserved by a customer |
251251
| `stopped` | `available` | N/A | `driver_cancellation` | The driver has canceled the trip while waiting |
252252
| `stopped` | `available` | N/A | `customer_cancellation` | The customer has canceled the trip while the vehicle is waiting |
253253
| `stopped` | `available` | N/A | `provider_cancellation` | The provider has canceled the trip while the vehicle is waiting |
254254
| `on_trip` | `available` | N/A | `order_drop_off` | The delivery vehicle has stopped to wait for the customer to pick up the order |
255255
| `stopped` | `available` | N/A | `trip_end` | The trip has been successfully completed |
256256
| `stopped` | `on_trip` | `on_trip` | `trip_resume` | Resume a trip that was previously paused (e.g. picking up an order) |
257257
| `stopped` | `on_trip` | `on_trip` | `trip_start` | Start a trip |
258-
| `stopped` | `unknown` | N/A | `comms_lost` | The vehicle has gone out of comms while stopped |
259-
| `unknown` | `available` | N/A | `comms_restored` | The vehicle has come back into comms while available for-hire |
260-
| `unknown` | `elsewhere` | N/A | `comms_restored` | The vehicle has come back into comms while outside of jurisdictional boundaries |
261-
| `unknown` | `non_operational` | N/A | `comms_restored` | The vehicle has come back into comms while not operating commercially |
262-
| `unknown` | `on_trip` | `on_trip` | `comms_restored` | The vehicle has come back into comms while on a trip |
263-
| `unknown` | `removed` | N/A | `comms_restored` | The vehicle has come back into comms while removed |
264-
| `unknown` | `reserved` | `reserved` | `comms_restored` | The vehicle has come back into comms while reserved by a customer |
265-
| `unknown` | `stopped` | `stopped` | `comms_restored` | The vehicle has come back into comms while stopped |
258+
| `stopped` | `unon_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while stopped |
259+
| `non_contactable` | `available` | N/A | `comms_restored` | The vehicle has come back into comms while available for-hire |
260+
| `non_contactable` | `elsewhere` | N/A | `comms_restored` | The vehicle has come back into comms while outside of jurisdictional boundaries |
261+
| `non_contactable` | `non_operational` | N/A | `comms_restored` | The vehicle has come back into comms while not operating commercially |
262+
| `non_contactable` | `on_trip` | `on_trip` | `comms_restored` | The vehicle has come back into comms while on a trip |
263+
| `non_contactable` | `removed` | N/A | `comms_restored` | The vehicle has come back into comms while removed |
264+
| `non_contactable` | `reserved` | `reserved` | `comms_restored` | The vehicle has come back into comms while reserved by a customer |
265+
| `non_contactable` | `stopped` | `stopped` | `comms_restored` | The vehicle has come back into comms while stopped |
266266
| `on_trip` | `stopped` | `stopped` | `order_pick_up` | The vehicle has come to pick up the order at the restaurant |
267267
| `on_trip` |`available` | N/A | `order_drop_off` | The vehicle is at the customer's place and is waiting for them |
268268
| `on_trip` | `stopped` | `stopped` | `order_pick_up` | The vehicle has come to pick up the order at the restaurant |

0 commit comments

Comments
 (0)