Class ExplicitRouteSearch
java.lang.Object
org.openwms.tms.routing.routes.impl.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
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final RouteRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind and return a Route from the givensourceLocationto either thetargetLocationor 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 givensourceLocationto either thetargetLocationor to thetargetLocationGroup.- Specified by:
findByin 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
-