Class ActivitiMatrix

java.lang.Object
org.openwms.tms.routing.spi.ActivitiMatrix
All Implemented Interfaces:
Matrix

@Component class ActivitiMatrix extends Object implements Matrix
A ActivitiMatrix.
Author:
Heiko Scherrer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.cloud.client.discovery.DiscoveryClient
     
    private final org.openwms.common.location.api.LocationGroupApi
     
    private static final org.slf4j.Logger
     
    static final String
     
    private final ActionRepository
     
    private final org.springframework.web.client.RestTemplate
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActivitiMatrix(ActionRepository repository, org.springframework.web.client.RestTemplate restTemplate, org.openwms.common.location.api.LocationGroupApi locationGroupApi, org.springframework.cloud.client.discovery.DiscoveryClient dc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    findBy(String actionType, Route route, org.openwms.common.location.api.LocationVO location, org.openwms.common.location.api.LocationGroupVO locationGroup)
    Find and return an Action.
    private Optional<Action>
    findInLocationGroupHierarchy(String actionType, Route route, org.openwms.common.location.api.LocationGroupVO locationGroup)
     
    private org.openwms.common.location.api.LocationGroupVO
    findLocationGroup(org.springframework.hateoas.Link parent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • MSG

      public static final String MSG
      See Also:
    • repository

      private final ActionRepository repository
    • restTemplate

      private final org.springframework.web.client.RestTemplate restTemplate
    • locationGroupApi

      private final org.openwms.common.location.api.LocationGroupApi locationGroupApi
    • dc

      private final org.springframework.cloud.client.discovery.DiscoveryClient dc
  • Constructor Details

    • ActivitiMatrix

      ActivitiMatrix(ActionRepository repository, @Qualifier("simpleRestTemplate") org.springframework.web.client.RestTemplate restTemplate, org.openwms.common.location.api.LocationGroupApi locationGroupApi, org.springframework.cloud.client.discovery.DiscoveryClient dc)
  • Method Details

    • findBy

      @Cacheable("actions") public Action findBy(String actionType, Route route, @Nullable org.openwms.common.location.api.LocationVO location, @Nullable org.openwms.common.location.api.LocationGroupVO locationGroup)
      Find and return an Action.
      Specified by:
      findBy in interface Matrix
      Parameters:
      actionType - The type of action is often the type of triggering event (REQ_, SYSU, etc.)
      route - The TransportOrders Route
      location - The actual Location
      locationGroup - The corresponding actual LocationGroup
      Returns:
      The Action
    • findInLocationGroupHierarchy

      private Optional<Action> findInLocationGroupHierarchy(String actionType, Route route, org.openwms.common.location.api.LocationGroupVO locationGroup)
    • findLocationGroup

      private org.openwms.common.location.api.LocationGroupVO findLocationGroup(org.springframework.hateoas.Link parent)