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:
java.io.Serializable
public class TransportOrderAssignmentException extends KernelRuntimeException
Thrown when a
TransportOrder
could not be assigned to a Vehicle
.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TransportOrderAssignmentException(TCSObjectReference<TransportOrder> transportOrder, TCSObjectReference<Vehicle> vehicle, TransportOrderAssignmentVeto transportOrderAssignmentVeto)
Creates a new instance. -
Method Summary
Modifier and Type Method Description TCSObjectReference<TransportOrder>
getTransportOrder()
Returns the transport order.TransportOrderAssignmentVeto
getTransportOrderAssignmentVeto()
Returns the reason why a transport order assignment was not possible.TCSObjectReference<Vehicle>
getVehicle()
Returns the vehicle.
-
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.
-