net.sourceforge.jasa.market.rules
Class QuoteBeatingAcceptingPolicy

java.lang.Object
  extended by net.sourceforge.jasa.market.rules.OrderAcceptancePolicy
      extended by net.sourceforge.jasa.market.rules.QuoteBeatingAcceptingPolicy
All Implemented Interfaces:
MarketEventListener
Direct Known Subclasses:
EquilibriumBeatingAcceptingPolicy, ShoutTypeBasedAcceptingPolicy

public class QuoteBeatingAcceptingPolicy
extends OrderAcceptancePolicy

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

 

Field Summary
protected static NotAnImprovementOverQuoteException askException
          Reusable exceptions for performance
protected static NotAnImprovementOverQuoteException bidException
           
protected static java.lang.String DISCLAIMER
           
 
Fields inherited from class net.sourceforge.jasa.market.rules.OrderAcceptancePolicy
auctioneer, P_DEF_BASE
 
Constructor Summary
QuoteBeatingAcceptingPolicy()
           
 
Method Summary
 void check(Order shout)
          implements the NYSE shout improvement rule.
 
Methods inherited from class net.sourceforge.jasa.market.rules.OrderAcceptancePolicy
eventOccurred, getAuctioneer, initialise, reset, setAuctioneer, 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(Order shout)
           throws IllegalOrderException
implements the NYSE shout improvement rule.

Specified by:
check in class OrderAcceptancePolicy
Throws:
IllegalOrderException