Page Summary
-
VehicleStopis an abstract class that describes a stop for a vehicle to visit during a trip. -
It includes information about the stop's location (
Waypoint), tasks to be completed (TaskInfoList), and the current state of the stop (VehicleStopState). -
Developers can use the
builder()method to create new instances ofVehicleStopandtoBuilder()to modify existing ones. -
The
getVehicleStopState(),getWaypoint(), andgetTaskInfoList()methods provide access to the stop's properties.
Describes a stop that the vehicle will be visiting.
Nested Class Summary
| class | VehicleStop.Builder | Builder class for VehicleStop. | |
| @interface | VehicleStop.VehicleStopState | The current state of a VehicleStop. | |
Public Constructor Summary
Public Method Summary
| static VehicleStop.Builder |
builder()
Returns new default Builder instance, with the VehicleStop state set to NEW.
|
| abstract ImmutableList<TaskInfo> |
getTaskInfoList()
Returns the list of
TaskInfo objects associated with the vehicle stop.
|
| abstract int |
getVehicleStopState()
Returns the state of the VehicleStop.
|
| abstract Waypoint |
getWaypoint()
Returns the waypoint of the vehicle stop.
|
| abstract VehicleStop.Builder |
toBuilder()
Returns new Builder instance set with current VehicleStop state.
|
Inherited Method Summary
Public Constructors
public VehicleStop ()
Public Methods
public static VehicleStop.Builder builder ()
Returns new default Builder instance, with the VehicleStop state set to NEW.
public abstract ImmutableList<TaskInfo> getTaskInfoList ()
Returns the list of
TaskInfo objects associated with the vehicle stop.
public abstract int getVehicleStopState ()
Returns the state of the VehicleStop.
public abstract Waypoint getWaypoint ()
Returns the waypoint of the vehicle stop.
public abstract VehicleStop.Builder toBuilder ()
Returns new Builder instance set with current VehicleStop state.