Page Summary
-
DeliveryTaskis an abstract class within the Driver SDK that represents a single action to track, such as pickup or dropoff, within a delivery workflow. -
A shipment can have multiple
DeliveryTaskinstances associated with it, potentially handled by different vehicles. -
DeliveryTaskcan be easily constructed using builder methods (builder()) with options for specifying task name or provider/task IDs. -
This class inherits functionalities from
Taskclass offering details about the task's state, outcome, type, assigned vehicle, and planned waypoint. -
toBuilder()method allows creating a newDeliveryTask.Builderinitialized with the currentDeliveryTask's properties for modification.
DeliveryTask represents a single action to track. In general there is a distinction between shipment-related tasks and break tasks. A shipment can have multiple tasks associated with it; for example, one task for the pickup and one for the dropoff or transfer. Different tasks for a given shipment can be handled by different vehicles; for example, one vehicle handles the pickup and drives the shipment to the hub, while another drives the same shipment from the hub to the dropoff.
Nested Class Summary
| class | DeliveryTask.Builder | Builder class for DeliveryTask. | |
Public Constructor Summary
Public Method Summary
| static DeliveryTask.Builder | |
| static DeliveryTask.Builder | |
| abstract DeliveryTask.Builder |
toBuilder()
Returns new Builder instance set with current DeliveryTask state.
|
Inherited Method Summary
Public Constructors
public DeliveryTask ()
Public Methods
public static DeliveryTask.Builder builder (String taskName)
Returns new default Builder instance.
public static DeliveryTask.Builder builder (String providerId, String taskId)
Returns new default Builder instance.
public abstract DeliveryTask.Builder toBuilder ()
Returns new Builder instance set with current DeliveryTask state.