edu.cuny.cat.market.accepting
Class NeverAcceptingPolicy

java.lang.Object
  extended by edu.cuny.cat.market.AuctioneerPolicy
      extended by edu.cuny.cat.market.accepting.ShoutAcceptingPolicy
          extended by edu.cuny.cat.market.accepting.OnlyNewShoutDecidingAcceptingPolicy
              extended by edu.cuny.cat.market.accepting.NeverAcceptingPolicy
All Implemented Interfaces:
AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable

public class NeverAcceptingPolicy
extends OnlyNewShoutDecidingAcceptingPolicy

the tightest accepting policy under which all shouts are rejected.

Version:
$Revision: 1.8 $
Author:
Jinzhong Niu

Field Summary
 
Fields inherited from class edu.cuny.cat.market.accepting.ShoutAcceptingPolicy
P_DEF_BASE
 
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy
auctioneer
 
Constructor Summary
NeverAcceptingPolicy()
           
 
Method Summary
 void check(Shout shout)
          rejects all shouts and IllegalShoutException is always thrown.
 
Methods inherited from class edu.cuny.cat.market.accepting.OnlyNewShoutDecidingAcceptingPolicy
check
 
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy
eventOccurred, getAuctioneer, initialize, reset, setAuctioneer, setup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NeverAcceptingPolicy

public NeverAcceptingPolicy()
Method Detail

check

public void check(Shout shout)
           throws IllegalShoutException
rejects all shouts and IllegalShoutException is always thrown.

Specified by:
check in class OnlyNewShoutDecidingAcceptingPolicy
Parameters:
shout - the shout being checked.
Throws:
IllegalShoutException
See Also:
OnlyNewShoutDecidingAcceptingPolicy.check(edu.cuny.cat.core.Shout)