DeliveryVehicleReporter

public abstract class DeliveryVehicleReporter extends NavigationVehicleReporter

Vehicle reporter for a delivery vehicle that reports location and stop information. An app is allowed only one vehicle reporter.

Public Method Summary

Future<List<VehicleStop>>
arrivedAtStop()
Signals that vehicle has arrived at the next scheduled stop.
Future<List<VehicleStop>>
completedStop()
Signals that all tasks associated with the current stop have been attempted or cancelled.
Future<List<VehicleStop>>
enrouteToNextStop()
Signals that vehicle has begun traveling towards the next scheduled stops.
List<VehicleStop>
Future<List<VehicleStop>>
setVehicleStops(List<VehicleStop> stops)
Provides a list of stops that vehicle is expected to visit in the given ordered, uninterrupted sequence.

Inherited Method Summary

Public Methods

public Future<List<VehicleStop>> arrivedAtStop ()

Signals that vehicle has arrived at the next scheduled stop.

Returns
  • Returns a Future that will provide the list of remaining stops.

public Future<List<VehicleStop>> completedStop ()

Signals that all tasks associated with the current stop have been attempted or cancelled.

Returns
  • Returns a Future that will provide the list of remaining stops.

public Future<List<VehicleStop>> enrouteToNextStop ()

Signals that vehicle has begun traveling towards the next scheduled stops.

Returns
  • Returns a Future that will provide the list of remaining stops.

public List<VehicleStop> getRemainingVehicleStops ()

Returns
  • remaining stops that have not yet been visited. Includes the next stop until completedStop() is called.

public Future<List<VehicleStop>> setVehicleStops (List<VehicleStop> stops)

Provides a list of stops that vehicle is expected to visit in the given ordered, uninterrupted sequence.

Returns
  • Returns a Future that will provide the list of remaining stops.