Package org.openwms.tms.impl.redirection
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 Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private org.ameba.i18n.Translator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
assignTarget
(RedirectVote vote) protected abstract boolean
isTargetAvailable
(T target) resolveTarget
(RedirectVote vote) void
voteFor
(RedirectVote vote) The implementation has to vote for a certain vote on particular rules that are implemented by the voter.
-
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
The implementation has to vote for a certain vote on particular rules that are implemented by the voter.- Specified by:
voteFor
in interfaceDecisionVoter<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
-
resolveTarget
-
assignTarget
-