net.commerce.zocalo.market
Class BinaryMarketReserveVerifier

java.lang.Object
  extended by net.commerce.zocalo.market.ReserveVerifier
      extended by net.commerce.zocalo.market.BinaryMarketReserveVerifier

public class BinaryMarketReserveVerifier
extends ReserveVerifier

a callback object for use in experiments requiring reserves for short holdings.


Constructor Summary
BinaryMarketReserveVerifier(Session session)
           
 
Method Summary
 Quantity costToSell(Price price, Quantity quantity, Quantity remaining)
           
 
Methods inherited from class net.commerce.zocalo.market.ReserveVerifier
addMarket, enforce, getMarket, getSession, requiredReserves, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryMarketReserveVerifier

public BinaryMarketReserveVerifier(Session session)
Method Detail

costToSell

public Quantity costToSell(Price price,
                           Quantity quantity,
                           Quantity remaining)
Specified by:
costToSell in class ReserveVerifier