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
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final org.ameba.i18n.Translator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidassignTarget(RedirectVote vote) protected abstract booleanisTargetAvailable(T target) resolveTarget(RedirectVote vote) voidvoteFor(RedirectVote vote) The implementation has to vote for a certain vote on particular rules that are implemented by the voter.
-
Field Details
-
translator
private final org.ameba.i18n.Translator translator -
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
TargetRedirector
TargetRedirector(org.ameba.i18n.Translator translator)
-
-
Method Details
-
voteFor
The implementation has to vote for a certain vote on particular rules that are implemented by the voter.- Specified by:
voteForin 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
-