Class TransportOrderAssignmentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opentcs.access.KernelRuntimeException
org.opentcs.components.kernel.dipatching.TransportOrderAssignmentException
- All Implemented Interfaces:
Serializable
Thrown when a
TransportOrder
could not be assigned to a Vehicle
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransportOrderAssignmentException
(TCSObjectReference<TransportOrder> transportOrder, TCSObjectReference<Vehicle> vehicle, TransportOrderAssignmentVeto transportOrderAssignmentVeto) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the transport order.Returns the reason why a transport order assignment was not possible.Returns the vehicle.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransportOrderAssignmentException
public TransportOrderAssignmentException(@Nonnull TCSObjectReference<TransportOrder> transportOrder, @Nullable TCSObjectReference<Vehicle> vehicle, @Nonnull TransportOrderAssignmentVeto transportOrderAssignmentVeto) Creates a new instance.- Parameters:
transportOrder
- The transport order.vehicle
- The vehicle.transportOrderAssignmentVeto
- The reason why the transport order could not be assigned to the vehicle.
-
-
Method Details
-
getTransportOrder
Returns the transport order.- Returns:
- The transport order.
-
getVehicle
Returns the vehicle.- Returns:
- The vehicle.
-
getTransportOrderAssignmentVeto
Returns the reason why a transport order assignment was not possible.- Returns:
- The reason why a transport order assignment was not possible.
-