org.openwms.tms.service
Interface TransportOrderService<T extends TransportOrder>

Type Parameters:
T - Any kind of TransportOrder
All Superinterfaces:
EntityService<T>
All Known Implementing Classes:
TransportServiceImpl

public interface TransportOrderService<T extends TransportOrder>
extends EntityService<T>

A TransportService - Extends the EntityService interface about some useful methods regarding the general handling with TransportOrders.

Extends the EntityService interface about some useful methods regarding the general handling with TransportOrders.

Since:
0.1
Version:
$Revision: 1583 $
Author:
Heiko Scherrer
See Also:
EntityService

Method Summary
 List<Integer> cancelTransportOrders(List<Integer> transportOrders, TransportOrderState state)
          Try to turn a list of TransportOrders into state.
 T createTransportOrder(Barcode barcode, LocationGroup targetLocationGroup, Location targetLocation, PriorityLevel priority)
          Create a new TransportOrder.
 T createTransportOrder(Barcode barcode, LocationGroup targetLocationGroup, PriorityLevel priority)
          Create a new TransportOrder.
 T createTransportOrder(Barcode barcode, Location targetLocation, PriorityLevel priority)
          Create a new TransportOrder.
 int getTransportsToLocationGroup(LocationGroup locationGroup)
          Returns the actual number of active transports that have the locationGroup as target LocationGroup.
 List<Integer> redirectTransportOrders(List<Integer> transportOrders, LocationGroup targetLocationGroup, Location targetLocation)
          Try to redirect a list of TransportOrders to a new target LocationGroup.
 
Methods inherited from interface org.openwms.core.service.EntityService
add, findAll, remove, save
 

Method Detail

getTransportsToLocationGroup

int getTransportsToLocationGroup(LocationGroup locationGroup)
Returns the actual number of active transports that have the locationGroup as target LocationGroup.

Parameters:
locationGroup - LocationGroup to count all active transports for
Returns:
Number of all active transports that are on the way to this LocationGroup

createTransportOrder

T createTransportOrder(Barcode barcode,
                       LocationGroup targetLocationGroup,
                       Location targetLocation,
                       PriorityLevel priority)
Create a new TransportOrder.

Parameters:
barcode - The Barcode of the TransportUnit
targetLocationGroup - The target LocationGroup
targetLocation - The target Location
priority - A PriorityLevel of the new TransportOrder
Returns:
The new created TransportOrder

createTransportOrder

T createTransportOrder(Barcode barcode,
                       LocationGroup targetLocationGroup,
                       PriorityLevel priority)
Create a new TransportOrder.

Parameters:
barcode - The Barcode of the TransportUnit
targetLocationGroup - The target LocationGroup
priority - A PriorityLevel of the new TransportOrder
Returns:
The new created TransportOrder

createTransportOrder

T createTransportOrder(Barcode barcode,
                       Location targetLocation,
                       PriorityLevel priority)
Create a new TransportOrder.

Parameters:
barcode - The Barcode of the TransportUnit
targetLocation - The target Location
priority - A PriorityLevel of the new TransportOrder
Returns:
The new created TransportOrder

cancelTransportOrders

List<Integer> cancelTransportOrders(List<Integer> transportOrders,
                                    TransportOrderState state)
Try to turn a list of TransportOrders into state.

Parameters:
transportOrders - The IDs of TransportOrders
state - The state to change all orders to
Returns:
A list of TransportOrder IDs that have not been canceled successfully

redirectTransportOrders

List<Integer> redirectTransportOrders(List<Integer> transportOrders,
                                      LocationGroup targetLocationGroup,
                                      Location targetLocation)
Try to redirect a list of TransportOrders to a new target LocationGroup.

Parameters:
transportOrders - The IDs of TransportOrders to be redirected
targetLocationGroup - The new target LocationGroup for the TransportOrders or null
targetLocation - The new target Location for the TransportOrder s, or null
Returns:
A list of TransportOrder IDs that couldn't be redirected successfully


Copyright © 2005-2011 openwms.org. All Rights Reserved.