net.sourceforge.jasa.market.rules
Class UniformPricingPolicy

java.lang.Object
  extended by net.sourceforge.jasa.market.rules.KPricingPolicy
      extended by net.sourceforge.jasa.market.rules.UniformPricingPolicy
All Implemented Interfaces:
java.io.Serializable, PricingPolicy

public class UniformPricingPolicy
extends KPricingPolicy
implements java.io.Serializable

A pricing policy in which we set the transaction price in the interval between the ask quote and the bid quote as determined by the parameter k. The pricing policy is uniform in the sense that individual bid and ask prices are ignored, thus all agents performing transactions in the clearing operation will pay the same price.

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class net.sourceforge.jasa.market.rules.KPricingPolicy
k
 
Constructor Summary
UniformPricingPolicy()
           
UniformPricingPolicy(double k)
           
 
Method Summary
 double determineClearingPrice(Order bid, Order ask, MarketQuote clearingQuote)
           
 
Methods inherited from class net.sourceforge.jasa.market.rules.KPricingPolicy
getK, kInterval, setK, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniformPricingPolicy

public UniformPricingPolicy()

UniformPricingPolicy

public UniformPricingPolicy(double k)
Method Detail

determineClearingPrice

public double determineClearingPrice(Order bid,
                                     Order ask,
                                     MarketQuote clearingQuote)
Specified by:
determineClearingPrice in interface PricingPolicy