Page Summary
-
DeliveryTaskis an abstract class that represents a single action within a delivery workflow, differentiating between shipment and break tasks. -
A shipment can involve multiple
DeliveryTaskinstances, such as pickup and dropoff, potentially handled by different vehicles. -
DeliveryTaskprovides builder methods to create and modify instances, allowing you to define task properties and relationships. -
This class inherits functionalities from the
Taskclass, enabling access to details like task state, outcome, and planned waypoint. -
You can use
toBuilderto create a new Builder pre-populated with the currentDeliveryTaskdata for modifications.
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.