edu.cuny.cat.market.accepting
Class QuoteBeatingAcceptingPolicy

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.QuoteBeatingAcceptingPolicy
All Implemented Interfaces:
AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
Direct Known Subclasses:
EquilibriumBeatingAcceptingPolicy, ShoutTypeBasedAcceptingPolicy, SlidingMatchedAverageBeatingAcceptingPolicy

public class QuoteBeatingAcceptingPolicy
extends OnlyNewShoutDecidingAcceptingPolicy

implements the NYSE rule under which a shout must improve the market quote to be placeable.

Version:
$Revision: 1.13 $
Author:
Jinzhong Niu

Field Summary
protected static NotAnImprovementOverQuoteException askException
          Reusable exceptions for performance
protected static NotAnImprovementOverQuoteException bidException
           
protected static java.lang.String DISCLAIMER
           
 
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
QuoteBeatingAcceptingPolicy()
           
 
Method Summary
 void check(Shout shout)
          implements the NYSE shout improvement rule.
 
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
 

Field Detail

DISCLAIMER

protected static final java.lang.String DISCLAIMER
See Also:
Constant Field Values

askException

protected static NotAnImprovementOverQuoteException askException
Reusable exceptions for performance


bidException

protected static NotAnImprovementOverQuoteException bidException
Constructor Detail

QuoteBeatingAcceptingPolicy

public QuoteBeatingAcceptingPolicy()
Method Detail

check

public void check(Shout shout)
           throws IllegalShoutException
implements the NYSE shout improvement rule.

Specified by:
check in class OnlyNewShoutDecidingAcceptingPolicy
Parameters:
shout - the shout being checked.
Throws:
IllegalShoutException