Package org.openwms.tms.routing.routes
Class RouteSearchAlgorithmImpl
java.lang.Object
org.openwms.tms.routing.routes.RouteSearchAlgorithmImpl
- All Implemented Interfaces:
RouteSearchAlgorithm
@Profile("!SIMPLE")
@Component
class RouteSearchAlgorithmImpl
extends Object
implements RouteSearchAlgorithm
A RouteSearchAlgorithmImpl is the extended and standard version of the
RouteSearchAlgorithm
.- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate Collection
<org.openwms.common.location.api.LocationGroupVO> private final org.openwms.common.location.api.LocationApi
private final LocationGroupLoader
private static final org.slf4j.Logger
static final String
private final RouteRepository
-
Constructor Summary
ConstructorDescriptionRouteSearchAlgorithmImpl
(RouteRepository repository, org.openwms.common.location.api.LocationApi locationApi, LocationGroupLoader locationGroupLoader) -
Method Summary
Modifier and TypeMethodDescriptionFind and return a Route from the givensourceLocation
to either thetargetLocation
or to thetargetLocationGroup
.findInHierarchy
(String sourceLocation, String targetLocation, String targetLocationGroupName, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups) findInHierarchy2
(String sourceLocation, String targetLocationGroupName, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups) findInSourceGroupHierarchy
(String sourceLocationGroup, String targetLocationGroup, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups) findInSourceGroupHierarchyWithTargetLocation
(String sourceLocationGroup, String targetLocation, String targetLocationGroup, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups) findInTargetGroupHierarchy
(String sourceLocation, String targetLocationGroup, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MSG
- See Also:
-
repository
-
locationApi
private final org.openwms.common.location.api.LocationApi locationApi -
locationGroupLoader
-
mappingLocationToParent
-
allLocationGroups
-
-
Constructor Details
-
RouteSearchAlgorithmImpl
RouteSearchAlgorithmImpl(RouteRepository repository, org.openwms.common.location.api.LocationApi locationApi, LocationGroupLoader locationGroupLoader)
-
-
Method Details
-
findBy
@Cacheable("routes") public Route findBy(String sourceLocation, String targetLocation, String targetLocationGroup) Find and return a Route from the givensourceLocation
to either thetargetLocation
or to thetargetLocationGroup
.- Specified by:
findBy
in interfaceRouteSearchAlgorithm
- Parameters:
sourceLocation
- The start point of the TransportOrdertargetLocation
- The target of the TransportOrder as LocationtargetLocationGroup
- The target of the TransportOrder as LocationGroup- Returns:
- A Route, never null
-
findInTargetGroupHierarchy
private Optional<RouteImpl> findInTargetGroupHierarchy(String sourceLocation, String targetLocationGroup, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups) -
findInSourceGroupHierarchyWithTargetLocation
-
findInSourceGroupHierarchy
private Optional<RouteImpl> findInSourceGroupHierarchy(String sourceLocationGroup, String targetLocationGroup, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups) -
findInHierarchy
-
findInHierarchy2
private Optional<RouteImpl> findInHierarchy2(String sourceLocation, String targetLocationGroupName, Collection<org.openwms.common.location.api.LocationGroupVO> allLocationGroups)
-