Schnittstelle InternalTransportOrderService
- Alle Superschnittstellen:
TCSObjectService
,TransportOrderService
Declares the methods the transport order service must provide which are not accessible to remote
peers.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Sets an order sequence's finished flag.void
updateOrderSequenceFinishedIndex
(TCSObjectReference<OrderSequence> ref, int index) Updates an order sequence's finished index.void
updateOrderSequenceProcessingVehicle
(TCSObjectReference<OrderSequence> seqRef, TCSObjectReference<Vehicle> vehicleRef) Updates an order sequence's processing vehicle.void
updateTransportOrderCurrentRouteStepIndex
(TCSObjectReference<TransportOrder> ref, int index) Updates a transport order's index of the last route step travelled for the currently processed drive order.void
updateTransportOrderDriveOrders
(TCSObjectReference<TransportOrder> ref, List<DriveOrder> driveOrders) Updates a transport order's list of drive orders.void
Updates a transport order's current drive order.void
updateTransportOrderProcessingVehicle
(TCSObjectReference<TransportOrder> orderRef, TCSObjectReference<Vehicle> vehicleRef, List<DriveOrder> driveOrders) Updates a transport order's processing vehicle.void
Updates a transport order's state.Von Schnittstelle geerbte Methoden org.opentcs.components.kernel.services.TCSObjectService
appendObjectHistoryEntry, fetchObject, fetchObject, fetchObjects, fetchObjects, updateObjectProperty
Von Schnittstelle geerbte Methoden org.opentcs.components.kernel.services.TransportOrderService
createOrderSequence, createTransportOrder, markOrderSequenceComplete, updateTransportOrderIntendedVehicle
-
Methodendetails
-
markOrderSequenceFinished
Sets an order sequence's finished flag.- Parameter:
ref
- A reference to the order sequence to be modified.- Löst aus:
ObjectUnknownException
- If the referenced transport order is not in this pool.
-
updateOrderSequenceFinishedIndex
void updateOrderSequenceFinishedIndex(TCSObjectReference<OrderSequence> ref, int index) throws ObjectUnknownException Updates an order sequence's finished index.- Parameter:
ref
- A reference to the order sequence to be modified.index
- The sequence's new finished index.- Löst aus:
ObjectUnknownException
- If the referenced transport order is not in this pool.
-
updateOrderSequenceProcessingVehicle
void updateOrderSequenceProcessingVehicle(TCSObjectReference<OrderSequence> seqRef, TCSObjectReference<Vehicle> vehicleRef) throws ObjectUnknownException Updates an order sequence's processing vehicle.- Parameter:
seqRef
- A reference to the order sequence to be modified.vehicleRef
- A reference to the vehicle processing the order sequence.- Löst aus:
ObjectUnknownException
- If the referenced transport order is not in this pool.
-
updateTransportOrderDriveOrders
void updateTransportOrderDriveOrders(TCSObjectReference<TransportOrder> ref, List<DriveOrder> driveOrders) throws ObjectUnknownException Updates a transport order's list of drive orders.- Parameter:
ref
- A reference to the transport order to be modified.driveOrders
- The drive orders containing the data to be copied into this transport order's drive orders.- Löst aus:
ObjectUnknownException
- If the referenced transport order does not exist.
-
updateTransportOrderNextDriveOrder
void updateTransportOrderNextDriveOrder(TCSObjectReference<TransportOrder> ref) throws ObjectUnknownException Updates a transport order's current drive order. Marks the current drive order as finished, adds it to the list of past drive orders and sets the current drive order to the next one of the list of future drive orders (ornull
, if that list is empty). Also implicitly sets thetransport order's current route step index
toTransportOrder.ROUTE_STEP_INDEX_DEFAULT
. If the current drive order isnull
because all drive orders have been finished already or none has been started, yet, nothing happens.- Parameter:
ref
- A reference to the transport order to be modified.- Löst aus:
ObjectUnknownException
- If the referenced transport order is not in this pool.
-
updateTransportOrderCurrentRouteStepIndex
void updateTransportOrderCurrentRouteStepIndex(TCSObjectReference<TransportOrder> ref, int index) throws ObjectUnknownException Updates a transport order's index of the last route step travelled for the currently processed drive order.- Parameter:
ref
- A reference to the transport order to be modified.index
- The new index.- Löst aus:
ObjectUnknownException
- If the referenced transport order does not exist.
-
updateTransportOrderProcessingVehicle
void updateTransportOrderProcessingVehicle(TCSObjectReference<TransportOrder> orderRef, TCSObjectReference<Vehicle> vehicleRef, List<DriveOrder> driveOrders) throws ObjectUnknownException, IllegalArgumentException Updates a transport order's processing vehicle.- Parameter:
orderRef
- A reference to the transport order to be modified.vehicleRef
- A reference to the vehicle processing the order.driveOrders
- The drive orders containing the data to be copied into this transport order's drive orders.- Löst aus:
ObjectUnknownException
- If the referenced transport order does not exist.IllegalArgumentException
- If the destinations of the given drive orders do not match the destinations of the drive orders in this transport order.
-
updateTransportOrderState
void updateTransportOrderState(TCSObjectReference<TransportOrder> ref, TransportOrder.State state) throws ObjectUnknownException Updates a transport order's state. Note that transport order states are intended to be manipulated by the dispatcher only. Calling this method from any other parts of the kernel may result in undefined behaviour.- Parameter:
ref
- A reference to the transport order to be modified.state
- The transport order's new state.- Löst aus:
ObjectUnknownException
- If the referenced transport order does not exist.
-