Klasse DriveOrder

java.lang.Object
org.opentcs.data.order.DriveOrder
Alle implementierten Schnittstellen:
Serializable

public class DriveOrder extends Object implements Serializable
Describes a sequence of movements and an optional operation at the end that a Vehicle is supposed to execute.
Siehe auch:
  • Konstruktordetails

    • DriveOrder

      public DriveOrder(@Nonnull DriveOrder.Destination destination)
      Creates a new DriveOrder.
      Parameter:
      destination - This drive order's destination.
  • Methodendetails

    • getDestination

      @Nonnull public DriveOrder.Destination getDestination()
      Returns this drive order's destination.
      Gibt zurück:
      This drive order's destination.
    • getTransportOrder

      @Nullable public TCSObjectReference<TransportOrder> getTransportOrder()
      Returns a reference to the transport order this drive order belongs to.
      Gibt zurück:
      A reference to the transport order this drive order belongs to.
    • withTransportOrder

      public DriveOrder withTransportOrder(@Nullable TCSObjectReference<TransportOrder> transportOrder)
      Creates a copy of this object, with the given transport order.
      Parameter:
      transportOrder - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getRoute

      @Nullable public Route getRoute()
      Returns this drive order's route.
      Gibt zurück:
      This drive order's route. May be null if this drive order's route hasn't been calculated, yet.
    • withRoute

      public DriveOrder withRoute(@Nullable Route route)
      Creates a copy of this object, with the given route.
      Parameter:
      route - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getState

      @Nonnull public DriveOrder.State getState()
      Returns this drive order's state.
      Gibt zurück:
      This drive order's state.
    • withState

      public DriveOrder withState(@Nonnull DriveOrder.State state)
      Creates a copy of this object, with the given state.
      Parameter:
      state - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • equals

      public boolean equals(Object obj)
      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