Package org.openwms.common.putaway.impl
Class PutawayServiceImpl
- java.lang.Object
-
- org.openwms.common.putaway.impl.PutawayServiceImpl
-
- All Implemented Interfaces:
PutawayService
@TxService class PutawayServiceImpl extends Object implements PutawayService
A PutawayServiceImpl.- Author:
- Heiko Scherrer
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
LOGGER
private StockLocationRepository
stockLocationRepository
private org.openwms.common.transport.TransportUnitService
transportUnitService
-
Constructor Summary
Constructors Constructor Description PutawayServiceImpl(StockLocationRepository stockLocationRepository, org.openwms.common.transport.TransportUnitService transportUnitService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
availableLocationsIn(List<String> locationGroupNames)
Get the number of all availableLocation
s in theLocationGroup
s.Optional<org.openwms.common.location.Location>
findAndAssignNextLocations(List<String> stockLocationGroupNames, org.openwms.common.transport.barcode.Barcode barcode, org.openwms.common.location.api.LocationGroupState groupStateIn, org.openwms.common.location.api.LocationGroupState groupStateOut)
Find assign and return anLocation
that belong to theLocationGroup
s identified by the givenstockLocationGroupNames
and that matches the applied filter criteria.List<org.openwms.common.location.Location>
findAvailableStockLocations(List<String> stockLocationGroupNames, org.openwms.common.transport.barcode.Barcode barcode, org.openwms.common.location.api.LocationGroupState groupStateIn, org.openwms.common.location.api.LocationGroupState groupStateOut, int count)
Find and return allLocation
s that belong to theLocationGroup
s identified by the givenstockLocationGroupNames
and that match the applied filter criteria.
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
stockLocationRepository
private final StockLocationRepository stockLocationRepository
-
transportUnitService
private final org.openwms.common.transport.TransportUnitService transportUnitService
-
-
Constructor Detail
-
PutawayServiceImpl
PutawayServiceImpl(StockLocationRepository stockLocationRepository, org.openwms.common.transport.TransportUnitService transportUnitService)
-
-
Method Detail
-
findAvailableStockLocations
@Measured public List<org.openwms.common.location.Location> findAvailableStockLocations(List<String> stockLocationGroupNames, org.openwms.common.transport.barcode.Barcode barcode, org.openwms.common.location.api.LocationGroupState groupStateIn, org.openwms.common.location.api.LocationGroupState groupStateOut, int count)
Find and return allLocation
s that belong to theLocationGroup
s identified by the givenstockLocationGroupNames
and that match the applied filter criteria.- Specified by:
findAvailableStockLocations
in interfacePutawayService
- Parameters:
stockLocationGroupNames
- The names of the LocationGroups to search Locations forbarcode
- The Barcode of the TransportUnit to search a Location forgroupStateIn
- If null this criterion is not applied, otherwise only Locations are considered that match the demanded groupStateIngroupStateOut
- If null this criterion is not applied, otherwise only Locations are considered that match the demanded groupStateOutcount
- A number of Locations to return. Useful to limit the result set- Returns:
- All Locations, never null
-
findAndAssignNextLocations
@Measured public Optional<org.openwms.common.location.Location> findAndAssignNextLocations(List<String> stockLocationGroupNames, org.openwms.common.transport.barcode.Barcode barcode, org.openwms.common.location.api.LocationGroupState groupStateIn, org.openwms.common.location.api.LocationGroupState groupStateOut)
Find assign and return anLocation
that belong to theLocationGroup
s identified by the givenstockLocationGroupNames
and that matches the applied filter criteria.- Specified by:
findAndAssignNextLocations
in interfacePutawayService
- Parameters:
stockLocationGroupNames
- The names of the LocationGroups to search Locations forbarcode
- The Barcode of the TransportUnit to search a Location forgroupStateIn
- If null this criterion is not applied, otherwise only Locations are considered that match the demanded groupStateIngroupStateOut
- If null this criterion is not applied, otherwise only Locations are considered that match the demanded groupStateOut- Returns:
- The assigned Location
-
availableLocationsIn
@Measured public int availableLocationsIn(List<String> locationGroupNames)
Get the number of all availableLocation
s in theLocationGroup
s.- Specified by:
availableLocationsIn
in interfacePutawayService
- Parameters:
locationGroupNames
- The names of the LocationGroups to search for- Returns:
- The amount of Locations available for infeed and outfeed.
-
-