org.openwms.tms.service.spring.voter
Class TargetAcceptedVoter

java.lang.Object
  extended by org.openwms.tms.service.spring.voter.TargetAcceptedVoter
All Implemented Interfaces:
DecisionVoter<RedirectVote>

@Lazy
@Component(value="targetAcceptedVoter")
public class TargetAcceptedVoter
extends Object
implements DecisionVoter<RedirectVote>

A TargetAcceptedVoter votes for a RedirectVote whether the target location or the target locationGroup is enabled for infeed. The class is lazy initialized.

Since:
0.1
Version:
$Revision: 1583 $
Author:
Heiko Scherrer
See Also:
DecisionVoter

Constructor Summary
TargetAcceptedVoter()
           
 
Method Summary
 void voteFor(RedirectVote vote)
          The implementation has to vote for a certain vote on particular rules that are implemented by the voter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetAcceptedVoter

public TargetAcceptedVoter()
Method Detail

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. Simple check for blocked infeed.

Specified by:
voteFor in interface DecisionVoter<RedirectVote>
Parameters:
vote - The vote to vote for
Throws:
DeniedException - is thrown when the voter cannot vote for the action
See Also:
DecisionVoter.voteFor(org.openwms.core.service.voter.Vote)


Copyright © 2005-2011 openwms.org. All Rights Reserved.