Class Route

java.lang.Object
org.opentcs.data.order.Route
All Implemented Interfaces:
Serializable

public class Route extends Object implements 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:
  • Constructor Details

    • Route

      public Route(@Nonnull List<Route.Step> routeSteps, long routeCosts)
      Creates a new Route.
      Parameters:
      routeSteps - The sequence of steps this route consists of.
      routeCosts - The costs for travelling this route.
  • Method Details

    • getSteps

      @Nonnull public List<Route.Step> getSteps()
      Returns the sequence of steps this route consists of.
      Returns:
      The sequence of steps this route consists of. May be empty. The returned List is unmodifiable.
    • getCosts

      public long getCosts()
      Returns the costs for travelling this route.
      Returns:
      The costs for travelling this route.
    • getFinalDestinationPoint

      @Nonnull public Point 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object