VehicleStop.Builder

  • VehicleStop.Builder is used to create instances of VehicleStop objects, defining properties like location and associated tasks.

  • Developers can set the list of TaskInfo objects, the state of the VehicleStop, and the navigation waypoint using the builder's methods.

  • The build() method creates a new VehicleStop instance based on the configured properties, ensuring necessary values are set.

  • If a VehicleStop is built without TaskInfos or if any required values are missing, exceptions like IllegalArgumentException or NullPointerException will be thrown.

public static abstract class VehicleStop.Builder extends Object

Builder class for VehicleStop.

Public Method Summary

VehicleStop
build()
Returns new VehicleStop instance with the state set by the Builder.
abstract VehicleStop.Builder
setTaskInfoList(List<TaskInfo> taskInfoList)
Sets the list of TaskInfo objects associated with this stop.
abstract VehicleStop.Builder
setVehicleStopState(int value)
Sets the state of the VehicleStop.
abstract VehicleStop.Builder
setWaypoint(Waypoint waypoint)
Sets the location that should be navigated to for the stop.

Inherited Method Summary

Public Methods

public VehicleStop build ()

Returns new VehicleStop instance with the state set by the Builder.

Throws
NullPointerException if any non-nullable values are not set.
IllegalArgumentException if the VehicleStop is set without any TaskInfos.

public abstract VehicleStop.Builder setTaskInfoList (List<TaskInfo> taskInfoList)

Sets the list of TaskInfo objects associated with this stop.

public abstract VehicleStop.Builder setVehicleStopState (int value)

Sets the state of the VehicleStop.

public abstract VehicleStop.Builder setWaypoint (Waypoint waypoint)

Sets the location that should be navigated to for the stop.