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 Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • repository

      private final RouteRepository repository
  • Constructor Details

  • Method Details

    • findBy

      public Route findBy(String sourceLocation, String targetLocation, String targetLocationGroup)
      Find and return a Route from the given sourceLocation to either the targetLocation or to the targetLocationGroup.
      Specified by:
      findBy in interface RouteSearchAlgorithm
      Parameters:
      sourceLocation - The start point of the TransportOrder
      targetLocation - The target of the TransportOrder as Location
      targetLocationGroup - The target of the TransportOrder as LocationGroup
      Returns:
      A Route, never null
    • findInGroup

      private Optional<RouteImpl> findInGroup(String sourceLocation, String targetLocationGroup)