Class TargetRedirector<T extends org.openwms.common.location.api.TargetVO>

java.lang.Object
org.openwms.tms.impl.redirection.TargetRedirector<T>
All Implemented Interfaces:
DecisionVoter<RedirectVote>
Direct Known Subclasses:
LocationGroupRedirector, LocationRedirector

abstract class TargetRedirector<T extends org.openwms.common.location.api.TargetVO> extends Object implements DecisionVoter<RedirectVote>
A TargetRedirector.
Author:
Heiko Scherrer
  • Field Details

    • translator

      @Autowired private org.ameba.i18n.Translator translator
    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • TargetRedirector

      TargetRedirector()
  • Method Details

    • voteFor

      public void voteFor(RedirectVote vote) throws DeniedException
      The implementation has to vote for a certain vote on particular rules that are implemented by the voter.
      Specified by:
      voteFor in interface DecisionVoter<T extends org.openwms.common.location.api.TargetVO>
      Parameters:
      vote - The vote to vote for
      Throws:
      DeniedException - is thrown when the voter cannot vote for the action
    • isTargetAvailable

      protected abstract boolean isTargetAvailable(T target)
    • resolveTarget

      protected abstract Optional<T> resolveTarget(RedirectVote vote)
    • assignTarget

      protected abstract void assignTarget(RedirectVote vote)