Klasse Route

java.lang.Object
org.opentcs.data.order.Route
Alle implementierten Schnittstellen:
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.
Siehe auch:
  • Konstruktordetails

    • Route

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

    • getSteps

      @Nonnull public List<Route.Step> getSteps()
      Returns the sequence of steps this route consists of.
      Gibt zurück:
      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.
      Gibt zurück:
      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.)
      Gibt zurück:
      The final destination point that is reached by travelling this route.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object