edu.cuny.cat.market.accepting
Class AlwaysAcceptingPolicy

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.AlwaysAcceptingPolicy
All Implemented Interfaces:
AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable

public class AlwaysAcceptingPolicy
extends OnlyNewShoutDecidingAcceptingPolicy

the loosest accepting policy under which all shouts are allowed.

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
AlwaysAcceptingPolicy()
           
 
Method Summary
 void check(Shout shout)
          accepts all shouts and IllegalShoutException is never 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

AlwaysAcceptingPolicy

public AlwaysAcceptingPolicy()
Method Detail

check

public void check(Shout shout)
           throws IllegalShoutException
accepts all shouts and IllegalShoutException is never thrown.

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