Package org.openwms.tms.routing.routes
Class ExplicitRouteSearch
java.lang.Object
org.openwms.tms.routing.routes.ExplicitRouteSearch
- All Implemented Interfaces:
RouteSearchAlgorithm
@Profile("SIMPLE")
@Component
class ExplicitRouteSearch
extends Object
implements RouteSearchAlgorithm
A ExplicitRouteSearch is a "simple" implementation of the
RouteSearchAlgorithm
activated with the Spring Profile "SIMPLE".- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final RouteRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFind and return a Route from the givensourceLocation
to either thetargetLocation
or to thetargetLocationGroup
.findInGroup
(String sourceLocation, String targetLocationGroup)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
repository
-
-
Constructor Details
-
ExplicitRouteSearch
ExplicitRouteSearch(RouteRepository repository)
-
-
Method Details
-
findBy
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
-
findInGroup
-