Package org.opentcs.data.order
Class Route
java.lang.Object
org.opentcs.data.order.Route
- All Implemented Interfaces:
Serializable
A route for a
Vehicle, consisting of a sequence of steps (pairs of Paths and
Points) that need to be processed in their given order.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRoute(List<Route.Step> routeSteps) Creates a new Route.Route(List<Route.Step> routeSteps, long routeCosts) Deprecated. -
Method Summary
-
Constructor Details
-
Route
@Deprecated @ScheduledApiChange(when="7.0", details="Will be removed.") public Route(@Nonnull List<Route.Step> routeSteps, long routeCosts) Deprecated.UseRoute(java.util.List)instead.Creates a new Route.- Parameters:
routeSteps- The sequence of steps this route consists of.routeCosts- The costs for travelling this route.
-
Route
Creates a new Route.- Parameters:
routeSteps- The sequence of steps this route consists of.
-
-
Method Details
-
getSteps
Returns the sequence of steps this route consists of.- Returns:
- The sequence of steps this route consists of.
May be empty.
The returned
Listis unmodifiable.
-
getCosts
public long getCosts()Returns the costs for travelling this route.- Returns:
- The costs for travelling this route.
-
getFinalDestinationPoint
Returns the final destination point that is reached by travelling this route. (I.e. returns the destination point of this route's last step.)- Returns:
- The final destination point that is reached by travelling this route.
-
equals
-
hashCode
public int hashCode() -
toString
-
Route(java.util.List)instead.